Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.001245/0.001245, allocations: 85.05 kB / 21.5 MB, free: 2.984 MB / 18.57 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.001005/0.001005, allocations: 141.9 kB / 24.89 MB, free: 9.219 MB / 18.57 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 0.8865/0.8865, allocations: 173.3 MB / 201.5 MB, free: 9.172 MB / 186.7 MB " [Timeout remaining time 179] 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.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.65e-05/2.794e-05, allocations: 6.25 kB / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004072/0.0041, allocations: 2.853 MB / 271.3 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.006294, allocations: 1.262 MB / 272.6 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000219/0.006513, allocations: 7.938 kB / 272.6 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000518/0.007031, allocations: 175.1 kB / 272.7 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005079/0.007539, allocations: 214.6 kB / 273 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004225/0.007961, allocations: 175.4 kB / 273.1 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005523/0.008513, allocations: 485 kB / 273.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.008693, allocations: 70.58 kB / 273.7 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003486/0.009041, allocations: 267.3 kB / 273.9 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003626/0.009404, allocations: 155.6 kB / 274.1 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.82e-05/0.009462, allocations: 31.94 kB / 274.1 MB, free: 500 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.009606, allocations: 67.92 kB / 274.2 MB, free: 432 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.803e-05/0.009704, allocations: 87.67 kB / 274.3 MB, free: 344 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.009843, allocations: 131.7 kB / 274.4 MB, free: 212 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004596/0.0103, allocations: 330.9 kB / 274.7 MB, free: 15.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.01031, allocations: 4 kB / 274.7 MB, free: 15.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.01031, allocations: 4 kB / 274.7 MB, free: 15.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.01032, allocations: 0 / 274.7 MB, free: 15.87 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007944/0.01111, allocations: 0.5964 MB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.01115, allocations: 12.92 kB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.552e-05/0.01124, allocations: 48.89 kB / 275.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.01157, allocations: 236 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/0.0116, allocations: 12.88 kB / 275.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.826e-05/0.01165, allocations: 36.31 kB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.01212, allocations: 0.5419 MB / 276.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.01214, allocations: 3.938 kB / 276.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.01216, allocations: 12 kB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.01217, allocations: 7.938 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.01231, allocations: 62.28 kB / 276.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009108/0.01322, allocations: 478.7 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002111/0.01343, allocations: 156.2 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.837e-05/0.01349, allocations: 32.86 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.01351, allocations: 7.984 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.01369, allocations: 157.5 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.325e-06/0.0137, allocations: 0 / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004663/0.01416, allocations: 193.1 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002239/0.01439, allocations: 320.4 kB / 277.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/0.01469, allocations: 349 kB / 277.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.01472, allocations: 29.7 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.01482, allocations: 169.3 kB / 278.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.607e-05/0.01489, allocations: 87.23 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.865e-05/0.01497, allocations: 57.69 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.01509, allocations: 350.7 kB / 278.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.251e-05/0.01514, allocations: 26.81 kB / 278.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.01534, allocations: 381 kB / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001465/0.01548, allocations: 110.1 kB / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.01549, allocations: 0 / 279.1 MB, free: 11 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002521/0.01574, allocations: 169.7 kB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.01576, allocations: 4 kB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.01576, allocations: 3.984 kB / 279.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.734e-05/0.01586, allocations: 24.78 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.01603, allocations: 51.92 kB / 279.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009907/0.01702, allocations: 1.253 MB / 280.6 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.01717, allocations: 19.84 kB / 280.6 MB, free: 9.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.01718, allocations: 8 kB / 280.7 MB, free: 9.367 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: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001354/0.01732, allocations: 136.7 kB / 280.8 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.832e-05/0.01737, allocations: 35.84 kB / 280.8 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000249/0.01762, allocations: 161.9 kB / 281 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.01762, allocations: 0 / 281 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.01762, allocations: 4 kB / 281 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002862/0.01791, allocations: 0.4954 MB / 281.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005219/0.01843, allocations: 469.3 kB / 281.9 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.01843, allocations: 0 / 281.9 MB, free: 7.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001621/0.01859, allocations: 55.84 kB / 282 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.0186, allocations: 0 / 282 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.01861, allocations: 8 kB / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.01861, allocations: 0 / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.01861, allocations: 0 / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002837/0.0189, allocations: 316.7 kB / 282.3 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.276e-05/0.01899, allocations: 51.83 kB / 282.4 MB, free: 7.492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.01903, allocations: 4 kB / 282.4 MB, free: 7.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.01918, allocations: 15.97 kB / 282.4 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.01922, allocations: 11.98 kB / 282.4 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.01924, allocations: 12.02 kB / 282.4 MB, free: 7.449 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001566/0.01939, allocations: 155.5 kB / 282.6 MB, free: 7.293 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01939, allocations: 0 / 282.6 MB, free: 7.293 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003496/0.01974, allocations: 91.89 kB / 282.6 MB, free: 7.203 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001498/0.02124, allocations: 0.5119 MB / 283.2 MB, free: 6.922 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003808/0.02162, allocations: 251.2 kB / 283.4 MB, free: 6.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.02163, allocations: 4 kB / 283.4 MB, free: 6.656 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.48e-05/0.02171, allocations: 60.77 kB / 283.5 MB, free: 6.594 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.02212, allocations: 105.4 kB / 283.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.02353, allocations: 0.6974 MB / 284.3 MB, free: 5.762 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.307e-05/0.02361, allocations: 108.5 kB / 284.4 MB, free: 5.637 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001377/0.02375, allocations: 38.95 kB / 284.4 MB, free: 5.594 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003775/0.02413, allocations: 173.3 kB / 284.6 MB, free: 5.422 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.02413, allocations: 3.938 kB / 284.6 MB, free: 5.418 MB / 266.7 MB Notification: Performance of Templates: time 0.1077/0.1318, allocations: 6.915 MB / 291.5 MB, free: 29.93 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.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.7990827509202063]