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.001003/0.001003, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.0009775/0.0009775, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9902/0.9902, allocations: 177.1 MB / 205 MB, free: 5.645 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.2975/0.2975, allocations: 32.81 MB / 294.3 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 2.534e-06/2.534e-06, allocations: 0 / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3e-05/3.253e-05, allocations: 6.25 kB / 376 MB, free: 4.691 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001355/0.001387, allocations: 0.4965 MB / 376.5 MB, free: 4.195 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002564/0.003951, allocations: 2.124 MB / 378.6 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.907e-05/0.00397, allocations: 0 / 378.6 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.286e-05/0.003993, allocations: 0 / 378.6 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.166e-05/0.004014, allocations: 3.938 kB / 378.6 MB, free: 2.047 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.005059, allocations: 414.4 kB / 379 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.006e-05/0.005099, allocations: 4 kB / 379 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.311e-05/0.005132, allocations: 0 / 379 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.696e-05/0.005159, allocations: 4 kB / 379 MB, free: 1.633 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01175/0.01691, allocations: 4.823 MB / 383.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.01694, allocations: 0 / 383.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.01705, allocations: 8 kB / 383.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.01706, allocations: 0 / 383.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.478e-05/0.01708, allocations: 4 kB / 383.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.01722, allocations: 15.91 kB / 383.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.01723, allocations: 0 / 383.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.01723, allocations: 3.938 kB / 383.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.01724, allocations: 0 / 383.9 MB, free: 13.91 MB / 362.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.0002678/0.01751, allocations: 348.3 kB / 384.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.01755, allocations: 8.031 kB / 384.2 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.01772, allocations: 136.1 kB / 384.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.01783, allocations: 223.8 kB / 384.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.552e-05/0.01788, allocations: 242.8 kB / 384.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.247e-05/0.01794, allocations: 242.8 kB / 385 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.514e-05/0.018, allocations: 149.4 kB / 385.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.982e-05/0.01803, allocations: 123.1 kB / 385.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.264e-05/0.01809, allocations: 246.3 kB / 385.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.525e-05/0.01815, allocations: 238.4 kB / 385.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.172e-05/0.0182, allocations: 242.4 kB / 386 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000225/0.01843, allocations: 0.5642 MB / 386.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.611e-05/0.01852, allocations: 269.4 kB / 386.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.626e-05/0.01856, allocations: 126.9 kB / 387 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.628e-05/0.01859, allocations: 123.1 kB / 387.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/0.01864, allocations: 156.6 kB / 387.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 1.352e-06/0.01864, allocations: 0 / 387.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 6.539e-05/0.0187, allocations: 33.62 kB / 387.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.817e-05/0.01878, allocations: 226 kB / 387.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.01889, allocations: 153.9 kB / 387.7 MB, free: 9.945 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.0189, allocations: 25.7 kB / 387.7 MB, free: 9.914 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.264e-05/0.01893, allocations: 126.9 kB / 387.8 MB, free: 9.785 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-06/0.01893, allocations: 4.125 kB / 387.8 MB, free: 9.781 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.163e-05/0.01895, allocations: 19.42 kB / 387.8 MB, free: 9.754 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.01907, allocations: 496.1 kB / 388.3 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.41e-06/0.01908, allocations: 0 / 388.3 MB, free: 9.258 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.908e-05/0.01913, allocations: 78.72 kB / 388.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.278e-05/0.01917, allocations: 123.2 kB / 388.5 MB, free: 9.039 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.053e-05/0.0192, allocations: 119.2 kB / 388.6 MB, free: 8.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.201e-05/0.01924, allocations: 29.7 kB / 388.7 MB, free: 8.887 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.484e-05/0.01929, allocations: 123.2 kB / 388.8 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.393e-05/0.01932, allocations: 127.1 kB / 388.9 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.085e-05/0.01939, allocations: 246.3 kB / 389.1 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.918e-05/0.01943, allocations: 127.2 kB / 389.3 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-05/0.01948, allocations: 246.3 kB / 389.5 MB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.537e-05/0.01956, allocations: 127.2 kB / 389.6 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.01959, allocations: 127.1 kB / 389.7 MB, free: 7.781 MB / 362.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 0.0001466/0.01973, allocations: 395 kB / 390.1 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.631e-05/0.01979, allocations: 144.9 kB / 390.3 MB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.51e-05/0.01985, allocations: 151.9 kB / 390.4 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.99e-05/0.01995, allocations: 272 kB / 390.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.021e-05/0.02002, allocations: 272.1 kB / 391 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.165e-05/0.02008, allocations: 276 kB / 391.2 MB, free: 6.258 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000244/0.02032, allocations: 487.9 kB / 391.7 MB, free: 5.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.023e-05/0.02035, allocations: 148.9 kB / 391.8 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.63e-05/0.02039, allocations: 152.8 kB / 392 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.719e-05/0.02045, allocations: 268.1 kB / 392.3 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.906e-05/0.0205, allocations: 276 kB / 392.5 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.096e-05/0.02056, allocations: 264.1 kB / 392.8 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.784e-05/0.02061, allocations: 268 kB / 393 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002497/0.02086, allocations: 456 kB / 393.5 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.0209, allocations: 148.8 kB / 393.6 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.995e-05/0.02096, allocations: 268.1 kB / 393.9 MB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.651e-05/0.02103, allocations: 148.9 kB / 394 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.024e-05/0.02109, allocations: 276.3 kB / 394.3 MB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.02112, allocations: 148.9 kB / 394.5 MB, free: 2.871 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.556e-05/0.02115, allocations: 119.2 kB / 394.6 MB, free: 2.754 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02115, allocations: 0 / 394.6 MB, free: 2.754 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001639/0.02132, allocations: 8 kB / 394.6 MB, free: 2.746 MB / 362.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.0001128/0.02143, allocations: 210.4 kB / 394.8 MB, free: 2.531 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.598e-05/0.0215, allocations: 7.969 kB / 394.8 MB, free: 2.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.0215, allocations: 96 / 394.8 MB, free: 2.523 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.082e-06/0.0215, allocations: 4 kB / 394.8 MB, free: 2.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.02179, allocations: 0.7023 MB / 395.5 MB, free: 1.812 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001997/0.02199, allocations: 215.1 kB / 395.7 MB, free: 1.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.131e-05/0.02202, allocations: 51.36 kB / 395.8 MB, free: 1.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.452e-05/0.02204, allocations: 0 / 395.8 MB, free: 1.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.309e-05/0.02206, allocations: 8.5 kB / 395.8 MB, free: 1.492 MB / 362.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02206, allocations: 3.938 kB / 395.8 MB, free: 1.488 MB / 362.7 MB Notification: Performance of Templates: time 0.001896/0.02395, allocations: 357 kB / 396.1 MB, free: 1.148 MB / 362.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.2480622669681907]