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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00061/0.00061, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001002/0.001612, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006036/0.0006036, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008655/0.001469, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9287/0.9287, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.182/1.111, allocations: 52.48 MB / 238.5 MB, free: 7.621 MB / 234.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.1586/0.1586, allocations: 32.8 MB / 272 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02131/0.1799, allocations: 12.54 MB / 284.5 MB, free: 9.707 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 9.52e-07/9.52e-07, allocations: 0 / 285.8 MB, free: 8.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037e-05/1.132e-05, allocations: 2.312 kB / 285.8 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0009225/0.0009338, allocations: 0.5442 MB / 286.4 MB, free: 7.895 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.002842, allocations: 2.029 MB / 288.4 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.053e-05/0.002852, allocations: 0 / 288.4 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.915e-06/0.002855, allocations: 0 / 288.4 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.186e-06/0.002858, allocations: 0 / 288.4 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.003405, allocations: 338.4 kB / 288.7 MB, free: 5.516 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 3.733e-05/0.003443, allocations: 11.94 kB / 288.7 MB, free: 5.504 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.811e-05/0.003471, allocations: 0 / 288.7 MB, free: 5.504 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.356e-05/0.003504, allocations: 7.984 kB / 288.7 MB, free: 5.496 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009985/0.01349, allocations: 4.856 MB / 293.6 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.858e-06/0.0135, allocations: 0 / 293.6 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.852e-05/0.01357, allocations: 11.97 kB / 293.6 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.01358, allocations: 3.938 kB / 293.6 MB, free: 1.785 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.267e-06/0.01359, allocations: 0 / 293.6 MB, free: 1.785 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.434e-05/0.01367, allocations: 15.94 kB / 293.6 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.198e-06/0.01368, allocations: 0 / 293.6 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.01368, allocations: 0 / 293.6 MB, free: 1.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.208e-06/0.01369, allocations: 0 / 293.6 MB, free: 1.77 MB / 282.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.0001898/0.01388, allocations: 216.8 kB / 293.8 MB, free: 1.535 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.01391, allocations: 8.031 kB / 293.8 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/0.01408, allocations: 165.3 kB / 294 MB, free: 1.348 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.078e-05/0.01417, allocations: 181.1 kB / 294.2 MB, free: 1.145 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.521e-05/0.0142, allocations: 150.9 kB / 294.3 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.01424, allocations: 150.9 kB / 294.5 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.914e-05/0.01429, allocations: 113.5 kB / 294.6 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.01431, allocations: 83.2 kB / 294.7 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.01435, allocations: 154.6 kB / 294.8 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.613e-05/0.01439, allocations: 154.5 kB / 295 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.537e-05/0.01443, allocations: 154.5 kB / 295.1 MB, free: 196 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001509/0.01458, allocations: 357.3 kB / 295.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.448e-05/0.01463, allocations: 169.1 kB / 295.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.949e-05/0.01465, allocations: 84.14 kB / 295.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.01467, allocations: 75.28 kB / 295.8 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.0147, allocations: 109.8 kB / 295.9 MB, free: 15.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=0): time 7.21e-07/0.0147, allocations: 4 kB / 295.9 MB, free: 15.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=0): time 4.749e-05/0.01475, allocations: 29.7 kB / 295.9 MB, free: 15.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.0148, allocations: 134.6 kB / 296.1 MB, free: 15.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.728e-05/0.01485, allocations: 98.7 kB / 296.2 MB, free: 15.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.01486, allocations: 33.64 kB / 296.2 MB, free: 15.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.315e-05/0.01489, allocations: 80.14 kB / 296.3 MB, free: 14.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.22e-07/0.01489, allocations: 0 / 296.3 MB, free: 14.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.135e-05/0.01491, allocations: 17.72 kB / 296.3 MB, free: 14.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.421e-05/0.01498, allocations: 314.8 kB / 296.6 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.847e-06/0.01499, allocations: 0 / 296.6 MB, free: 14.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.739e-05/0.01502, allocations: 69.25 kB / 296.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.06e-05/0.01504, allocations: 75.28 kB / 296.7 MB, free: 14.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.267e-05/0.01507, allocations: 75.28 kB / 296.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.603e-05/0.0151, allocations: 33.69 kB / 296.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.01513, allocations: 79.28 kB / 296.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-05/0.01515, allocations: 79.22 kB / 297 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.679e-05/0.0152, allocations: 154.6 kB / 297.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.944e-05/0.01522, allocations: 79.22 kB / 297.2 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.185e-05/0.01526, allocations: 154.5 kB / 297.4 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.442e-05/0.01531, allocations: 83.28 kB / 297.5 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.01533, allocations: 79.22 kB / 297.5 MB, free: 13.65 MB / 298.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 8.137e-05/0.01541, allocations: 268.4 kB / 297.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.01544, allocations: 101 kB / 297.9 MB, free: 13.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.246e-05/0.01549, allocations: 116 kB / 298 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.132e-05/0.01553, allocations: 176.3 kB / 298.2 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.171e-05/0.01558, allocations: 184.1 kB / 298.4 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.193e-05/0.01563, allocations: 184.2 kB / 298.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.01576, allocations: 313.5 kB / 298.8 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.63e-05/0.01579, allocations: 109.2 kB / 299 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-05/0.01581, allocations: 105 kB / 299.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.137e-05/0.01585, allocations: 108.9 kB / 299.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.361e-05/0.01589, allocations: 184.3 kB / 299.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.01593, allocations: 180.2 kB / 299.5 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.892e-05/0.01597, allocations: 180.2 kB / 299.7 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-05/0.01601, allocations: 184.3 kB / 299.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.854e-05/0.0161, allocations: 307.7 kB / 300.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.457e-05/0.01614, allocations: 180.3 kB / 300.4 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.44e-05/0.0162, allocations: 104.9 kB / 300.5 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.01624, allocations: 184.2 kB / 300.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-05/0.01627, allocations: 104.9 kB / 300.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.233e-05/0.01628, allocations: 8.797 kB / 300.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01628, allocations: 4.094 kB / 300.7 MB, free: 10.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001305/0.01641, allocations: 11.94 kB / 300.8 MB, free: 10.24 MB / 298.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.201e-05/0.01648, allocations: 151.7 kB / 300.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 3.485e-05/0.01651, allocations: 0 / 300.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.01652, allocations: 0 / 300.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.725e-06/0.01652, allocations: 4 kB / 300.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001883/0.01671, allocations: 463.7 kB / 301.4 MB, free: 9.621 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001245/0.01683, allocations: 161.4 kB / 301.5 MB, free: 9.434 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.908e-05/0.01686, allocations: 51.36 kB / 301.6 MB, free: 9.363 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.721e-05/0.01688, allocations: 8 kB / 301.6 MB, free: 9.355 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.01692, allocations: 59.36 kB / 301.6 MB, free: 9.297 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.01692, allocations: 0 / 301.6 MB, free: 9.297 MB / 298.7 MB Notification: Performance of Templates: time 0.001586/0.01851, allocations: 398.7 kB / 302 MB, free: 8.914 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6613169042393565]