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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008974/0.0008974, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000931/0.000931, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9929/0.9929, allocations: 177.1 MB / 206.1 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1927/0.1927, allocations: 32.8 MB / 295.4 MB, free: 15.37 MB / 282.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 377.2 MB, free: 25.64 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.432e-05/2.573e-05, allocations: 2.312 kB / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001171/0.001197, allocations: 0.4958 MB / 377.7 MB, free: 25.14 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.003536, allocations: 2.109 MB / 379.8 MB, free: 23.01 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.194e-05/0.003558, allocations: 0 / 379.8 MB, free: 23.01 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.786e-05/0.003576, allocations: 0 / 379.8 MB, free: 23.01 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 2.388e-05/0.0036, allocations: 4 kB / 379.8 MB, free: 23 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009834/0.004584, allocations: 406.4 kB / 380.2 MB, free: 22.61 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 3.567e-05/0.004619, allocations: 7.922 kB / 380.2 MB, free: 22.6 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.592e-05/0.004655, allocations: 4 kB / 380.2 MB, free: 22.59 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.768e-05/0.004683, allocations: 0 / 380.2 MB, free: 22.59 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01074/0.01542, allocations: 4.818 MB / 385.1 MB, free: 18.95 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.01544, allocations: 0 / 385.1 MB, free: 18.95 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.468e-05/0.01551, allocations: 8 kB / 385.1 MB, free: 18.94 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.966e-06/0.01552, allocations: 0 / 385.1 MB, free: 18.94 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.678e-05/0.01554, allocations: 3.984 kB / 385.1 MB, free: 18.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.01565, allocations: 11.98 kB / 385.1 MB, free: 18.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.01565, allocations: 4 kB / 385.1 MB, free: 18.92 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.01565, allocations: 0 / 385.1 MB, free: 18.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.01566, allocations: 0 / 385.1 MB, free: 18.92 MB / 314.7 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.0001762/0.01583, allocations: 344.7 kB / 385.4 MB, free: 18.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.01586, allocations: 11.98 kB / 385.4 MB, free: 18.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.01602, allocations: 132.1 kB / 385.6 MB, free: 18.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.461e-05/0.01608, allocations: 235.7 kB / 385.8 MB, free: 18.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.01611, allocations: 242.8 kB / 386 MB, free: 17.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.01613, allocations: 238.8 kB / 386.3 MB, free: 17.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.603e-05/0.01616, allocations: 149.5 kB / 386.4 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.01618, allocations: 123.1 kB / 386.5 MB, free: 17.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.0162, allocations: 246.4 kB / 386.8 MB, free: 17.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.01623, allocations: 242.4 kB / 387 MB, free: 16.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.232e-05/0.01625, allocations: 238.4 kB / 387.2 MB, free: 16.69 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001168/0.01636, allocations: 0.5569 MB / 387.8 MB, free: 16.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.265e-05/0.01641, allocations: 261.4 kB / 388.1 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.235e-05/0.01642, allocations: 126.9 kB / 388.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.216e-05/0.01643, allocations: 123.2 kB / 388.3 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.01646, allocations: 152.6 kB / 388.5 MB, free: 15.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.01646, allocations: 4 kB / 388.5 MB, free: 15.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 4.629e-05/0.0165, allocations: 29.64 kB / 388.5 MB, free: 15.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.01654, allocations: 233.9 kB / 388.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.289e-05/0.01659, allocations: 154 kB / 388.9 MB, free: 14.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.452e-06/0.0166, allocations: 25.7 kB / 388.9 MB, free: 14.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.798e-05/0.01662, allocations: 130.9 kB / 389 MB, free: 14.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.81e-07/0.01662, allocations: 0 / 389 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.79e-05/0.01664, allocations: 19.38 kB / 389 MB, free: 14.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.145e-05/0.01668, allocations: 492.1 kB / 389.5 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.925e-06/0.01668, allocations: 8 kB / 389.5 MB, free: 14.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.894e-05/0.01671, allocations: 70.91 kB / 389.6 MB, free: 14.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.186e-05/0.01672, allocations: 119.2 kB / 389.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/0.01673, allocations: 123.2 kB / 389.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.66e-05/0.01677, allocations: 33.62 kB / 389.9 MB, free: 13.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.01679, allocations: 127.2 kB / 390 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.0168, allocations: 119.2 kB / 390.1 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.01683, allocations: 250.3 kB / 390.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.768e-06/0.01684, allocations: 123.2 kB / 390.5 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.01685, allocations: 250.4 kB / 390.7 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.693e-05/0.0169, allocations: 123.1 kB / 390.8 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.01691, allocations: 127.1 kB / 391 MB, free: 12.8 MB / 314.7 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 6.162e-05/0.01697, allocations: 399 kB / 391.3 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.017, allocations: 152.8 kB / 391.5 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.288e-05/0.01702, allocations: 147.9 kB / 391.6 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.427e-05/0.01704, allocations: 268.1 kB / 391.9 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.379e-05/0.01707, allocations: 276 kB / 392.2 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/0.01709, allocations: 264.1 kB / 392.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.369e-05/0.01718, allocations: 484.5 kB / 392.9 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.0172, allocations: 144.9 kB / 393 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.323e-05/0.01721, allocations: 144.9 kB / 393.2 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-05/0.01723, allocations: 272 kB / 393.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.01726, allocations: 276.1 kB / 393.7 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-05/0.01728, allocations: 268 kB / 394 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.491e-05/0.01731, allocations: 268.1 kB / 394.2 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.593e-05/0.01737, allocations: 447.9 kB / 394.7 MB, free: 8.926 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.014e-05/0.01739, allocations: 148.9 kB / 394.8 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.01743, allocations: 276 kB / 395.1 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.747e-05/0.01747, allocations: 148.9 kB / 395.2 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.0175, allocations: 272 kB / 395.5 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.01752, allocations: 145.2 kB / 395.6 MB, free: 7.922 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.758e-05/0.01754, allocations: 127.1 kB / 395.8 MB, free: 7.797 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01755, allocations: 4.094 kB / 395.8 MB, free: 7.793 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001564/0.0177, allocations: 4 kB / 395.8 MB, free: 7.789 MB / 314.7 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 9.129e-05/0.01779, allocations: 210.4 kB / 396 MB, free: 7.57 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 4.781e-05/0.01784, allocations: 0 / 396 MB, free: 7.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.01784, allocations: 0 / 396 MB, free: 7.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.944e-06/0.01784, allocations: 3.938 kB / 396 MB, free: 7.566 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000191/0.01804, allocations: 0.7062 MB / 396.7 MB, free: 6.855 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001337/0.01817, allocations: 205.1 kB / 396.9 MB, free: 6.625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.06e-05/0.01819, allocations: 59.2 kB / 397 MB, free: 6.547 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.25e-05/0.01821, allocations: 7.984 kB / 397 MB, free: 6.539 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/0.01825, allocations: 74.2 kB / 397 MB, free: 6.465 MB / 314.7 MB Notification: Performance of SimCode: time 1.011e-06/0.01825, allocations: 0 / 397 MB, free: 6.465 MB / 314.7 MB Notification: Performance of Templates: time 0.0017/0.01995, allocations: 371 kB / 397.4 MB, free: 6.117 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.12270071497187]