Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.0009424/0.0009424, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001076/0.001076, allocations: 165.8 kB / 24.82 MB, free: 9.266 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.045/1.045, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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(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.1.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.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 273.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.464e-05/2.625e-05, allocations: 2.312 kB / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006905/0.006932, allocations: 8.007 MB / 281.4 MB, free: 9.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006119/0.01305, allocations: 5.523 MB / 286.9 MB, free: 3.699 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005812/0.01363, allocations: 27.75 kB / 286.9 MB, free: 3.672 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005487/0.01418, allocations: 250.4 kB / 287.2 MB, free: 3.426 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00185/0.01603, allocations: 1.068 MB / 288.2 MB, free: 2.352 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002811/0.01884, allocations: 1.835 MB / 290.1 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1102/0.1291, allocations: 2.152 MB / 292.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001095/0.1302, allocations: 0.5336 MB / 292.8 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.1323, allocations: 1.081 MB / 293.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.1335, allocations: 0.7521 MB / 294.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002406/0.1338, allocations: 78.03 kB / 294.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00173/0.1355, allocations: 0.9042 MB / 295.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003612/0.1358, allocations: 340.1 kB / 295.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005402/0.1364, allocations: 333.7 kB / 296.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002507/0.1389, allocations: 1.553 MB / 297.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1389, allocations: 0 / 297.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1389, allocations: 1.594 kB / 297.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.047e-05/0.1389, allocations: 0 / 297.8 MB, free: 14.98 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.002246/0.1412, allocations: 1.293 MB / 299.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.1412, allocations: 9.594 kB / 299.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003813/0.1416, allocations: 157.2 kB / 299.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007622/0.1424, allocations: 0.5545 MB / 299.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.909e-05/0.1425, allocations: 159.6 kB / 300 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.62e-05/0.1425, allocations: 61.86 kB / 300 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/0.1433, allocations: 0.804 MB / 300.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.1433, allocations: 1.375 kB / 300.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.729e-05/0.1433, allocations: 26.25 kB / 300.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.325e-05/0.1434, allocations: 51.58 kB / 300.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004735/0.1439, allocations: 298.3 kB / 301.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00271/0.1466, allocations: 2.15 MB / 303.3 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004003/0.147, allocations: 315.7 kB / 303.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.1472, allocations: 121.2 kB / 303.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001135/0.1483, allocations: 0.9435 MB / 304.7 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.1483, allocations: 42.14 kB / 304.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.325e-06/0.1483, allocations: 0 / 304.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002553/0.1509, allocations: 1.416 MB / 306.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.39e-05/0.1509, allocations: 92.25 kB / 306.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.1512, allocations: 0.5256 MB / 306.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.84e-05/0.1512, allocations: 39.39 kB / 306.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001382/0.1514, allocations: 399.5 kB / 307.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.1515, allocations: 251.2 kB / 307.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.1516, allocations: 154.9 kB / 307.6 MB, free: 10.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.142e-05/0.1517, allocations: 0.5604 MB / 308.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.1519, allocations: 118.7 kB / 308.3 MB, free: 10.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.1521, allocations: 366 kB / 308.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003744/0.1524, allocations: 468.4 kB / 309.1 MB, free: 9.867 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.1524, allocations: 0 / 309.1 MB, free: 9.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006746/0.1531, allocations: 0.6103 MB / 309.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1531, allocations: 6.094 kB / 309.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1531, allocations: 10.95 kB / 309.7 MB, free: 9.684 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005503/0.1537, allocations: 285.4 kB / 310 MB, free: 9.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/0.154, allocations: 163 kB / 310.2 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000418/0.1544, allocations: 0.9315 MB / 311.1 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002546/0.1547, allocations: 36.89 kB / 311.1 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.269e-05/0.1547, allocations: 28.5 kB / 311.2 MB, free: 8.746 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000234/0.1549, allocations: 251.8 kB / 311.4 MB, free: 8.578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002073/0.1552, allocations: 365.2 kB / 311.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003679/0.1555, allocations: 464.8 kB / 312.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.585e-06/0.1555, allocations: 3.531 kB / 312.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0006223/0.1561, allocations: 0.5883 MB / 312.8 MB, free: 7.703 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.1562, allocations: 11.62 kB / 312.8 MB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1562, allocations: 6.188 kB / 312.8 MB, free: 7.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000287/0.1564, allocations: 190.6 kB / 313 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.1567, allocations: 166.4 kB / 313.2 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003187/0.1571, allocations: 0.8994 MB / 314.1 MB, free: 6.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.1573, allocations: 28 kB / 314.1 MB, free: 6.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.1573, allocations: 23.98 kB / 314.1 MB, free: 6.512 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.0001355/0.1575, allocations: 310.9 kB / 314.4 MB, free: 6.207 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.421e-05/0.1576, allocations: 98.77 kB / 314.5 MB, free: 6.113 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006486/0.1582, allocations: 0.554 MB / 315.1 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1582, allocations: 8 kB / 315.1 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1582, allocations: 0 / 315.1 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1582, allocations: 7.172 kB / 315.1 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.1593, allocations: 1.065 MB / 316.2 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.1593, allocations: 4 kB / 316.2 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.1596, allocations: 107.3 kB / 316.3 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004567/0.1601, allocations: 297.3 kB / 316.6 MB, free: 4.113 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.1601, allocations: 12 kB / 316.6 MB, free: 4.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003619/0.1605, allocations: 0.9504 MB / 317.5 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1605, allocations: 0 / 317.5 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006836/0.1611, allocations: 0.7694 MB / 318.3 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.1613, allocations: 127.5 kB / 318.4 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.553e-05/0.1614, allocations: 27.92 kB / 318.4 MB, free: 2.207 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.1616, allocations: 23.98 kB / 318.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.989e-05/0.1616, allocations: 48.56 kB / 318.5 MB, free: 2.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-05/0.1617, allocations: 19.98 kB / 318.5 MB, free: 2.117 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001418/0.1618, allocations: 330.3 kB / 318.9 MB, free: 1.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1618, allocations: 0 / 318.9 MB, free: 1.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001155/0.163, allocations: 0.5576 MB / 319.4 MB, free: 1.262 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.000603/0.1636, allocations: 446.5 kB / 319.9 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009207/0.1645, allocations: 0.7057 MB / 320.6 MB, free: 180 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1645, allocations: 3.656 kB / 320.6 MB, free: 180 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.1648, allocations: 243 kB / 320.8 MB, free: 15.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009012/0.1657, allocations: 385.5 kB / 321.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.1678, allocations: 1.399 MB / 322.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.168, allocations: 196.6 kB / 322.8 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005169/0.1685, allocations: 159.5 kB / 322.9 MB, free: 13.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005482/0.169, allocations: 377.9 kB / 323.3 MB, free: 13.47 MB / 282.7 MB Notification: Performance of SimCode: time 1.383e-06/0.169, allocations: 0 / 323.3 MB, free: 13.47 MB / 282.7 MB Notification: Performance of Templates: time 0.02595/0.195, allocations: 22.82 MB / 346.1 MB, free: 7.074 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.1694883261807263]