Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 98.78 kB / 15.98 MB, free: 6.352 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.001359/0.001359, allocations: 193.3 kB / 16.91 MB, free: 6.191 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.721/1.721, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4029/0.4029, allocations: 43.5 MB / 313.6 MB, free: 8.531 MB / 254.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.001351/0.001351, allocations: 67.91 kB / 382.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1352, allocations: 57.78 MB / 440 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001992/0.1373, allocations: 0.5503 MB / 440.5 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003308/0.1406, allocations: 2.035 MB / 442.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.533e-05/0.1407, allocations: 4 kB / 442.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.522e-05/0.1407, allocations: 0 / 442.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.576e-05/0.1407, allocations: 0 / 442.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1419, allocations: 339.3 kB / 442.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.814e-05/0.142, allocations: 0 / 442.9 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.95e-05/0.142, allocations: 4 kB / 442.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.739e-05/0.142, allocations: 0 / 442.9 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03159/0.1736, allocations: 3.377 MB / 446.3 MB, free: 8.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.1737, allocations: 0 / 446.3 MB, free: 8.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.672e-05/0.1737, allocations: 7.984 kB / 446.3 MB, free: 8.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.308e-06/0.1738, allocations: 0 / 446.3 MB, free: 8.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.9e-05/0.1738, allocations: 4 kB / 446.3 MB, free: 8.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.571e-05/0.1739, allocations: 8 kB / 446.3 MB, free: 8.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1739, allocations: 0 / 446.3 MB, free: 8.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1739, allocations: 4 kB / 446.3 MB, free: 8.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.1739, allocations: 0 / 446.3 MB, free: 8.441 MB / 382.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.0003248/0.1743, allocations: 315.6 kB / 446.6 MB, free: 8.086 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.1743, allocations: 15.89 kB / 446.6 MB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002686/0.1746, allocations: 88.11 kB / 446.7 MB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.1748, allocations: 235.7 kB / 447 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.446e-05/0.1749, allocations: 158.9 kB / 447.1 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.417e-05/0.175, allocations: 162.6 kB / 447.3 MB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.377e-05/0.175, allocations: 108.9 kB / 447.4 MB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.1751, allocations: 75.28 kB / 447.5 MB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/0.1751, allocations: 150.6 kB / 447.6 MB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-05/0.1752, allocations: 154.5 kB / 447.8 MB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.418e-05/0.1752, allocations: 158.5 kB / 447.9 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000285/0.1755, allocations: 446 kB / 448.3 MB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.49e-05/0.1756, allocations: 169.1 kB / 448.5 MB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.593e-05/0.1757, allocations: 84.08 kB / 448.6 MB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.1757, allocations: 79.28 kB / 448.7 MB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.112e-05/0.1758, allocations: 105.8 kB / 448.8 MB, free: 5.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 2.325e-06/0.1758, allocations: 3.984 kB / 448.8 MB, free: 5.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 8.121e-05/0.1759, allocations: 37.64 kB / 448.8 MB, free: 5.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002125/0.1761, allocations: 182.1 kB / 449 MB, free: 5.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.456e-05/0.1762, allocations: 89.86 kB / 449.1 MB, free: 5.469 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.1762, allocations: 29.83 kB / 449.1 MB, free: 5.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.1763, allocations: 84.14 kB / 449.2 MB, free: 5.348 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.443e-06/0.1763, allocations: 0 / 449.2 MB, free: 5.348 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.1764, allocations: 9.719 kB / 449.2 MB, free: 5.332 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1765, allocations: 318.8 kB / 449.5 MB, free: 5.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.739e-06/0.1765, allocations: 0 / 449.5 MB, free: 5.012 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.535e-05/0.1765, allocations: 9.719 kB / 449.5 MB, free: 4.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.407e-05/0.1765, allocations: 79.28 kB / 449.6 MB, free: 4.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.181e-05/0.1766, allocations: 79.31 kB / 449.7 MB, free: 4.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.884e-05/0.1766, allocations: 37.62 kB / 449.7 MB, free: 4.797 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.648e-05/0.1767, allocations: 83.22 kB / 449.8 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.664e-05/0.1767, allocations: 79.28 kB / 449.9 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.35e-05/0.1768, allocations: 150.6 kB / 450 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.764e-05/0.1768, allocations: 79.22 kB / 450.1 MB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.443e-05/0.1769, allocations: 150.6 kB / 450.2 MB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.973e-05/0.177, allocations: 91.22 kB / 450.3 MB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.177, allocations: 79.27 kB / 450.4 MB, free: 4.094 MB / 382.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.0001319/0.1771, allocations: 264.4 kB / 450.7 MB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.695e-05/0.1772, allocations: 104.9 kB / 450.8 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.1773, allocations: 108 kB / 450.9 MB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001127/0.1774, allocations: 188.3 kB / 451.1 MB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.333e-05/0.1775, allocations: 184.2 kB / 451.2 MB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001388/0.1776, allocations: 184.2 kB / 451.4 MB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003012/0.178, allocations: 397.2 kB / 451.8 MB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.946e-05/0.178, allocations: 108.9 kB / 451.9 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-05/0.178, allocations: 113 kB / 452 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.21e-05/0.1781, allocations: 180.2 kB / 452.2 MB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.79e-05/0.1782, allocations: 176.3 kB / 452.4 MB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.789e-05/0.1782, allocations: 180.3 kB / 452.5 MB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.124e-05/0.1783, allocations: 180.2 kB / 452.7 MB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001438/0.1785, allocations: 316 kB / 453 MB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.47e-05/0.1785, allocations: 182 kB / 453.2 MB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.081e-05/0.1786, allocations: 184.3 kB / 453.4 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.663e-05/0.1787, allocations: 108.9 kB / 453.5 MB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.839e-05/0.1788, allocations: 180.3 kB / 453.7 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.836e-05/0.1789, allocations: 112.9 kB / 453.8 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.672e-05/0.1789, allocations: 79.28 kB / 453.9 MB, free: 424 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1789, allocations: 0 / 453.9 MB, free: 424 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.1792, allocations: 0 / 453.9 MB, free: 424 kB / 382.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.0001299/0.1793, allocations: 174.5 kB / 454 MB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 4.947e-05/0.1794, allocations: 4 kB / 454 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1794, allocations: 0 / 454 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.1794, allocations: 4.094 kB / 454 MB, free: 232 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1923/0.3717, allocations: 457.3 kB / 454.5 MB, free: 50.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002033/0.3719, allocations: 153.8 kB / 454.6 MB, free: 50.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.3721, allocations: 0.6713 MB / 455.3 MB, free: 49.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.165e-05/0.3721, allocations: 0 / 455.3 MB, free: 49.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.548e-06/0.3721, allocations: 9.672 kB / 455.3 MB, free: 49.79 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3721, allocations: 0.9375 kB / 455.3 MB, free: 49.79 MB / 382.1 MB Notification: Performance of Templates: time 0.002022/0.3742, allocations: 304 kB / 455.6 MB, free: 49.77 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches