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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009557/0.0009557, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.984/0.984, allocations: 177 MB / 205.2 MB, free: 5.039 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3414/0.3414, allocations: 34.86 MB / 296.6 MB, free: 408 kB / 266.7 MB " [Timeout remaining time 180] 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=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 325.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.556e-05/2.731e-05, allocations: 2.312 kB / 325.9 MB, free: 7.129 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001878/0.001905, allocations: 0.5328 MB / 326.5 MB, free: 6.602 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003028/0.004933, allocations: 2.128 MB / 328.6 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.825e-05/0.004951, allocations: 0 / 328.6 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.402e-05/0.004965, allocations: 0 / 328.6 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.077e-05/0.004986, allocations: 0 / 328.6 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.006002, allocations: 370.3 kB / 328.9 MB, free: 4.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.578e-05/0.006048, allocations: 4 kB / 329 MB, free: 4.086 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.513e-05/0.006083, allocations: 4 kB / 329 MB, free: 4.082 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.265e-05/0.006116, allocations: 4 kB / 329 MB, free: 4.078 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01069/0.01681, allocations: 4.822 MB / 333.8 MB, free: 408 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.01684, allocations: 0 / 333.8 MB, free: 408 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001172/0.01695, allocations: 4 kB / 333.8 MB, free: 404 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.626e-06/0.01696, allocations: 4 kB / 333.8 MB, free: 400 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.838e-05/0.01698, allocations: 8.609 kB / 333.8 MB, free: 392 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.01712, allocations: 8 kB / 333.8 MB, free: 384 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.01712, allocations: 0 / 333.8 MB, free: 384 kB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.01712, allocations: 0 / 333.8 MB, free: 384 kB / 298.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.01713, allocations: 0 / 333.8 MB, free: 384 kB / 298.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.0002088/0.01734, allocations: 221 kB / 334 MB, free: 140 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.01738, allocations: 8.031 kB / 334 MB, free: 132 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.01754, allocations: 88.2 kB / 334.1 MB, free: 44 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.01765, allocations: 181.1 kB / 334.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.037e-05/0.01769, allocations: 154.9 kB / 334.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.01773, allocations: 154.9 kB / 334.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.636e-05/0.01777, allocations: 105.5 kB / 334.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.01779, allocations: 75.47 kB / 334.8 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.01784, allocations: 154.9 kB / 334.9 MB, free: 15.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.91e-05/0.01788, allocations: 162.5 kB / 335.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.601e-05/0.01791, allocations: 150.6 kB / 335.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.01806, allocations: 353.3 kB / 335.6 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.303e-05/0.01814, allocations: 169.1 kB / 335.7 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.559e-05/0.01816, allocations: 80.14 kB / 335.8 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.01819, allocations: 83.28 kB / 335.9 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.01823, allocations: 105.8 kB / 336 MB, free: 14.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.01823, allocations: 0 / 336 MB, free: 14.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 5.446e-05/0.01828, allocations: 29.7 kB / 336 MB, free: 14.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/0.01835, allocations: 186 kB / 336.2 MB, free: 13.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.896e-05/0.01842, allocations: 98.7 kB / 336.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.01843, allocations: 29.64 kB / 336.3 MB, free: 13.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.498e-05/0.01845, allocations: 84.14 kB / 336.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.81e-07/0.01845, allocations: 0 / 336.4 MB, free: 13.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.874e-05/0.01847, allocations: 9.719 kB / 336.4 MB, free: 13.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.998e-05/0.01855, allocations: 326.9 kB / 336.7 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.096e-06/0.01855, allocations: 0 / 336.7 MB, free: 13.26 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.683e-05/0.01859, allocations: 61.12 kB / 336.8 MB, free: 13.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.264e-05/0.01861, allocations: 79.28 kB / 336.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.686e-05/0.01863, allocations: 75.28 kB / 337 MB, free: 13.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.443e-05/0.01867, allocations: 33.69 kB / 337 MB, free: 12.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.0187, allocations: 79.28 kB / 337.1 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.01872, allocations: 79.22 kB / 337.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.695e-05/0.01877, allocations: 162.7 kB / 337.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.045e-05/0.01879, allocations: 83.23 kB / 337.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.42e-05/0.01882, allocations: 150.6 kB / 337.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.229e-05/0.01889, allocations: 87.22 kB / 337.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.0189, allocations: 79.22 kB / 337.7 MB, free: 12.28 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 9.137e-05/0.01899, allocations: 264.4 kB / 338 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.206e-05/0.01904, allocations: 101 kB / 338.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.602e-05/0.01907, allocations: 107.9 kB / 338.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.19e-05/0.01911, allocations: 184.3 kB / 338.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.192e-05/0.01916, allocations: 184.2 kB / 338.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.48e-05/0.0192, allocations: 176.3 kB / 338.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.01933, allocations: 317.4 kB / 339 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.408e-05/0.01935, allocations: 108.9 kB / 339.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.479e-05/0.01938, allocations: 105 kB / 339.2 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.62e-05/0.01942, allocations: 192.2 kB / 339.4 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.362e-05/0.01947, allocations: 180.2 kB / 339.6 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-05/0.01951, allocations: 184.3 kB / 339.8 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.402e-05/0.01955, allocations: 180.2 kB / 339.9 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.01966, allocations: 315.7 kB / 340.2 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.198e-05/0.0197, allocations: 101 kB / 340.3 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.01975, allocations: 180.3 kB / 340.5 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.926e-05/0.01981, allocations: 108.9 kB / 340.6 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.01985, allocations: 180.6 kB / 340.8 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.01988, allocations: 116.9 kB / 340.9 MB, free: 8.895 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.745e-05/0.0199, allocations: 8.797 kB / 340.9 MB, free: 8.883 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0199, allocations: 0 / 340.9 MB, free: 8.883 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00013/0.02003, allocations: 4 kB / 340.9 MB, free: 8.879 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 0.000102/0.02013, allocations: 143.7 kB / 341.1 MB, free: 8.727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 4.102e-05/0.02017, allocations: 4.75 kB / 341.1 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.02018, allocations: 0 / 341.1 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.383e-06/0.02018, allocations: 0 / 341.1 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001998/0.02038, allocations: 459.7 kB / 341.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000164/0.02054, allocations: 170.4 kB / 341.7 MB, free: 8.074 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.041e-05/0.02057, allocations: 51.36 kB / 341.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.217e-05/0.02059, allocations: 0 / 341.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.546e-05/0.02064, allocations: 51.38 kB / 341.8 MB, free: 7.953 MB / 314.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02064, allocations: 4 kB / 341.8 MB, free: 7.949 MB / 314.7 MB Notification: Performance of Templates: time 0.001832/0.02247, allocations: 367.2 kB / 342.1 MB, free: 7.598 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.900138792116195]