Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2127/0.2127, allocations: 46.11 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 78.94 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1451, allocations: 62.44 MB / 480 MB, free: 5.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001822/0.147, allocations: 482.6 kB / 480.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003255/0.1503, allocations: 2.139 MB / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.822e-05/0.1503, allocations: 0 / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.652e-05/0.1503, allocations: 0 / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.961e-05/0.1503, allocations: 0 / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.1515, allocations: 394.8 kB / 483 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.9e-05/0.1515, allocations: 15.92 kB / 483 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.524e-05/0.1516, allocations: 0 / 483 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.827e-05/0.1516, allocations: 0 / 483 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01551/0.1671, allocations: 3.334 MB / 486.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.1672, allocations: 4 kB / 486.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.1673, allocations: 8 kB / 486.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.736e-05/0.1673, allocations: 3.984 kB / 486.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.391e-05/0.1674, allocations: 4 kB / 486.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001735/0.1675, allocations: 11.98 kB / 486.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.1676, allocations: 0 / 486.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1676, allocations: 3.938 kB / 486.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.1676, allocations: 0 / 486.4 MB, free: 15.52 MB / 366.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.0004024/0.168, allocations: 315.5 kB / 486.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.1681, allocations: 8.031 kB / 486.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002386/0.1683, allocations: 92.2 kB / 486.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.1685, allocations: 235.7 kB / 487 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8e-05/0.1686, allocations: 150.9 kB / 487.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-05/0.1687, allocations: 158.7 kB / 487.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.789e-05/0.1687, allocations: 108.9 kB / 487.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.461e-05/0.1688, allocations: 79.28 kB / 487.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.529e-05/0.1689, allocations: 150.6 kB / 487.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.53e-05/0.1689, allocations: 158.5 kB / 487.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.184e-05/0.169, allocations: 150.6 kB / 488 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000319/0.1693, allocations: 438 kB / 488.4 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.1695, allocations: 181.1 kB / 488.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.811e-05/0.1695, allocations: 84.08 kB / 488.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.1696, allocations: 75.28 kB / 488.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.173e-05/0.1696, allocations: 109.8 kB / 488.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 3.917e-06/0.1696, allocations: 3.984 kB / 488.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.867e-05/0.1697, allocations: 33.7 kB / 488.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.1698, allocations: 178.1 kB / 489 MB, free: 12.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.1699, allocations: 93.8 kB / 489.1 MB, free: 12.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.17, allocations: 29.7 kB / 489.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.866e-05/0.17, allocations: 84.14 kB / 489.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-06/0.17, allocations: 0 / 489.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.347e-05/0.17, allocations: 9.719 kB / 489.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1702, allocations: 315 kB / 489.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.763e-06/0.1702, allocations: 0 / 489.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.29e-05/0.1703, allocations: 17.7 kB / 489.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.019e-05/0.1703, allocations: 75.28 kB / 489.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.642e-05/0.1703, allocations: 75.28 kB / 489.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.824e-05/0.1704, allocations: 33.64 kB / 489.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.12e-05/0.1704, allocations: 79.28 kB / 489.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-05/0.1705, allocations: 87.25 kB / 489.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.437e-05/0.1706, allocations: 154.6 kB / 490.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.796e-05/0.1706, allocations: 79.22 kB / 490.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.162e-05/0.1707, allocations: 154.5 kB / 490.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.287e-05/0.1708, allocations: 83.33 kB / 490.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.85e-05/0.1708, allocations: 79.22 kB / 490.5 MB, free: 11.19 MB / 366.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.0001729/0.171, allocations: 264.4 kB / 490.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.146e-05/0.1711, allocations: 108.9 kB / 490.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.737e-05/0.1711, allocations: 108 kB / 490.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-05/0.1712, allocations: 184.2 kB / 491.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.002e-05/0.1713, allocations: 180.3 kB / 491.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.384e-05/0.1714, allocations: 188.2 kB / 491.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.1717, allocations: 405.2 kB / 491.9 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.08e-05/0.1717, allocations: 104.9 kB / 492 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.458e-05/0.1718, allocations: 108.9 kB / 492.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.476e-05/0.1718, allocations: 176.6 kB / 492.2 MB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.343e-05/0.1719, allocations: 180.2 kB / 492.4 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.915e-05/0.172, allocations: 184.3 kB / 492.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001063/0.1721, allocations: 192.2 kB / 492.8 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.1724, allocations: 303.7 kB / 493.1 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.1725, allocations: 186.1 kB / 493.3 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.1726, allocations: 184.2 kB / 493.4 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1727, allocations: 108.9 kB / 493.6 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.1728, allocations: 176.3 kB / 493.7 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.015e-05/0.1729, allocations: 104.9 kB / 493.8 MB, free: 7.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.258e-05/0.173, allocations: 79.28 kB / 493.9 MB, free: 7.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.173, allocations: 0 / 493.9 MB, free: 7.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.1733, allocations: 0 / 493.9 MB, free: 7.516 MB / 366.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.0001804/0.1735, allocations: 178.6 kB / 494.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.147e-05/0.1736, allocations: 0 / 494.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1736, allocations: 0 / 494.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.653e-06/0.1736, allocations: 0 / 494.1 MB, free: 7.328 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.1741, allocations: 459.6 kB / 494.5 MB, free: 6.875 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002858/0.1744, allocations: 164.1 kB / 494.7 MB, free: 6.688 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.1747, allocations: 0.6728 MB / 495.4 MB, free: 5.988 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.126e-05/0.1747, allocations: 0 / 495.4 MB, free: 5.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.263e-05/0.1748, allocations: 7.438 kB / 495.4 MB, free: 5.984 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1748, allocations: 0 / 495.4 MB, free: 5.984 MB / 366.1 MB Notification: Performance of Templates: time 0.002632/0.1774, allocations: 303.3 kB / 495.7 MB, free: 5.691 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches