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.001008/0.001008, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001144/0.001144, allocations: 170.3 kB / 24.91 MB, free: 8.723 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 0.9777/0.9777, allocations: 177.1 MB / 205.3 MB, free: 5.113 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.403e-06/1.403e-06, allocations: 0 / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.846e-05/1.987e-05, allocations: 2.312 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006475/0.006495, allocations: 8.041 MB / 281.5 MB, free: 9.121 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005951/0.01245, allocations: 5.623 MB / 287.1 MB, free: 3.488 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005442/0.01299, allocations: 31.75 kB / 287.1 MB, free: 3.457 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005776/0.01357, allocations: 246.3 kB / 287.4 MB, free: 3.215 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00193/0.0155, allocations: 1.064 MB / 288.4 MB, free: 2.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002889/0.01839, allocations: 1.835 MB / 290.3 MB, free: 308 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1137/0.1321, allocations: 2.124 MB / 292.4 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007101/0.1328, allocations: 0.534 MB / 292.9 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001628/0.1345, allocations: 1.067 MB / 294 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001083/0.1355, allocations: 0.6901 MB / 294.7 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.1357, allocations: 79.09 kB / 294.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001636/0.1373, allocations: 0.9088 MB / 295.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003225/0.1377, allocations: 345.2 kB / 296 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004701/0.1381, allocations: 332.1 kB / 296.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002058/0.1402, allocations: 1.549 MB / 297.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1402, allocations: 0 / 297.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1402, allocations: 2.125 kB / 297.9 MB, free: 15.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1402, allocations: 1 kB / 297.9 MB, free: 15.58 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.001562/0.1418, allocations: 1.141 MB / 299 MB, free: 14.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1418, allocations: 11.41 kB / 299 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.142, allocations: 134 kB / 299.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005882/0.1426, allocations: 487.2 kB / 299.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.249e-05/0.1427, allocations: 158.2 kB / 299.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.622e-05/0.1428, allocations: 63.28 kB / 299.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006211/0.1434, allocations: 0.8026 MB / 300.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.1434, allocations: 1.375 kB / 300.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.1435, allocations: 23.09 kB / 300.7 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-05/0.1436, allocations: 50.38 kB / 300.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004017/0.144, allocations: 267.8 kB / 301 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.1462, allocations: 1.653 MB / 302.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003673/0.1465, allocations: 322 kB / 303 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.1467, allocations: 107 kB / 303.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001017/0.1477, allocations: 0.7945 MB / 303.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.1477, allocations: 46.48 kB / 303.9 MB, free: 13.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.553e-06/0.1477, allocations: 0 / 303.9 MB, free: 13.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.002486/0.1502, allocations: 1.424 MB / 305.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.354e-05/0.1502, allocations: 88.36 kB / 305.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002691/0.1505, allocations: 476 kB / 305.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.1505, allocations: 43.14 kB / 305.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.122e-05/0.1506, allocations: 285.2 kB / 306.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.625e-05/0.1507, allocations: 240.9 kB / 306.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.1508, allocations: 147.3 kB / 306.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.732e-05/0.1509, allocations: 378.1 kB / 306.9 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.151, allocations: 116 kB / 307.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.1512, allocations: 278.8 kB / 307.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003358/0.1516, allocations: 411.8 kB / 307.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1516, allocations: 3.594 kB / 307.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005338/0.1521, allocations: 490 kB / 308.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.1521, allocations: 11.28 kB / 308.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.1521, allocations: 4.297 kB / 308.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005421/0.1527, allocations: 281.8 kB / 308.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.153, allocations: 156.6 kB / 308.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003713/0.1533, allocations: 0.6479 MB / 309.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.1535, allocations: 23.38 kB / 309.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.04e-05/0.1536, allocations: 28.23 kB / 309.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002197/0.1538, allocations: 201.5 kB / 309.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000169/0.154, allocations: 289.4 kB / 309.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003151/0.1543, allocations: 406.1 kB / 310.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.154e-06/0.1543, allocations: 0 / 310.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.000491/0.1548, allocations: 482.1 kB / 310.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.238e-06/0.1548, allocations: 5.875 kB / 310.7 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1548, allocations: 9.875 kB / 310.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/0.1551, allocations: 187.9 kB / 310.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000284/0.1554, allocations: 161.2 kB / 311.1 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000273/0.1556, allocations: 0.6145 MB / 311.7 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.1558, allocations: 24 kB / 311.7 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.1559, allocations: 27.98 kB / 311.7 MB, free: 9.188 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.0001195/0.156, allocations: 238.1 kB / 312 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.453e-05/0.1561, allocations: 67.92 kB / 312 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005588/0.1566, allocations: 459.3 kB / 312.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1566, allocations: 8 kB / 312.5 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.1566, allocations: 0 / 312.5 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1566, allocations: 3.984 kB / 312.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009722/0.1576, allocations: 0.888 MB / 313.4 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1576, allocations: 3.75 kB / 313.4 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002499/0.1579, allocations: 115.2 kB / 313.5 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004553/0.1583, allocations: 271.4 kB / 313.8 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.889e-05/0.1584, allocations: 15.98 kB / 313.8 MB, free: 7.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003371/0.1587, allocations: 0.6586 MB / 314.4 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1587, allocations: 0 / 314.4 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006328/0.1593, allocations: 0.6616 MB / 315.1 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.1595, allocations: 103.5 kB / 315.2 MB, free: 5.746 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.912e-05/0.1595, allocations: 12 kB / 315.2 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.1597, allocations: 30.8 kB / 315.2 MB, free: 5.707 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.869e-05/0.1598, allocations: 44.56 kB / 315.3 MB, free: 5.664 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.1598, allocations: 19.98 kB / 315.3 MB, free: 5.645 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001279/0.16, allocations: 208.8 kB / 315.5 MB, free: 5.465 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.16, allocations: 0 / 315.5 MB, free: 5.465 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001117/0.1611, allocations: 0.5576 MB / 316.1 MB, free: 4.906 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.0005909/0.1617, allocations: 436.2 kB / 316.5 MB, free: 4.496 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000845/0.1625, allocations: 0.6334 MB / 317.1 MB, free: 3.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/0.1625, allocations: 9.625 kB / 317.1 MB, free: 3.902 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002592/0.1628, allocations: 223.7 kB / 317.3 MB, free: 3.703 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007829/0.1636, allocations: 389.4 kB / 317.7 MB, free: 3.352 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001757/0.1653, allocations: 1.325 MB / 319.1 MB, free: 2.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.801e-05/0.1654, allocations: 200.6 kB / 319.2 MB, free: 1.805 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003841/0.1658, allocations: 167.3 kB / 319.4 MB, free: 1.645 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000475/0.1663, allocations: 311 kB / 319.7 MB, free: 1.34 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1663, allocations: 0 / 319.7 MB, free: 1.34 MB / 266.7 MB Notification: Performance of Templates: time 0.0232/0.1895, allocations: 22.82 MB / 342.5 MB, free: 10.95 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.3030789378099144]