Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.0009793/0.0009793, 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.001697/0.001697, allocations: 170 kB / 24.91 MB, free: 9.148 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 1.025/1.025, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.2465/0.2465, allocations: 32.8 MB / 294.6 MB, free: 1.164 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 323.2 MB, free: 9.664 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.195e-05/1.353e-05, allocations: 4.281 kB / 323.2 MB, free: 9.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001012/0.001026, allocations: 0.5341 MB / 323.8 MB, free: 9.125 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001404/0.00243, allocations: 1.399 MB / 325.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.227e-05/0.002452, allocations: 0 / 325.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.104e-05/0.002463, allocations: 0 / 325.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.002618, allocations: 15.88 kB / 325.2 MB, free: 7.703 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0007674/0.003386, allocations: 260.1 kB / 325.4 MB, free: 7.465 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.08e-05/0.003427, allocations: 3.938 kB / 325.4 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.912e-05/0.003456, allocations: 8 kB / 325.5 MB, free: 7.453 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.003482, allocations: 0 / 325.5 MB, free: 7.453 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.616e-05/0.003518, allocations: 4 kB / 325.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.004e-06/0.003525, allocations: 0 / 325.5 MB, free: 7.449 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002212/0.005738, allocations: 1.007 MB / 326.5 MB, free: 6.703 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.693e-06/0.005744, allocations: 7.938 kB / 326.5 MB, free: 6.695 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.297e-05/0.005757, allocations: 4.625 kB / 326.5 MB, free: 6.691 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.00599, allocations: 215.4 kB / 326.7 MB, free: 6.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.005992, allocations: 0 / 326.7 MB, free: 6.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.005992, allocations: 0 / 326.7 MB, free: 6.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.655e-06/0.005995, allocations: 0 / 326.7 MB, free: 6.48 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002229/0.006218, allocations: 279.3 kB / 327 MB, free: 6.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.006246, allocations: 12.03 kB / 327 MB, free: 6.168 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.523e-05/0.006271, allocations: 0.9375 kB / 327 MB, free: 6.168 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.892e-05/0.00634, allocations: 110.1 kB / 327.1 MB, free: 6.035 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.006348, allocations: 4.312 kB / 327.1 MB, free: 6.031 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.579e-06/0.006353, allocations: 384 / 327.1 MB, free: 6.031 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.578e-05/0.006408, allocations: 59.95 kB / 327.1 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.006414, allocations: 192 / 327.1 MB, free: 5.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.64e-06/0.006419, allocations: 4.125 kB / 327.1 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.096e-06/0.006423, allocations: 0 / 327.1 MB, free: 5.957 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.317e-05/0.006436, allocations: 25.7 kB / 327.2 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.394e-05/0.00649, allocations: 68.94 kB / 327.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.888e-05/0.006529, allocations: 48.25 kB / 327.3 MB, free: 5.781 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.459e-05/0.006543, allocations: 38.55 kB / 327.3 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-06/0.006545, allocations: 0 / 327.3 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.006572, allocations: 60.33 kB / 327.4 MB, free: 5.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.91e-07/0.006573, allocations: 0 / 327.4 MB, free: 5.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 8.956e-05/0.006662, allocations: 106.8 kB / 327.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.006692, allocations: 85.09 kB / 327.6 MB, free: 5.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.677e-05/0.006739, allocations: 106.6 kB / 327.7 MB, free: 5.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.006747, allocations: 29.7 kB / 327.7 MB, free: 5.277 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.925e-05/0.006766, allocations: 84.39 kB / 327.8 MB, free: 5.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.015e-05/0.006776, allocations: 4 kB / 327.8 MB, free: 5.188 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.802e-05/0.006794, allocations: 13.66 kB / 327.8 MB, free: 5.168 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.2e-05/0.006866, allocations: 314.8 kB / 328.1 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.62e-05/0.006892, allocations: 29.69 kB / 328.1 MB, free: 4.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.111e-05/0.006903, allocations: 25.7 kB / 328.2 MB, free: 4.785 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.687e-05/0.00693, allocations: 60.27 kB / 328.2 MB, free: 4.711 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.006932, allocations: 0 / 328.2 MB, free: 4.711 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.32e-05/0.006975, allocations: 89.09 kB / 328.3 MB, free: 4.605 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.006995, allocations: 29.7 kB / 328.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.006999, allocations: 4.094 kB / 328.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.456e-06/0.007007, allocations: 0 / 328.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.007009, allocations: 0 / 328.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.007012, allocations: 7.938 kB / 328.4 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.768e-06/0.007022, allocations: 3.938 kB / 328.4 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-06/0.007027, allocations: 0 / 328.4 MB, free: 4.555 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 4.909e-05/0.007076, allocations: 139.5 kB / 328.5 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-06/0.007081, allocations: 3.984 kB / 328.5 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.789e-06/0.007091, allocations: 11.14 kB / 328.5 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.71e-07/0.007091, allocations: 0 / 328.5 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.007092, allocations: 4 kB / 328.5 MB, free: 4.387 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.007095, allocations: 7.938 kB / 328.5 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.909e-05/0.007164, allocations: 61.91 kB / 328.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.007165, allocations: 0 / 328.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.007165, allocations: 0 / 328.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.61e-07/0.007166, allocations: 0 / 328.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-06/0.00717, allocations: 7.938 kB / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.00717, allocations: 0 / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.2e-07/0.00717, allocations: 0 / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.454e-05/0.007225, allocations: 112.5 kB / 328.7 MB, free: 4.152 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.929e-06/0.00723, allocations: 8.562 kB / 328.7 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.007241, allocations: 8.016 kB / 328.7 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.278e-06/0.007245, allocations: 0 / 328.7 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.254e-06/0.007252, allocations: 0 / 328.7 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.007254, allocations: 4 kB / 328.7 MB, free: 4.133 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.871e-06/0.00726, allocations: 4.859 kB / 328.7 MB, free: 4.125 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00726, allocations: 0 / 328.7 MB, free: 4.125 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001583/0.007419, allocations: 67.8 kB / 328.8 MB, free: 4.059 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0005725/0.007991, allocations: 398.9 kB / 329.2 MB, free: 3.797 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.559e-05/0.008067, allocations: 123.6 kB / 329.3 MB, free: 3.648 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.008069, allocations: 0 / 329.3 MB, free: 3.648 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.64e-05/0.008095, allocations: 89.95 kB / 329.4 MB, free: 3.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.268e-05/0.008148, allocations: 0 / 329.4 MB, free: 3.539 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001842/0.008332, allocations: 123 kB / 329.5 MB, free: 3.387 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.36e-05/0.008356, allocations: 59.28 kB / 329.6 MB, free: 3.309 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.519e-06/0.00836, allocations: 0 / 329.6 MB, free: 3.309 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.116e-05/0.008391, allocations: 51.38 kB / 329.6 MB, free: 3.258 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.008392, allocations: 0 / 329.6 MB, free: 3.258 MB / 298.7 MB Notification: Performance of Templates: time 0.003079/0.01147, allocations: 1.889 MB / 331.5 MB, free: 1.375 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.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.0994606409221888]