Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.001293/0.001293, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001448/0.001448, allocations: 140.3 kB / 24.89 MB, free: 9.207 MB / 18.57 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.9062/0.9062, allocations: 173.3 MB / 201.5 MB, free: 9.16 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 3.938 kB / 268.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.367e-05/2.542e-05, allocations: 2.312 kB / 268.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.009416/0.009442, allocations: 7.96 MB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006932/0.01637, allocations: 5.603 MB / 282 MB, free: 8.547 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002805/0.01665, allocations: 31.69 kB / 282 MB, free: 8.516 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004779/0.01713, allocations: 246.3 kB / 282.3 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001382/0.01851, allocations: 1.053 MB / 283.3 MB, free: 7.215 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002241/0.02076, allocations: 1.851 MB / 285.2 MB, free: 5.359 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.02214, allocations: 2.128 MB / 287.3 MB, free: 3.223 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004445/0.02258, allocations: 0.5454 MB / 287.9 MB, free: 2.652 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008436/0.02343, allocations: 1.064 MB / 288.9 MB, free: 1.586 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005806/0.02401, allocations: 0.6934 MB / 289.6 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.534e-05/0.02409, allocations: 80 kB / 289.7 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.09842/0.1225, allocations: 0.8854 MB / 290.6 MB, free: 17.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004871/0.123, allocations: 345.2 kB / 290.9 MB, free: 17.65 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005035/0.1235, allocations: 328.7 kB / 291.2 MB, free: 17.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001894/0.1254, allocations: 1.539 MB / 292.8 MB, free: 17.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.1254, allocations: 0 / 292.8 MB, free: 17.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1254, allocations: 1.312 kB / 292.8 MB, free: 17.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.1254, allocations: 0.7969 kB / 292.8 MB, free: 17.61 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001468/0.1269, allocations: 1.151 MB / 293.9 MB, free: 17 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.1269, allocations: 11.17 kB / 293.9 MB, free: 17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000249/0.1272, allocations: 129.3 kB / 294.1 MB, free: 16.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005505/0.1277, allocations: 490.7 kB / 294.6 MB, free: 16.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.963e-05/0.1278, allocations: 158.3 kB / 294.7 MB, free: 16.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.457e-05/0.1279, allocations: 63.09 kB / 294.8 MB, free: 16.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006377/0.1285, allocations: 0.8052 MB / 295.6 MB, free: 16.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.1285, allocations: 0 / 295.6 MB, free: 16.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.1286, allocations: 24.23 kB / 295.6 MB, free: 16.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-05/0.1286, allocations: 51.3 kB / 295.6 MB, free: 16.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003982/0.129, allocations: 264 kB / 295.9 MB, free: 16.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.1312, allocations: 1.665 MB / 297.6 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003681/0.1316, allocations: 326.9 kB / 297.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.1317, allocations: 108.8 kB / 298 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001024/0.1328, allocations: 0.7879 MB / 298.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.1328, allocations: 42.66 kB / 298.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.402e-06/0.1328, allocations: 0 / 298.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002648/0.1354, allocations: 1.424 MB / 300.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.281e-05/0.1355, allocations: 88.36 kB / 300.3 MB, free: 14.75 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.1358, allocations: 481.6 kB / 300.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.1358, allocations: 38.77 kB / 300.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.606e-05/0.1359, allocations: 296 kB / 301.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.493e-05/0.136, allocations: 238.7 kB / 301.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.1361, allocations: 143.9 kB / 301.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.798e-05/0.1362, allocations: 378 kB / 301.9 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.1363, allocations: 106.8 kB / 302 MB, free: 13.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.1365, allocations: 289.2 kB / 302.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/0.1369, allocations: 414.9 kB / 302.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1369, allocations: 1.375 kB / 302.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005908/0.1375, allocations: 488.9 kB / 303.1 MB, free: 13.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.1375, allocations: 7.969 kB / 303.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1375, allocations: 7.047 kB / 303.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005361/0.138, allocations: 283.4 kB / 303.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.1383, allocations: 155.2 kB / 303.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003604/0.1387, allocations: 0.6476 MB / 304.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.1389, allocations: 31.69 kB / 304.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.831e-05/0.139, allocations: 22.61 kB / 304.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002082/0.1392, allocations: 207.1 kB / 304.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001592/0.1393, allocations: 290.4 kB / 304.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003011/0.1396, allocations: 418.8 kB / 305.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.1396, allocations: 0 / 305.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0005036/0.1401, allocations: 474.2 kB / 305.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.205e-06/0.1401, allocations: 6.062 kB / 305.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1401, allocations: 12.78 kB / 305.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002705/0.1404, allocations: 183 kB / 305.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.1407, allocations: 167.4 kB / 306 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002686/0.141, allocations: 0.6196 MB / 306.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.1412, allocations: 22.44 kB / 306.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.1412, allocations: 27.53 kB / 306.7 MB, free: 11.79 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001078/0.1413, allocations: 230.3 kB / 306.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.146e-05/0.1414, allocations: 64.69 kB / 307 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005418/0.1419, allocations: 470.8 kB / 307.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.142, allocations: 10.84 kB / 307.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.142, allocations: 0 / 307.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.142, allocations: 3.328 kB / 307.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009163/0.1429, allocations: 0.8823 MB / 308.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1429, allocations: 0 / 308.3 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.1431, allocations: 110.2 kB / 308.4 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004268/0.1436, allocations: 284.4 kB / 308.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.1436, allocations: 16.22 kB / 308.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003105/0.1439, allocations: 0.655 MB / 309.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1439, allocations: 1.453 kB / 309.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006066/0.1445, allocations: 0.6541 MB / 310 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.1447, allocations: 108.5 kB / 310.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.203e-05/0.1447, allocations: 12.59 kB / 310.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.1449, allocations: 29.38 kB / 310.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.272e-05/0.145, allocations: 50 kB / 310.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.521e-05/0.145, allocations: 19.19 kB / 310.2 MB, free: 10.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001347/0.1452, allocations: 208.8 kB / 310.4 MB, free: 10.42 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1452, allocations: 0 / 310.4 MB, free: 10.42 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008178/0.146, allocations: 0.5572 MB / 311 MB, free: 10.36 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005346/0.1465, allocations: 419.7 kB / 311.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008071/0.1473, allocations: 0.6413 MB / 312.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.727e-06/0.1473, allocations: 7.188 kB / 312.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.1476, allocations: 214.6 kB / 312.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007424/0.1483, allocations: 378.2 kB / 312.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.15, allocations: 1.342 MB / 314 MB, free: 9.012 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.699e-05/0.15, allocations: 198.2 kB / 314.2 MB, free: 8.855 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003584/0.1504, allocations: 163.4 kB / 314.3 MB, free: 8.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004563/0.1509, allocations: 315.5 kB / 314.6 MB, free: 8.496 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1509, allocations: 0 / 314.6 MB, free: 8.496 MB / 266.7 MB Notification: Performance of Templates: time 0.0204/0.1712, allocations: 22.77 MB / 337.4 MB, free: 2.527 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.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.0699341068975627]