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.001424/0.001425, allocations: 109.9 kB / 17.33 MB, free: 6 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.001595/0.001595, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.418/1.418, allocations: 222.9 MB / 241.9 MB, free: 15.39 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.2279/0.2279, allocations: 44.18 MB / 336.2 MB, free: 2.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 59.06 kB / 407.9 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1262, allocations: 60.83 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001716/0.128, allocations: 0.5331 MB / 469.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002836/0.1308, allocations: 1.999 MB / 471.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.48e-05/0.1309, allocations: 4 kB / 471.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.28e-05/0.1309, allocations: 3.938 kB / 471.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.066e-05/0.1309, allocations: 0 / 471.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.132, allocations: 326.9 kB / 471.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.333e-05/0.132, allocations: 4 kB / 471.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.518e-05/0.1321, allocations: 11.92 kB / 471.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.511e-05/0.1321, allocations: 4 kB / 471.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0324/0.1645, allocations: 3.366 MB / 474.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.1646, allocations: 0 / 474.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.909e-05/0.1646, allocations: 11.98 kB / 475 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-06/0.1647, allocations: 0 / 475 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.318e-05/0.1647, allocations: 8 kB / 475 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.448e-05/0.1648, allocations: 11.92 kB / 475 MB, free: 9.074 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1648, allocations: 0 / 475 MB, free: 9.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1648, allocations: 0 / 475 MB, free: 9.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1648, allocations: 0 / 475 MB, free: 9.074 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.0003189/0.1651, allocations: 319.5 kB / 475.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.1652, allocations: 8.031 kB / 475.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001989/0.1654, allocations: 84.22 kB / 475.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.1655, allocations: 243.7 kB / 475.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.074e-05/0.1656, allocations: 150.9 kB / 475.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.793e-05/0.1657, allocations: 158.7 kB / 475.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.05e-05/0.1657, allocations: 112.9 kB / 476 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.1658, allocations: 75.28 kB / 476.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.624e-05/0.1658, allocations: 150.6 kB / 476.3 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.708e-05/0.1659, allocations: 154.6 kB / 476.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.174e-05/0.166, allocations: 154.5 kB / 476.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003027/0.1663, allocations: 445.9 kB / 477 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.068e-05/0.1664, allocations: 173.1 kB / 477.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.164e-05/0.1664, allocations: 88.08 kB / 477.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.1664, allocations: 75.28 kB / 477.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.1665, allocations: 109.8 kB / 477.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.132e-06/0.1665, allocations: 0 / 477.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.946e-05/0.1666, allocations: 29.7 kB / 477.5 MB, free: 6.418 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.949e-05/0.1667, allocations: 186 kB / 477.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.1668, allocations: 93.86 kB / 477.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.1668, allocations: 25.7 kB / 477.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.19e-05/0.1669, allocations: 84.14 kB / 477.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.452e-06/0.1669, allocations: 0 / 477.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.1669, allocations: 13.7 kB / 477.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.167, allocations: 310.8 kB / 478.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.238e-06/0.167, allocations: 0 / 478.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.087e-05/0.1671, allocations: 21.84 kB / 478.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.073e-05/0.1671, allocations: 75.28 kB / 478.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-05/0.1671, allocations: 75.28 kB / 478.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.71e-05/0.1672, allocations: 33.64 kB / 478.4 MB, free: 5.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.675e-05/0.1672, allocations: 83.22 kB / 478.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.774e-05/0.1673, allocations: 79.22 kB / 478.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.726e-05/0.1674, allocations: 158.5 kB / 478.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.752e-05/0.1674, allocations: 83.25 kB / 478.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-05/0.1675, allocations: 150.6 kB / 478.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.652e-05/0.1676, allocations: 79.28 kB / 479 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.1676, allocations: 87.27 kB / 479.1 MB, free: 4.734 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.0001167/0.1677, allocations: 256.4 kB / 479.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.199e-05/0.1678, allocations: 112.9 kB / 479.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.315e-05/0.1679, allocations: 112 kB / 479.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-05/0.1679, allocations: 176.3 kB / 479.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.692e-05/0.168, allocations: 184.3 kB / 479.9 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.076e-05/0.1681, allocations: 180.2 kB / 480.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.1683, allocations: 401.2 kB / 480.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.851e-05/0.1684, allocations: 108.9 kB / 480.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.415e-05/0.1684, allocations: 105 kB / 480.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.468e-05/0.1685, allocations: 180.3 kB / 480.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.594e-05/0.1686, allocations: 184.2 kB / 481 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.491e-05/0.1687, allocations: 176.3 kB / 481.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-05/0.1687, allocations: 188.2 kB / 481.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.1689, allocations: 308.1 kB / 481.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.699e-05/0.169, allocations: 182.1 kB / 481.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.153e-05/0.1691, allocations: 184.2 kB / 482 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.607e-05/0.1692, allocations: 117 kB / 482.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.133e-05/0.1692, allocations: 180.3 kB / 482.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.1693, allocations: 108.9 kB / 482.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001374/0.1694, allocations: 79.27 kB / 482.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1694, allocations: 4 kB / 482.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002552/0.1697, allocations: 0 / 482.5 MB, free: 1.059 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.0001154/0.1698, allocations: 167.1 kB / 482.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.028e-05/0.1699, allocations: 4.094 kB / 482.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1699, allocations: 4 kB / 482.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.1699, allocations: 0 / 482.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003836/0.1703, allocations: 458.7 kB / 483.1 MB, free: 440 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002248/0.1705, allocations: 160.1 kB / 483.3 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.1708, allocations: 0.6807 MB / 484 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.199e-05/0.1708, allocations: 3.938 kB / 484 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.225e-05/0.1708, allocations: 7.438 kB / 484 MB, free: 15.53 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1709, allocations: 0 / 484 MB, free: 15.53 MB / 366.1 MB Notification: Performance of Templates: time 0.002044/0.1729, allocations: 300.4 kB / 484.3 MB, free: 15.24 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