Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.001291/0.001291, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001384/0.001384, allocations: 189.6 kB / 23.72 MB, free: 4.68 MB / 14.72 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 1.406/1.406, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
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.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks")
translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 52.06 kB / 370.9 MB, free: 9.391 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2511, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004352/0.2554, allocations: 2.783 MB / 425.9 MB, free: 11.91 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001555/0.257, allocations: 0.8295 MB / 426.7 MB, free: 11.07 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.2571, allocations: 4 kB / 426.7 MB, free: 11.07 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002996/0.2574, allocations: 71.42 kB / 426.8 MB, free: 11 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000308/0.2577, allocations: 138.9 kB / 426.9 MB, free: 10.86 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.258, allocations: 91.81 kB / 427 MB, free: 10.77 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005607/0.2585, allocations: 438.3 kB / 427.4 MB, free: 10.34 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.2587, allocations: 71.88 kB / 427.5 MB, free: 10.27 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.2589, allocations: 155.5 kB / 427.7 MB, free: 10.12 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002584/0.2592, allocations: 183.3 kB / 427.8 MB, free: 9.938 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 6.323e-05/0.2592, allocations: 36 kB / 427.9 MB, free: 9.902 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 7.34e-05/0.2593, allocations: 36 kB / 427.9 MB, free: 9.867 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 9.34e-05/0.2594, allocations: 87.61 kB / 428 MB, free: 9.781 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002086/0.2596, allocations: 183.1 kB / 428.2 MB, free: 9.602 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005312/0.2601, allocations: 451.5 kB / 428.6 MB, free: 9.164 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2601, allocations: 0 / 428.6 MB, free: 9.164 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.132e-06/0.2601, allocations: 0 / 428.6 MB, free: 9.164 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.853e-06/0.2601, allocations: 0 / 428.6 MB, free: 9.164 MB / 334.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 50
 * Number of variables: 50
Notification: Performance of Generate backend data structure: time 0.001172/0.2613, allocations: 0.6118 MB / 429.2 MB, free: 8.516 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.2613, allocations: 12.03 kB / 429.2 MB, free: 8.504 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.448e-05/0.2614, allocations: 44.69 kB / 429.3 MB, free: 8.461 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004966/0.2619, allocations: 258.4 kB / 429.5 MB, free: 8.184 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.2621, allocations: 50.7 kB / 429.6 MB, free: 8.125 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.008e-05/0.2621, allocations: 16.38 kB / 429.6 MB, free: 8.109 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006136/0.2627, allocations: 325.6 kB / 429.9 MB, free: 7.75 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.2628, allocations: 0 / 429.9 MB, free: 7.75 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.2628, allocations: 12 kB / 429.9 MB, free: 7.738 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.2628, allocations: 4 kB / 429.9 MB, free: 7.734 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000533/0.2633, allocations: 201.6 kB / 430.1 MB, free: 7.539 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.2648, allocations: 0.7666 MB / 430.9 MB, free: 6.73 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005982/0.2654, allocations: 258.4 kB / 431.2 MB, free: 6.473 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.2656, allocations: 100.8 kB / 431.3 MB, free: 6.371 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.818e-05/0.2657, allocations: 11.98 kB / 431.3 MB, free: 6.359 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/0.2657, allocations: 42.56 kB / 431.3 MB, free: 6.309 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.2657, allocations: 3.938 kB / 431.3 MB, free: 6.305 MB / 334.1 MB
Notification: Performance of matching and sorting (n=29): time 0.001086/0.2668, allocations: 410.2 kB / 431.7 MB, free: 5.895 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001867/0.267, allocations: 312.4 kB / 432 MB, free: 5.516 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.2673, allocations: 280.2 kB / 432.3 MB, free: 5.234 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.2673, allocations: 33.7 kB / 432.3 MB, free: 5.195 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.2675, allocations: 176.8 kB / 432.5 MB, free: 5.02 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 9.354e-05/0.2676, allocations: 115 kB / 432.6 MB, free: 4.906 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.2677, allocations: 65.7 kB / 432.7 MB, free: 4.836 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001559/0.2678, allocations: 338.8 kB / 433 MB, free: 4.496 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.2681, allocations: 91.95 kB / 433.1 MB, free: 4.406 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/0.2684, allocations: 216.6 kB / 433.3 MB, free: 4.148 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.2689, allocations: 263.4 kB / 433.6 MB, free: 3.875 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.2689, allocations: 4 kB / 433.6 MB, free: 3.871 MB / 334.1 MB
Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006795/0.2696, allocations: 361.8 kB / 433.9 MB, free: 3.504 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/0.2696, allocations: 33.7 kB / 433.9 MB, free: 3.465 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2696, allocations: 0 / 433.9 MB, free: 3.465 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001706/0.2698, allocations: 44.83 kB / 434 MB, free: 3.418 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.2709, allocations: 155.9 kB / 434.1 MB, free: 3.266 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004153/0.275, allocations: 3.027 MB / 437.2 MB, free: 12 kB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.2754, allocations: 36.06 kB / 437.2 MB, free: 15.97 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.2754, allocations: 16 kB / 437.2 MB, free: 15.96 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (33):
 * Single equations (assignments): 30
 * Array equations: 0
 * Algorithm blocks: 1
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
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
   {(3,2)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002097/0.2756, allocations: 153.5 kB / 437.4 MB, free: 15.8 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.427e-05/0.2757, allocations: 35.81 kB / 437.4 MB, free: 15.77 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.9e-05/0.2758, allocations: 39.08 kB / 437.4 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2758, allocations: 0 / 437.4 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.2758, allocations: 4 kB / 437.4 MB, free: 15.72 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007927/0.2766, allocations: 0.6549 MB / 438.1 MB, free: 14.96 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000486/0.277, allocations: 356.3 kB / 438.5 MB, free: 14.57 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2771, allocations: 0 / 438.5 MB, free: 14.57 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/0.2785, allocations: 203.8 kB / 438.7 MB, free: 14.37 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-05/0.2785, allocations: 24.84 kB / 438.7 MB, free: 14.34 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.2786, allocations: 11.98 kB / 438.7 MB, free: 14.33 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003561/0.2821, allocations: 2.846 MB / 441.5 MB, free: 11.25 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2821, allocations: 0 / 441.5 MB, free: 11.25 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009464/0.2831, allocations: 0.5201 MB / 442.1 MB, free: 10.71 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.2832, allocations: 59.75 kB / 442.1 MB, free: 10.65 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.2833, allocations: 8 kB / 442.1 MB, free: 10.64 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.2836, allocations: 15.98 kB / 442.1 MB, free: 10.63 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.6e-05/0.2836, allocations: 23.95 kB / 442.2 MB, free: 10.61 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.2837, allocations: 8 kB / 442.2 MB, free: 10.6 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002298/0.2839, allocations: 215 kB / 442.4 MB, free: 10.39 MB / 350.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.2839, allocations: 96 / 442.4 MB, free: 10.39 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004668/0.2844, allocations: 107.8 kB / 442.5 MB, free: 10.29 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H)
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (27):
 * Single equations (assignments): 25
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
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
   {(1,2)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001525/0.2845, allocations: 112.9 kB / 442.6 MB, free: 10.17 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.001658/0.2862, allocations: 0.529 MB / 443.1 MB, free: 9.613 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.2862, allocations: 0 / 443.1 MB, free: 9.613 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001466/0.2876, allocations: 390.3 kB / 443.5 MB, free: 9.219 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005057/0.2881, allocations: 92.75 kB / 443.6 MB, free: 9.129 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001809/0.2899, allocations: 0.8614 MB / 444.5 MB, free: 8.238 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.2903, allocations: 0.7762 MB / 445.2 MB, free: 7.438 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001487/0.2905, allocations: 34.95 kB / 445.3 MB, free: 7.398 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.238e-05/0.2906, allocations: 31.38 kB / 445.3 MB, free: 7.367 MB / 350.1 MB
Notification: Performance of SimCode: time 5.21e-07/0.2906, allocations: 0 / 445.3 MB, free: 7.367 MB / 350.1 MB
Notification: Performance of Templates: time 0.01229/0.3029, allocations: 6.5 MB / 451.8 MB, free: 0.9688 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.793640657328069]