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.0009301/0.0009301, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009536/0.0009536, allocations: 170.2 kB / 24.92 MB, free: 8.727 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.9408/0.9408, allocations: 177.1 MB / 205.3 MB, free: 5.102 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.238/0.238, allocations: 32.8 MB / 294.6 MB, free: 1.219 MB / 266.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.513e-06/1.513e-06, allocations: 0 / 323.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.724e-05/1.876e-05, allocations: 3.188 kB / 323.2 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001008/0.001027, allocations: 497.2 kB / 323.7 MB, free: 9.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.003331, allocations: 2.132 MB / 325.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.839e-05/0.003349, allocations: 4 kB / 325.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.003362, allocations: 0 / 325.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.931e-05/0.003382, allocations: 0 / 325.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009904/0.004372, allocations: 402.4 kB / 326.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.664e-05/0.004409, allocations: 7.984 kB / 326.2 MB, free: 6.711 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.091e-05/0.004439, allocations: 0 / 326.2 MB, free: 6.711 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.622e-05/0.004466, allocations: 4 kB / 326.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01021/0.01468, allocations: 4.87 MB / 331.1 MB, free: 3.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.01469, allocations: 0 / 331.1 MB, free: 3.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.08e-05/0.01475, allocations: 11.94 kB / 331.1 MB, free: 3.008 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.224e-06/0.01476, allocations: 0 / 331.1 MB, free: 3.008 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.074e-05/0.01477, allocations: 0 / 331.1 MB, free: 3.008 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.65e-05/0.01487, allocations: 15.97 kB / 331.1 MB, free: 2.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.01487, allocations: 4 kB / 331.1 MB, free: 2.988 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.01487, allocations: 7.938 kB / 331.1 MB, free: 2.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.01488, allocations: 0 / 331.1 MB, free: 2.98 MB / 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.0001897/0.01506, allocations: 213.6 kB / 331.3 MB, free: 2.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.811e-05/0.01509, allocations: 16.02 kB / 331.4 MB, free: 2.734 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.01522, allocations: 84.22 kB / 331.4 MB, free: 2.652 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.458e-05/0.01531, allocations: 181.1 kB / 331.6 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.516e-05/0.01534, allocations: 150.9 kB / 331.8 MB, free: 2.301 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.01538, allocations: 154.9 kB / 331.9 MB, free: 2.148 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.344e-05/0.01542, allocations: 101.5 kB / 332 MB, free: 2.043 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.01544, allocations: 83.22 kB / 332.1 MB, free: 1.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.01548, allocations: 150.6 kB / 332.2 MB, free: 1.812 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/0.01551, allocations: 158.6 kB / 332.4 MB, free: 1.656 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.162e-05/0.01554, allocations: 154.5 kB / 332.5 MB, free: 1.504 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.01567, allocations: 357.3 kB / 332.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.055e-05/0.01573, allocations: 165.1 kB / 333.1 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.642e-05/0.01576, allocations: 80.14 kB / 333.1 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.01578, allocations: 75.28 kB / 333.2 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.01581, allocations: 117.8 kB / 333.3 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of pre-optimization done (n=0): time 7.61e-07/0.01582, allocations: 0 / 333.3 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of matching and sorting (n=0): time 4.55e-05/0.01586, allocations: 25.7 kB / 333.3 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.812e-05/0.01593, allocations: 194 kB / 333.5 MB, free: 448 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.746e-05/0.01599, allocations: 94.72 kB / 333.6 MB, free: 340 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.125e-06/0.01599, allocations: 25.7 kB / 333.7 MB, free: 308 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.363e-05/0.01602, allocations: 84.14 kB / 333.7 MB, free: 220 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.91e-07/0.01602, allocations: 0 / 333.7 MB, free: 220 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/0.01603, allocations: 9.719 kB / 333.7 MB, free: 204 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.752e-05/0.01611, allocations: 322.8 kB / 334.1 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.076e-06/0.01611, allocations: 0 / 334.1 MB, free: 15.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.252e-05/0.01615, allocations: 61.12 kB / 334.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.761e-05/0.01616, allocations: 83.38 kB / 334.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.558e-05/0.01618, allocations: 79.28 kB / 334.3 MB, free: 15.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.095e-05/0.01621, allocations: 29.75 kB / 334.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.01624, allocations: 83.28 kB / 334.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.01625, allocations: 79.27 kB / 334.5 MB, free: 15.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.711e-05/0.01629, allocations: 158.6 kB / 334.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.354e-05/0.01631, allocations: 95.27 kB / 334.7 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-05/0.01635, allocations: 158.4 kB / 334.9 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.712e-05/0.01639, allocations: 75.28 kB / 334.9 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.01641, allocations: 79.28 kB / 335 MB, free: 14.88 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 7.629e-05/0.01648, allocations: 256.4 kB / 335.3 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.01651, allocations: 112.9 kB / 335.4 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.985e-05/0.01656, allocations: 108 kB / 335.5 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.349e-05/0.0166, allocations: 188.2 kB / 335.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-05/0.01663, allocations: 180.2 kB / 335.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.464e-05/0.01669, allocations: 176.3 kB / 336 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.0168, allocations: 321.4 kB / 336.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-05/0.01682, allocations: 101 kB / 336.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.19e-05/0.01684, allocations: 108.9 kB / 336.5 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.263e-05/0.01688, allocations: 176.3 kB / 336.7 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.668e-05/0.01694, allocations: 180.2 kB / 336.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.585e-05/0.01698, allocations: 188.3 kB / 337.1 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.559e-05/0.01702, allocations: 180.2 kB / 337.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.396e-05/0.01709, allocations: 307.7 kB / 337.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.555e-05/0.01712, allocations: 112.9 kB / 337.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.01716, allocations: 180.2 kB / 337.8 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.467e-05/0.0172, allocations: 105 kB / 337.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.01724, allocations: 184.5 kB / 338.1 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.01726, allocations: 105 kB / 338.2 MB, free: 11.51 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.078e-06/0.01727, allocations: 8.859 kB / 338.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01727, allocations: 0 / 338.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001246/0.01739, allocations: 8.031 kB / 338.2 MB, free: 11.49 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 7.946e-05/0.01747, allocations: 151.7 kB / 338.4 MB, free: 11.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 3.4e-05/0.01751, allocations: 11.88 kB / 338.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.01751, allocations: 0.625 kB / 338.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.72e-07/0.01751, allocations: 0 / 338.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.01775, allocations: 455.7 kB / 338.8 MB, free: 10.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001233/0.01787, allocations: 158.9 kB / 339 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.409e-05/0.0179, allocations: 51.36 kB / 339 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.729e-05/0.01791, allocations: 0 / 339 MB, free: 10.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.01795, allocations: 59.36 kB / 339.1 MB, free: 10.56 MB / 314.7 MB Notification: Performance of SimCode: time 7.72e-07/0.01795, allocations: 4 kB / 339.1 MB, free: 10.55 MB / 314.7 MB Notification: Performance of Templates: time 0.001481/0.01943, allocations: 365.2 kB / 339.5 MB, free: 10.2 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: 2.7869624099694192]