Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.001131/0.001131, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001029/0.001029, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.932/0.932, allocations: 177.1 MB / 205 MB, free: 5.605 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.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.664e-05/1.787e-05, allocations: 6.25 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002752/0.00277, allocations: 2.787 MB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.003916, allocations: 0.8489 MB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.004078, allocations: 7.938 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00025/0.004328, allocations: 67.42 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002551/0.004583, allocations: 150.8 kB / 276.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002036/0.004787, allocations: 87.8 kB / 276.9 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004321/0.005219, allocations: 461.7 kB / 277.3 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.005354, allocations: 60.03 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.005586, allocations: 239.5 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.00575, allocations: 139.6 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.005794, allocations: 32 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.315e-05/0.005837, allocations: 36 kB / 277.8 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.488e-05/0.005892, allocations: 79.73 kB / 277.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.006009, allocations: 139.7 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003118/0.00632, allocations: 299 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.006323, allocations: 0 / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.006325, allocations: 3.938 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.006332, allocations: 0 / 278.4 MB, free: 12.12 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009023/0.007235, allocations: 0.7079 MB / 279.1 MB, free: 11.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.007275, allocations: 12.02 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.533e-05/0.00737, allocations: 64.7 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.007701, allocations: 248.5 kB / 279.4 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.93e-05/0.0078, allocations: 98.17 kB / 279.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/0.007841, allocations: 32.36 kB / 279.5 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004589/0.0083, allocations: 0.651 MB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.008313, allocations: 192 / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.008336, allocations: 16.12 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.008346, allocations: 4 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.00851, allocations: 106.9 kB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.009676, allocations: 0.681 MB / 281 MB, free: 9.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002706/0.009946, allocations: 179.5 kB / 281.1 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.692e-05/0.01003, allocations: 67.66 kB / 281.2 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.01006, allocations: 4 kB / 281.2 MB, free: 8.988 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.01009, allocations: 49.31 kB / 281.3 MB, free: 8.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.433e-06/0.01009, allocations: 0 / 281.3 MB, free: 8.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005466/0.01063, allocations: 313.8 kB / 281.6 MB, free: 8.613 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.01074, allocations: 312.4 kB / 281.9 MB, free: 8.234 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.01095, allocations: 326.3 kB / 282.2 MB, free: 7.898 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.01097, allocations: 33.7 kB / 282.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.606e-05/0.01107, allocations: 227.5 kB / 282.4 MB, free: 7.633 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.4e-05/0.01112, allocations: 103.1 kB / 282.5 MB, free: 7.531 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.592e-05/0.0112, allocations: 71.3 kB / 282.6 MB, free: 7.453 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.01132, allocations: 0.5196 MB / 283.1 MB, free: 6.922 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.546e-05/0.01142, allocations: 73.67 kB / 283.2 MB, free: 6.844 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002246/0.01164, allocations: 482.3 kB / 283.7 MB, free: 6.242 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.01183, allocations: 194 kB / 283.9 MB, free: 6.031 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01184, allocations: 0 / 283.9 MB, free: 6.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003287/0.01217, allocations: 326.2 kB / 284.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.01219, allocations: 33.7 kB / 284.2 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.0122, allocations: 0 / 284.2 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001143/0.01231, allocations: 31.67 kB / 284.2 MB, free: 5.617 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.01271, allocations: 135.9 kB / 284.4 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002133/0.01485, allocations: 3.749 MB / 288.1 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.01498, allocations: 35.92 kB / 288.2 MB, free: 1.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.015, allocations: 12 kB / 288.2 MB, free: 1.449 MB / 266.7 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.0001059/0.01511, allocations: 176.5 kB / 288.3 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.01516, allocations: 43.81 kB / 288.4 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.177e-05/0.0152, allocations: 43.02 kB / 288.4 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.0152, allocations: 4 kB / 288.4 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.0152, allocations: 0 / 288.4 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003212/0.01552, allocations: 0.5864 MB / 289 MB, free: 492 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002196/0.01574, allocations: 268.4 kB / 289.3 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01574, allocations: 0 / 289.3 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00053/0.01627, allocations: 179.8 kB / 289.5 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.078e-05/0.01634, allocations: 23.61 kB / 289.5 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.01635, allocations: 8 kB / 289.5 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.01786, allocations: 3.628 MB / 293.1 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.01786, allocations: 3.938 kB / 293.1 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003767/0.01824, allocations: 443.5 kB / 293.6 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.22e-05/0.01832, allocations: 63.7 kB / 293.6 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.01834, allocations: 8 kB / 293.6 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.01847, allocations: 20.08 kB / 293.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.302e-05/0.01853, allocations: 27.89 kB / 293.7 MB, free: 11.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.01854, allocations: 8 kB / 293.7 MB, free: 11.51 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001245/0.01867, allocations: 223 kB / 293.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01867, allocations: 0 / 293.9 MB, free: 11.3 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002651/0.01893, allocations: 104 kB / 294 MB, free: 11.2 MB / 282.7 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.0001026/0.01903, allocations: 111.2 kB / 294.1 MB, free: 11.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006976/0.01973, allocations: 0.5223 MB / 294.6 MB, free: 10.51 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.01973, allocations: 0 / 294.6 MB, free: 10.51 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008125/0.02055, allocations: 393.4 kB / 295 MB, free: 10.11 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.02087, allocations: 100.7 kB / 295.1 MB, free: 10.01 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001277/0.02215, allocations: 0.7499 MB / 295.9 MB, free: 9.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.834e-05/0.02221, allocations: 93.31 kB / 296 MB, free: 9.117 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.72e-05/0.02231, allocations: 38.95 kB / 296 MB, free: 9.074 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.436e-05/0.02236, allocations: 28.5 kB / 296 MB, free: 9.047 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.02236, allocations: 0 / 296 MB, free: 9.047 MB / 282.7 MB Notification: Performance of Templates: time 0.009085/0.03145, allocations: 7.088 MB / 303.1 MB, free: 2.137 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.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: 2.9205201300792396]