Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001073/0.001073, 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.001195/0.001195, allocations: 161.4 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.9993/0.9993, allocations: 177.1 MB / 206 MB, free: 4.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1698/0.1698, allocations: 34.27 MB / 296.9 MB, free: 13.91 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 379.2 MB, free: 23.45 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.493e-05/2.644e-05, allocations: 10.25 kB / 379.3 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001102/0.001128, allocations: 489 kB / 379.7 MB, free: 22.95 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.003033, allocations: 2.105 MB / 381.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.273e-05/0.003056, allocations: 0 / 381.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.687e-05/0.003073, allocations: 0 / 381.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.96e-05/0.003093, allocations: 0 / 381.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009151/0.004008, allocations: 406.4 kB / 382.2 MB, free: 20.43 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.084e-05/0.004048, allocations: 11.98 kB / 382.2 MB, free: 20.42 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.718e-05/0.004086, allocations: 3.984 kB / 382.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.506e-05/0.004111, allocations: 4 kB / 382.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01068/0.01479, allocations: 4.828 MB / 387.1 MB, free: 16.74 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.028e-05/0.01481, allocations: 0 / 387.1 MB, free: 16.74 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.655e-05/0.0149, allocations: 8 kB / 387.1 MB, free: 16.73 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.06e-05/0.01491, allocations: 3.984 kB / 387.1 MB, free: 16.73 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.512e-05/0.01492, allocations: 11.88 kB / 387.1 MB, free: 16.72 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.01506, allocations: 8 kB / 387.1 MB, free: 16.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.01507, allocations: 3.984 kB / 387.1 MB, free: 16.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.01507, allocations: 0 / 387.1 MB, free: 16.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.01508, allocations: 0 / 387.1 MB, free: 16.71 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.0001926/0.01527, allocations: 340.7 kB / 387.5 MB, free: 16.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.0153, allocations: 8.031 kB / 387.5 MB, free: 16.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.01545, allocations: 132.1 kB / 387.6 MB, free: 16.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.883e-05/0.01552, allocations: 231.8 kB / 387.8 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.01554, allocations: 238.8 kB / 388 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.01555, allocations: 246.8 kB / 388.3 MB, free: 15.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.616e-05/0.01559, allocations: 149.4 kB / 388.4 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.0156, allocations: 123.1 kB / 388.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.01564, allocations: 242.3 kB / 388.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.832e-05/0.01568, allocations: 238.4 kB / 389 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.032e-05/0.0157, allocations: 246.4 kB / 389.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001276/0.01583, allocations: 0.5491 MB / 389.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.829e-05/0.01588, allocations: 265.4 kB / 390.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.482e-05/0.01589, allocations: 130.9 kB / 390.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.01591, allocations: 127.1 kB / 390.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.01594, allocations: 156.6 kB / 390.5 MB, free: 13.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.01594, allocations: 0 / 390.5 MB, free: 13.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 5.26e-05/0.01599, allocations: 25.7 kB / 390.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.01603, allocations: 225.9 kB / 390.7 MB, free: 12.94 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.743e-05/0.01609, allocations: 153.9 kB / 390.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.031e-06/0.0161, allocations: 25.7 kB / 390.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.766e-05/0.01611, allocations: 130.9 kB / 391 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.01e-07/0.01611, allocations: 0 / 391 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/0.01613, allocations: 23.55 kB / 391 MB, free: 12.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.049e-05/0.01617, allocations: 496.1 kB / 391.5 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.905e-06/0.01618, allocations: 0 / 391.5 MB, free: 12.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.783e-05/0.0162, allocations: 74.72 kB / 391.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.141e-05/0.01622, allocations: 131.1 kB / 391.7 MB, free: 11.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.01623, allocations: 119.2 kB / 391.9 MB, free: 11.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.426e-05/0.01626, allocations: 29.7 kB / 391.9 MB, free: 11.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.01628, allocations: 123.2 kB / 392 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.01629, allocations: 127.1 kB / 392.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.01632, allocations: 242.4 kB / 392.4 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.013e-05/0.01633, allocations: 127.3 kB / 392.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.01635, allocations: 246.3 kB / 392.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.088e-05/0.0164, allocations: 123.2 kB / 392.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.01641, allocations: 123.1 kB / 393 MB, free: 10.61 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 5.951e-05/0.01647, allocations: 399 kB / 393.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.769e-05/0.0165, allocations: 148.9 kB / 393.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.559e-05/0.01652, allocations: 151.9 kB / 393.6 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/0.01654, allocations: 268 kB / 393.9 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.085e-05/0.01656, allocations: 268 kB / 394.2 MB, free: 9.363 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/0.01659, allocations: 272 kB / 394.4 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.027e-05/0.01668, allocations: 480.5 kB / 394.9 MB, free: 8.586 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.01669, allocations: 148.9 kB / 395.1 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.376e-05/0.0167, allocations: 152.8 kB / 395.2 MB, free: 8.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.098e-05/0.01673, allocations: 264.1 kB / 395.5 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.01675, allocations: 272 kB / 395.7 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-05/0.01677, allocations: 272.1 kB / 396 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-05/0.01679, allocations: 268 kB / 396.3 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.793e-05/0.01686, allocations: 448 kB / 396.7 MB, free: 6.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.793e-05/0.01688, allocations: 156.8 kB / 396.8 MB, free: 6.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.01691, allocations: 268.1 kB / 397.1 MB, free: 6.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.487e-05/0.01695, allocations: 152.8 kB / 397.3 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.388e-05/0.01698, allocations: 268.4 kB / 397.5 MB, free: 5.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.01699, allocations: 148.9 kB / 397.7 MB, free: 5.723 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.061e-05/0.01701, allocations: 123.1 kB / 397.8 MB, free: 5.602 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.01701, allocations: 0 / 397.8 MB, free: 5.602 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001503/0.01716, allocations: 0 / 397.8 MB, free: 5.602 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.0001036/0.01726, allocations: 218.4 kB / 398 MB, free: 5.375 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 5.767e-05/0.01732, allocations: 8.031 kB / 398 MB, free: 5.367 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.01732, allocations: 4 kB / 398 MB, free: 5.363 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.01732, allocations: 0 / 398 MB, free: 5.363 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.01755, allocations: 0.7101 MB / 398.7 MB, free: 4.648 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001606/0.01771, allocations: 197.1 kB / 398.9 MB, free: 4.426 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.254e-05/0.01774, allocations: 55.22 kB / 399 MB, free: 4.352 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.768e-05/0.01776, allocations: 4 kB / 399 MB, free: 4.348 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.409e-05/0.01781, allocations: 74.19 kB / 399 MB, free: 4.273 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01781, allocations: 0 / 399 MB, free: 4.273 MB / 314.7 MB Notification: Performance of Templates: time 0.00181/0.01962, allocations: 378.9 kB / 399.4 MB, free: 3.914 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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: 3.20151546318084]