Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001056/0.001056, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.001203/0.001203, allocations: 168.7 kB / 25.69 MB, free: 8.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.937/0.937, allocations: 158.6 MB / 187.6 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.944e-05/2.093e-05, allocations: 6.312 kB / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003269/0.00329, allocations: 2.805 MB / 254.4 MB, free: 4.43 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.004422, allocations: 0.873 MB / 255.2 MB, free: 3.547 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.004537, allocations: 4 kB / 255.2 MB, free: 3.543 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002301/0.004767, allocations: 75.34 kB / 255.3 MB, free: 3.469 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002144/0.004981, allocations: 150.8 kB / 255.5 MB, free: 3.32 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001588/0.00514, allocations: 91.8 kB / 255.5 MB, free: 3.23 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003594/0.0055, allocations: 454.1 kB / 256 MB, free: 2.785 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.005629, allocations: 62.58 kB / 256 MB, free: 2.723 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.005823, allocations: 243.5 kB / 256.3 MB, free: 2.484 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.005996, allocations: 135.6 kB / 256.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.006041, allocations: 40 kB / 256.5 MB, free: 2.312 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.876e-05/0.00608, allocations: 36 kB / 256.5 MB, free: 2.277 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.343e-05/0.006133, allocations: 75.73 kB / 256.6 MB, free: 2.203 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.006236, allocations: 143.7 kB / 256.7 MB, free: 2.062 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.006517, allocations: 291 kB / 257 MB, free: 1.777 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.006521, allocations: 0 / 257 MB, free: 1.777 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.006522, allocations: 0 / 257 MB, free: 1.777 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.006527, allocations: 0 / 257 MB, free: 1.777 MB / 234.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.0006679/0.007195, allocations: 0.587 MB / 257.6 MB, free: 1.152 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.007227, allocations: 11.98 kB / 257.6 MB, free: 1.141 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.292e-05/0.007289, allocations: 44.89 kB / 257.6 MB, free: 1.098 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.007524, allocations: 217.7 kB / 257.8 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.355e-05/0.007597, allocations: 98.17 kB / 257.9 MB, free: 0.75 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.279e-05/0.00763, allocations: 24.38 kB / 258 MB, free: 0.7266 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003788/0.008009, allocations: 0.6166 MB / 258.6 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.008021, allocations: 192 / 258.6 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.916e-05/0.00804, allocations: 16.12 kB / 258.6 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.008052, allocations: 4 kB / 258.6 MB, free: 15.96 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.008162, allocations: 71.44 kB / 258.7 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006857/0.008848, allocations: 474 kB / 259.1 MB, free: 15.41 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.009039, allocations: 146.4 kB / 259.3 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.306e-05/0.009092, allocations: 48.84 kB / 259.3 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.009116, allocations: 8 kB / 259.3 MB, free: 15.2 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.00914, allocations: 38.56 kB / 259.4 MB, free: 15.16 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.322e-06/0.009141, allocations: 0 / 259.4 MB, free: 15.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.000388/0.009529, allocations: 230.3 kB / 259.6 MB, free: 14.92 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.009642, allocations: 312.4 kB / 259.9 MB, free: 14.54 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.009792, allocations: 251 kB / 260.1 MB, free: 14.28 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.009815, allocations: 33.7 kB / 260.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.619e-05/0.009881, allocations: 141.5 kB / 260.3 MB, free: 14.1 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.009938, allocations: 115 kB / 260.4 MB, free: 13.99 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.233e-05/0.01001, allocations: 65.67 kB / 260.5 MB, free: 13.92 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003874/0.0104, allocations: 346.7 kB / 260.8 MB, free: 13.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.541e-05/0.01046, allocations: 53.69 kB / 260.9 MB, free: 13.51 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.01064, allocations: 426.7 kB / 261.3 MB, free: 12.98 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.01078, allocations: 166.6 kB / 261.5 MB, free: 12.8 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.01078, allocations: 0 / 261.5 MB, free: 12.8 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002269/0.01101, allocations: 242.7 kB / 261.7 MB, free: 12.55 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.01104, allocations: 41.62 kB / 261.7 MB, free: 12.5 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.01105, allocations: 4 kB / 261.7 MB, free: 12.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.795e-05/0.01114, allocations: 20.84 kB / 261.8 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004533/0.0116, allocations: 163.8 kB / 261.9 MB, free: 12.31 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001518/0.01312, allocations: 2.538 MB / 264.5 MB, free: 9.602 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.01325, allocations: 31.72 kB / 264.5 MB, free: 9.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.01326, allocations: 15.98 kB / 264.5 MB, free: 9.555 MB / 250.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.0001146/0.01338, allocations: 125.8 kB / 264.6 MB, free: 9.422 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.217e-05/0.01342, allocations: 31.97 kB / 264.7 MB, free: 9.391 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.564e-05/0.01347, allocations: 39.08 kB / 264.7 MB, free: 9.348 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.01347, allocations: 4.047 kB / 264.7 MB, free: 9.344 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.01347, allocations: 11.92 kB / 264.7 MB, free: 9.332 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000272/0.01374, allocations: 0.5338 MB / 265.3 MB, free: 8.691 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.01394, allocations: 189.6 kB / 265.4 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01394, allocations: 192 / 265.4 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005512/0.01449, allocations: 215.8 kB / 265.6 MB, free: 8.277 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.289e-05/0.01454, allocations: 16.84 kB / 265.7 MB, free: 8.258 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.01456, allocations: 4 kB / 265.7 MB, free: 8.254 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00147/0.01603, allocations: 2.44 MB / 268.1 MB, free: 5.645 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.01603, allocations: 0 / 268.1 MB, free: 5.645 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002614/0.01629, allocations: 324.5 kB / 268.4 MB, free: 5.309 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.667e-05/0.01636, allocations: 39.73 kB / 268.5 MB, free: 5.27 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.421e-05/0.01638, allocations: 8 kB / 268.5 MB, free: 5.262 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.0165, allocations: 15.98 kB / 268.5 MB, free: 5.246 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.076e-05/0.01655, allocations: 23.95 kB / 268.5 MB, free: 5.223 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.01656, allocations: 8 kB / 268.5 MB, free: 5.215 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.178e-05/0.01664, allocations: 92.62 kB / 268.6 MB, free: 5.121 MB / 250.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01664, allocations: 0 / 268.6 MB, free: 5.121 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002412/0.01688, allocations: 103.9 kB / 268.7 MB, free: 5.02 MB / 250.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.0001066/0.01698, allocations: 92.36 kB / 268.8 MB, free: 4.922 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005787/0.01756, allocations: 437 kB / 269.2 MB, free: 4.461 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.01757, allocations: 4 kB / 269.2 MB, free: 4.457 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004908/0.01806, allocations: 327.2 kB / 269.5 MB, free: 4.121 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.01833, allocations: 96.56 kB / 269.6 MB, free: 4.027 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.01945, allocations: 0.6879 MB / 270.3 MB, free: 3.312 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.579e-05/0.0195, allocations: 97.3 kB / 270.4 MB, free: 3.199 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.743e-05/0.0196, allocations: 34.95 kB / 270.5 MB, free: 3.164 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002434/0.01984, allocations: 185.2 kB / 270.6 MB, free: 2.984 MB / 250.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01984, allocations: 0 / 270.6 MB, free: 2.984 MB / 250.7 MB Notification: Performance of Templates: time 0.00917/0.02901, allocations: 7.531 MB / 278.2 MB, free: 11.51 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.8631364898756146]