Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.001059, allocations: 109.4 kB / 17.21 MB, free: 6.273 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.001026/0.001026, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 241.8 MB, free: 15.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2146/0.2146, allocations: 44.18 MB / 336.1 MB, free: 2.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 60.34 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1373, allocations: 60.81 MB / 468.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001963/0.1393, allocations: 0.5486 MB / 469 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003279/0.1426, allocations: 2.061 MB / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.785e-05/0.1426, allocations: 0 / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.645e-05/0.1427, allocations: 3.938 kB / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.624e-05/0.1427, allocations: 0 / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009471/0.1437, allocations: 287.3 kB / 471.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.458e-05/0.1437, allocations: 7.938 kB / 471.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.081e-05/0.1438, allocations: 4 kB / 471.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.1438, allocations: 0 / 471.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03298/0.1768, allocations: 3.2 MB / 474.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.624e-05/0.1768, allocations: 0 / 474.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.465e-05/0.1769, allocations: 8 kB / 474.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.379e-05/0.1769, allocations: 7.938 kB / 474.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.819e-05/0.177, allocations: 0 / 474.6 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.1771, allocations: 8 kB / 474.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1771, allocations: 0 / 474.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1771, allocations: 0 / 474.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1771, allocations: 0 / 474.6 MB, free: 9.234 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003471/0.1775, allocations: 319.5 kB / 474.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.1775, allocations: 16.03 kB / 475 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002267/0.1778, allocations: 84.2 kB / 475 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.1779, allocations: 235.7 kB / 475.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.659e-05/0.178, allocations: 154.9 kB / 475.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.468e-05/0.1781, allocations: 154.7 kB / 475.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.607e-05/0.1781, allocations: 112.9 kB / 475.7 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.1782, allocations: 75.28 kB / 475.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-05/0.1783, allocations: 150.6 kB / 475.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.008e-05/0.1783, allocations: 154.6 kB / 476 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.941e-05/0.1784, allocations: 150.6 kB / 476.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002921/0.1787, allocations: 449.9 kB / 476.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.825e-05/0.1788, allocations: 173.1 kB / 476.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.769e-05/0.1788, allocations: 84.08 kB / 476.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.1788, allocations: 75.28 kB / 477 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.478e-05/0.1789, allocations: 105.8 kB / 477.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.163e-06/0.1789, allocations: 8 kB / 477.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.133e-05/0.179, allocations: 25.7 kB / 477.1 MB, free: 6.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.072e-05/0.1791, allocations: 182 kB / 477.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.291e-05/0.1792, allocations: 97.84 kB / 477.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.1792, allocations: 29.7 kB / 477.4 MB, free: 6.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.462e-05/0.1793, allocations: 84.08 kB / 477.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.843e-06/0.1793, allocations: 0 / 477.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.268e-05/0.1793, allocations: 9.844 kB / 477.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1794, allocations: 318.8 kB / 477.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.478e-06/0.1794, allocations: 0 / 477.8 MB, free: 5.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.761e-05/0.1795, allocations: 9.719 kB / 477.8 MB, free: 5.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.787e-05/0.1795, allocations: 75.28 kB / 477.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-05/0.1795, allocations: 75.28 kB / 478 MB, free: 5.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.164e-05/0.1796, allocations: 37.62 kB / 478 MB, free: 5.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/0.1796, allocations: 79.28 kB / 478.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.648e-05/0.1797, allocations: 95.23 kB / 478.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.013e-05/0.1797, allocations: 150.6 kB / 478.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.742e-05/0.1798, allocations: 79.22 kB / 478.4 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.45e-05/0.1798, allocations: 150.6 kB / 478.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.731e-05/0.1799, allocations: 83.33 kB / 478.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.18, allocations: 79.22 kB / 478.7 MB, free: 4.902 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001173/0.1801, allocations: 272.4 kB / 479 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/0.1802, allocations: 104.9 kB / 479.1 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.202e-05/0.1802, allocations: 108 kB / 479.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.21e-05/0.1803, allocations: 180.3 kB / 479.3 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.843e-05/0.1803, allocations: 176.3 kB / 479.5 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.873e-05/0.1804, allocations: 188.2 kB / 479.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.1806, allocations: 401.2 kB / 480.1 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-05/0.1807, allocations: 108.9 kB / 480.2 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.62e-05/0.1807, allocations: 105 kB / 480.3 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.964e-05/0.1808, allocations: 180.2 kB / 480.5 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.265e-05/0.1809, allocations: 184.3 kB / 480.7 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-05/0.181, allocations: 188.2 kB / 480.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-05/0.181, allocations: 180.2 kB / 481 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.1812, allocations: 307.7 kB / 481.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.851e-05/0.1813, allocations: 186.1 kB / 481.5 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.161e-05/0.1813, allocations: 184.3 kB / 481.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.1815, allocations: 104.9 kB / 481.8 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.615e-05/0.1815, allocations: 180.7 kB / 482 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.1816, allocations: 104.9 kB / 482.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.563e-05/0.1816, allocations: 79.28 kB / 482.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1816, allocations: 3.938 kB / 482.1 MB, free: 1.227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002531/0.1819, allocations: 4.094 kB / 482.1 MB, free: 1.223 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001382/0.182, allocations: 171.1 kB / 482.3 MB, free: 1.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.34e-05/0.1821, allocations: 4 kB / 482.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1821, allocations: 0 / 482.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.273e-06/0.1821, allocations: 64 / 482.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.1825, allocations: 0.5331 MB / 482.8 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001956/0.1827, allocations: 158 kB / 483 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.183, allocations: 0.673 MB / 483.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.084e-05/0.183, allocations: 0 / 483.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.778e-06/0.183, allocations: 7.438 kB / 483.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.183, allocations: 0 / 483.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of Templates: time 0.002063/0.1851, allocations: 292.6 kB / 484 MB, free: 15.34 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches