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.001033/0.001033, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001061/0.001061, allocations: 167.3 kB / 24.99 MB, free: 8.746 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.001/1.001, allocations: 177.1 MB / 205.3 MB, free: 5.645 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.773e-06/1.773e-06, allocations: 0 / 273 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.283e-05/2.461e-05, allocations: 2.312 kB / 273 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01277/0.0128, allocations: 16.37 MB / 289.4 MB, free: 1.426 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1125/0.1253, allocations: 6.892 MB / 296.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004398/0.1257, allocations: 32.59 kB / 296.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006719/0.1264, allocations: 324.5 kB / 296.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001656/0.1281, allocations: 1.151 MB / 297.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002745/0.1308, allocations: 1.882 MB / 299.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001624/0.1324, allocations: 2.171 MB / 301.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004728/0.1329, allocations: 0.5285 MB / 302.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.134, allocations: 1.066 MB / 303.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008113/0.1348, allocations: 0.7843 MB / 304.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1349, allocations: 78.84 kB / 304.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.1362, allocations: 1.025 MB / 305.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002201/0.1365, allocations: 345.2 kB / 305.7 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000273/0.1367, allocations: 339.1 kB / 306 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001464/0.1382, allocations: 1.657 MB / 307.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1382, allocations: 0.7188 kB / 307.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1382, allocations: 0 / 307.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.497e-06/0.1382, allocations: 1.125 kB / 307.7 MB, free: 11.2 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.001456/0.1397, allocations: 1.324 MB / 309 MB, free: 10.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.1397, allocations: 14.75 kB / 309 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003661/0.1401, allocations: 154.4 kB / 309.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006517/0.1407, allocations: 0.578 MB / 309.7 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.325e-05/0.1408, allocations: 163 kB / 309.9 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.253e-05/0.1409, allocations: 56.98 kB / 309.9 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006846/0.1416, allocations: 0.8591 MB / 310.8 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1416, allocations: 0 / 310.8 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.1416, allocations: 26.88 kB / 310.8 MB, free: 8.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.214e-05/0.1417, allocations: 51.09 kB / 310.9 MB, free: 8.809 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005093/0.1422, allocations: 356 kB / 311.2 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002272/0.1445, allocations: 2.309 MB / 313.5 MB, free: 6.938 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.1449, allocations: 334.6 kB / 313.9 MB, free: 6.789 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.1452, allocations: 149.2 kB / 314 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001605/0.1468, allocations: 0.9661 MB / 315 MB, free: 6.023 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.1468, allocations: 44.2 kB / 315 MB, free: 5.977 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.734e-06/0.1468, allocations: 0 / 315 MB, free: 5.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.00279/0.1496, allocations: 1.654 MB / 316.7 MB, free: 4.656 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.31e-05/0.1496, allocations: 85.77 kB / 316.8 MB, free: 4.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.15, allocations: 0.5493 MB / 317.3 MB, free: 3.988 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.674e-05/0.15, allocations: 33.7 kB / 317.3 MB, free: 3.949 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1501, allocations: 413.2 kB / 317.7 MB, free: 3.539 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.144e-05/0.1502, allocations: 241.5 kB / 318 MB, free: 3.309 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.1503, allocations: 152.3 kB / 318.1 MB, free: 3.152 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.276e-05/0.1504, allocations: 0.5625 MB / 318.7 MB, free: 2.578 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002168/0.1506, allocations: 151.6 kB / 318.8 MB, free: 2.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.1509, allocations: 386 kB / 319.2 MB, free: 1.969 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004808/0.1514, allocations: 0.5217 MB / 319.7 MB, free: 1.371 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1514, allocations: 0 / 319.7 MB, free: 1.371 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008098/0.1522, allocations: 0.6763 MB / 320.4 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.1522, allocations: 4 kB / 320.4 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1522, allocations: 8 kB / 320.4 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005766/0.1528, allocations: 302.5 kB / 320.7 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.1531, allocations: 155.8 kB / 320.9 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006004/0.1537, allocations: 0.9496 MB / 321.8 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002365/0.154, allocations: 27.98 kB / 321.8 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.634e-05/0.154, allocations: 36 kB / 321.9 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003346/0.1543, allocations: 285.6 kB / 322.2 MB, free: 14.9 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003422/0.1547, allocations: 401.6 kB / 322.6 MB, free: 14.41 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005616/0.1552, allocations: 0.5064 MB / 323.1 MB, free: 13.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.993e-06/0.1552, allocations: 4 kB / 323.1 MB, free: 13.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0008997/0.1561, allocations: 0.6678 MB / 323.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.426e-06/0.1562, allocations: 4 kB / 323.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1562, allocations: 11.94 kB / 323.7 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003236/0.1565, allocations: 187.6 kB / 323.9 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003417/0.1568, allocations: 167.7 kB / 324.1 MB, free: 12.78 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004936/0.1573, allocations: 0.9014 MB / 325 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.1576, allocations: 32.12 kB / 325 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.441e-05/0.1576, allocations: 33.7 kB / 325.1 MB, free: 11.78 MB / 282.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.0001742/0.1578, allocations: 327.8 kB / 325.4 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.1579, allocations: 91.58 kB / 325.5 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009182/0.1588, allocations: 0.6217 MB / 326.1 MB, free: 10.74 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1588, allocations: 8 kB / 326.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1588, allocations: 0.875 kB / 326.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1588, allocations: 3.984 kB / 326.1 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.1603, allocations: 1.233 MB / 327.3 MB, free: 9.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1603, allocations: 0 / 327.3 MB, free: 9.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003044/0.1606, allocations: 131.7 kB / 327.5 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005392/0.1612, allocations: 295.3 kB / 327.8 MB, free: 9.039 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.29e-05/0.1612, allocations: 25.05 kB / 327.8 MB, free: 9.016 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005948/0.1618, allocations: 0.9449 MB / 328.7 MB, free: 8.039 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1618, allocations: 0 / 328.7 MB, free: 8.039 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.1629, allocations: 0.874 MB / 329.6 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.1631, allocations: 162 kB / 329.8 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/0.1631, allocations: 8 kB / 329.8 MB, free: 6.977 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.1634, allocations: 31.98 kB / 329.8 MB, free: 6.945 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.375e-05/0.1635, allocations: 48.55 kB / 329.8 MB, free: 6.898 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.307e-05/0.1635, allocations: 30.92 kB / 329.9 MB, free: 6.871 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002594/0.1638, allocations: 354.8 kB / 330.2 MB, free: 6.527 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1638, allocations: 0 / 330.2 MB, free: 6.527 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009532/0.1647, allocations: 0.5809 MB / 330.8 MB, free: 5.945 MB / 282.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 (58): * Single equations (assignments): 57 * 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.0006774/0.1654, allocations: 0.5118 MB / 331.3 MB, free: 5.445 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.1667, allocations: 0.802 MB / 332.1 MB, free: 4.641 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.1667, allocations: 7.859 kB / 332.1 MB, free: 4.633 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004075/0.1671, allocations: 270.6 kB / 332.4 MB, free: 4.367 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008799/0.1679, allocations: 398.8 kB / 332.8 MB, free: 4.012 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.17, allocations: 1.412 MB / 334.2 MB, free: 2.578 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.1702, allocations: 201.1 kB / 334.4 MB, free: 2.359 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005277/0.1707, allocations: 266.3 kB / 334.6 MB, free: 2.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.1708, allocations: 76.48 kB / 334.7 MB, free: 2.027 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1708, allocations: 0 / 334.7 MB, free: 2.027 MB / 282.7 MB Notification: Performance of Templates: time 0.02116/0.192, allocations: 22.07 MB / 356.8 MB, free: 12.29 MB / 314.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.2798484640661627]