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.001358/0.001358, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.00145/0.00145, allocations: 215.8 kB / 23.73 MB, free: 4.16 MB / 14.72 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 1.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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.257/0.257, allocations: 46.95 MB / 360.9 MB, free: 4.145 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002329/0.002329, allocations: 67.91 kB / 0.4966 GB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4095, allocations: 66.03 MB / 0.5611 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001769/0.4113, allocations: 489 kB / 0.5615 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003485/0.4148, allocations: 2.07 MB / 0.5635 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.942e-05/0.4148, allocations: 0 / 0.5635 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.4148, allocations: 0 / 0.5635 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.271e-05/0.4148, allocations: 7.938 kB / 0.5635 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.4161, allocations: 395.4 kB / 0.5639 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.867e-05/0.4161, allocations: 4 kB / 0.5639 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.857e-05/0.4162, allocations: 7.984 kB / 0.5639 GB, free: 1.215 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.338e-05/0.4162, allocations: 4 kB / 0.5639 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02169/0.4379, allocations: 3.394 MB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.4379, allocations: 0 / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.438, allocations: 11.92 kB / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.426e-05/0.438, allocations: 0 / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.285e-05/0.4381, allocations: 0 / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.4382, allocations: 11.98 kB / 0.5673 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4383, allocations: 4 kB / 0.5673 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4383, allocations: 0 / 0.5673 GB, free: 14.43 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.4383, allocations: 0 / 0.5673 GB, free: 14.43 MB / 414.1 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.0003664/0.4386, allocations: 242.4 kB / 0.5675 GB, free: 14.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4387, allocations: 11.97 kB / 0.5675 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002434/0.4389, allocations: 88.2 kB / 0.5676 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.4391, allocations: 181.8 kB / 0.5678 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.821e-05/0.4391, allocations: 154.9 kB / 0.5679 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.769e-05/0.4392, allocations: 154.7 kB / 0.5681 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.335e-05/0.4393, allocations: 101 kB / 0.5682 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.351e-05/0.4393, allocations: 79.22 kB / 0.5683 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.161e-05/0.4394, allocations: 154.6 kB / 0.5684 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.798e-05/0.4395, allocations: 150.6 kB / 0.5685 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.593e-05/0.4396, allocations: 154.6 kB / 0.5687 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003242/0.4399, allocations: 397.6 kB / 0.5691 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.44, allocations: 169.1 kB / 0.5692 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.422e-05/0.4401, allocations: 84.08 kB / 0.5693 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.468e-05/0.4401, allocations: 79.28 kB / 0.5694 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.146e-05/0.4402, allocations: 113.8 kB / 0.5695 GB, free: 12.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 7.71e-07/0.4402, allocations: 0 / 0.5695 GB, free: 12.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 9.02e-05/0.4403, allocations: 25.7 kB / 0.5695 GB, free: 12.01 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.4404, allocations: 182.1 kB / 0.5697 GB, free: 11.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.4405, allocations: 93.86 kB / 0.5698 GB, free: 11.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.4405, allocations: 29.64 kB / 0.5698 GB, free: 11.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.4406, allocations: 84.14 kB / 0.5699 GB, free: 11.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-06/0.4406, allocations: 0 / 0.5699 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.4406, allocations: 13.72 kB / 0.5699 GB, free: 11.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.4408, allocations: 314.8 kB / 0.5702 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.464e-06/0.4408, allocations: 7.938 kB / 0.5702 GB, free: 11.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.485e-05/0.4408, allocations: 61.12 kB / 0.5703 GB, free: 11.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.849e-05/0.4409, allocations: 75.28 kB / 0.5703 GB, free: 11.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.816e-05/0.4409, allocations: 79.28 kB / 0.5704 GB, free: 11.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.691e-05/0.441, allocations: 29.64 kB / 0.5704 GB, free: 10.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.589e-05/0.441, allocations: 87.44 kB / 0.5705 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.702e-05/0.4411, allocations: 79.22 kB / 0.5706 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.125e-05/0.4412, allocations: 154.6 kB / 0.5708 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.069e-05/0.4412, allocations: 87.27 kB / 0.5708 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-05/0.4413, allocations: 158.5 kB / 0.571 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.4414, allocations: 75.28 kB / 0.5711 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.4414, allocations: 83.22 kB / 0.5711 GB, free: 10.26 MB / 414.1 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.0001582/0.4416, allocations: 256.4 kB / 0.5714 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.357e-05/0.4416, allocations: 108.9 kB / 0.5715 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.363e-05/0.4417, allocations: 115.8 kB / 0.5716 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.091e-05/0.4418, allocations: 184.2 kB / 0.5718 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.304e-05/0.4419, allocations: 180.3 kB / 0.5719 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.07e-05/0.4419, allocations: 180.2 kB / 0.5721 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.4422, allocations: 360.8 kB / 0.5725 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-05/0.4422, allocations: 101 kB / 0.5726 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.883e-05/0.4423, allocations: 104.9 kB / 0.5727 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.4424, allocations: 184.2 kB / 0.5728 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.4425, allocations: 180.2 kB / 0.573 GB, free: 8.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.509e-05/0.4426, allocations: 180.2 kB / 0.5732 GB, free: 8.047 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.843e-05/0.4427, allocations: 188.2 kB / 0.5734 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002029/0.4429, allocations: 304.2 kB / 0.5736 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.14e-05/0.443, allocations: 104.9 kB / 0.5737 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.4431, allocations: 192.2 kB / 0.5739 GB, free: 7.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.4432, allocations: 105 kB / 0.574 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.4433, allocations: 184.2 kB / 0.5742 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.051e-05/0.4434, allocations: 101 kB / 0.5743 GB, free: 6.828 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.776e-05/0.4435, allocations: 79.22 kB / 0.5744 GB, free: 6.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4435, allocations: 0 / 0.5744 GB, free: 6.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002924/0.4438, allocations: 4 kB / 0.5744 GB, free: 6.746 MB / 414.1 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.0001785/0.444, allocations: 174.6 kB / 0.5745 GB, free: 6.562 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 6.373e-05/0.444, allocations: 3.938 kB / 0.5745 GB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.444, allocations: 0 / 0.5745 GB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.771e-06/0.444, allocations: 4 kB / 0.5746 GB, free: 6.555 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.4445, allocations: 458.8 kB / 0.575 GB, free: 6.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002615/0.4447, allocations: 152.3 kB / 0.5751 GB, free: 5.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.931e-05/0.4448, allocations: 51.36 kB / 0.5752 GB, free: 5.859 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.731e-05/0.4448, allocations: 7.984 kB / 0.5752 GB, free: 5.852 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.55e-05/0.4448, allocations: 7.438 kB / 0.5752 GB, free: 5.844 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4448, allocations: 0 / 0.5752 GB, free: 5.844 MB / 414.1 MB Notification: Performance of Templates: time 0.003231/0.4481, allocations: 337.3 kB / 0.5755 GB, free: 5.523 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.354922320693731]