Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 108.4 kB / 18.36 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001113, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.288/1.288, allocations: 205.1 MB / 225.2 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 47.94 kB / 282.1 MB, free: 2.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08703/0.08826, allocations: 46.63 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance): time 0.004644/0.09293, allocations: 3.73 MB / 332.5 MB, free: 24 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002408/0.09536, allocations: 1.48 MB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.09558, allocations: 8 kB / 334 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0017/0.09729, allocations: 0.7584 MB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001094/0.09839, allocations: 0.5636 MB / 335.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007715/0.09917, allocations: 422.6 kB / 335.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004463/0.09963, allocations: 489.8 kB / 336.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005636/0.1002, allocations: 397.8 kB / 336.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.1005, allocations: 223.1 kB / 336.8 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000303/0.1008, allocations: 282.9 kB / 337 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-05/0.1009, allocations: 44 kB / 337.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003693/0.1013, allocations: 203.9 kB / 337.3 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.266e-05/0.1013, allocations: 115.6 kB / 337.4 MB, free: 11.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.1016, allocations: 250.7 kB / 337.6 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006692/0.1022, allocations: 0.697 MB / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1022, allocations: 0 / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1022, allocations: 0 / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.1023, allocations: 0 / 338.3 MB, free: 10.12 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002022/0.1043, allocations: 0.9248 MB / 339.3 MB, free: 9.145 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.1043, allocations: 19.91 kB / 339.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004795/0.1091, allocations: 0.5857 MB / 339.9 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000649/0.1098, allocations: 315.6 kB / 340.2 MB, free: 8.191 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.689e-05/0.1099, allocations: 41.69 kB / 340.2 MB, free: 8.148 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.11, allocations: 60.28 kB / 340.3 MB, free: 8.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.1112, allocations: 0.557 MB / 340.8 MB, free: 7.531 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.1112, allocations: 0 / 340.8 MB, free: 7.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.1113, allocations: 24 kB / 340.9 MB, free: 7.508 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.1113, allocations: 16 kB / 340.9 MB, free: 7.492 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1124, allocations: 0.6376 MB / 341.5 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003133/0.1156, allocations: 2.026 MB / 343.5 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002479/0.1181, allocations: 3.012 MB / 346.6 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003604/0.1184, allocations: 222.1 kB / 346.8 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.763e-05/0.1185, allocations: 93.52 kB / 346.9 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.1186, allocations: 35 kB / 346.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.114e-06/0.1186, allocations: 0 / 346.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.002034/0.1206, allocations: 0.801 MB / 347.7 MB, free: 15.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.1207, allocations: 59.78 kB / 347.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.121, allocations: 201.1 kB / 348 MB, free: 15.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.121, allocations: 29.7 kB / 348 MB, free: 15.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/0.1213, allocations: 244 kB / 348.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.1214, allocations: 165.6 kB / 348.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.1216, allocations: 98.14 kB / 348.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1217, allocations: 338.8 kB / 348.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000313/0.1221, allocations: 157 kB / 349 MB, free: 14.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/0.1225, allocations: 274 kB / 349.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007524/0.1232, allocations: 460.5 kB / 349.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.1233, allocations: 0 / 349.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00108/0.1243, allocations: 0.5864 MB / 350.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.1244, allocations: 15.92 kB / 350.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.1244, allocations: 4 kB / 350.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003569/0.1248, allocations: 88.75 kB / 350.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/0.1252, allocations: 111.9 kB / 350.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/0.1272, allocations: 2.037 MB / 352.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.1275, allocations: 55.42 kB / 352.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.1275, allocations: 20 kB / 352.6 MB, free: 10.73 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002033/0.1277, allocations: 173.7 kB / 352.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.104e-05/0.1278, allocations: 27.72 kB / 352.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.1289, allocations: 0.555 MB / 353.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.1289, allocations: 4 kB / 353.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1289, allocations: 7.938 kB / 353.4 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1289, allocations: 7.922 kB / 353.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001609/0.1305, allocations: 1.135 MB / 354.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1305, allocations: 0 / 354.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.1309, allocations: 75.89 kB / 354.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002657/0.1312, allocations: 92.75 kB / 354.7 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.1312, allocations: 11.98 kB / 354.7 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/0.133, allocations: 2.038 MB / 356.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.133, allocations: 0 / 356.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.1343, allocations: 0.8048 MB / 357.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.943e-05/0.1344, allocations: 108.8 kB / 357.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.382e-05/0.1344, allocations: 8 kB / 357.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.1347, allocations: 15.98 kB / 357.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.449e-05/0.1348, allocations: 44.44 kB / 357.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.1348, allocations: 15.98 kB / 357.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.135, allocations: 150.9 kB / 357.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.135, allocations: 0 / 357.9 MB, free: 5.215 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006121/0.1356, allocations: 159.5 kB / 358 MB, free: 5.059 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002179/0.1358, allocations: 135.2 kB / 358.1 MB, free: 4.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.1369, allocations: 0.5931 MB / 358.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1369, allocations: 0 / 358.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.1374, allocations: 385.8 kB / 359.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1378, allocations: 39.98 kB / 359.2 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.1393, allocations: 0.8411 MB / 360 MB, free: 3.008 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1396, allocations: 0.8171 MB / 360.8 MB, free: 2.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001878/0.1398, allocations: 55.25 kB / 360.9 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.266e-05/0.1399, allocations: 35.44 kB / 360.9 MB, free: 2.074 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1399, allocations: 0 / 360.9 MB, free: 2.074 MB / 302.1 MB Notification: Performance of Templates: time 0.008642/0.1486, allocations: 4.37 MB / 365.3 MB, free: 13.7 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches