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.0009503/0.0009503, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001423/0.001423, allocations: 143.9 kB / 24.97 MB, free: 8.855 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.9348/0.9348, allocations: 173.3 MB / 201.5 MB, free: 9.293 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.332e-06/1.332e-06, allocations: 3.938 kB / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.368e-05/1.501e-05, allocations: 2.312 kB / 268.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.007435/0.00745, allocations: 2.87 MB / 270.9 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004671/0.01212, allocations: 1.238 MB / 272.2 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.01228, allocations: 3.938 kB / 272.2 MB, free: 2.57 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004564/0.01273, allocations: 179.1 kB / 272.3 MB, free: 2.395 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004025/0.01314, allocations: 218.7 kB / 272.6 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.01348, allocations: 175.4 kB / 272.7 MB, free: 2.008 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004467/0.01393, allocations: 473.5 kB / 273.2 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.01408, allocations: 67.95 kB / 273.3 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.01432, allocations: 259.4 kB / 273.5 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00324/0.01756, allocations: 171.6 kB / 273.7 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.979e-05/0.01761, allocations: 32 kB / 273.7 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.01773, allocations: 71.92 kB / 273.8 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.251e-05/0.01783, allocations: 91.61 kB / 273.9 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.01796, allocations: 131.7 kB / 274 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003964/0.01836, allocations: 342.7 kB / 274.3 MB, free: 412 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.01836, allocations: 0 / 274.3 MB, free: 412 kB / 250.7 MB Notification: Performance of FrontEnd: time 3.767e-06/0.01836, allocations: 0 / 274.3 MB, free: 412 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.01837, allocations: 0 / 274.3 MB, free: 412 kB / 250.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.0008582/0.01923, allocations: 0.729 MB / 275.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.01926, allocations: 16.92 kB / 275.1 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.01936, allocations: 60.66 kB / 275.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003482/0.01971, allocations: 283.2 kB / 275.4 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.01974, allocations: 12.88 kB / 275.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.01978, allocations: 28.36 kB / 275.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004532/0.02023, allocations: 0.5774 MB / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.02025, allocations: 3.938 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.364e-05/0.02027, allocations: 12 kB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.629e-06/0.02028, allocations: 4 kB / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003181/0.02346, allocations: 94.92 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009716/0.02443, allocations: 0.6839 MB / 276.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.02467, allocations: 138.6 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.36e-05/0.02475, allocations: 47.67 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.02477, allocations: 11.97 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001899/0.02496, allocations: 168.3 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.462e-06/0.02496, allocations: 4 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005705/0.02554, allocations: 267.4 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.02564, allocations: 324.4 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003545/0.026, allocations: 418.7 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.02602, allocations: 33.7 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.02617, allocations: 251.2 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.049e-05/0.02623, allocations: 87.22 kB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003087/0.02932, allocations: 67.34 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.02947, allocations: 0.5274 MB / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.533e-05/0.02954, allocations: 31.98 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.02978, allocations: 432.6 kB / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/0.02996, allocations: 130.7 kB / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.02996, allocations: 0 / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003372/0.0303, allocations: 237.6 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.03031, allocations: 11.92 kB / 280 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.03032, allocations: 4 kB / 280 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001066/0.03043, allocations: 27.67 kB / 280 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.03058, allocations: 47.92 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/0.03168, allocations: 1.846 MB / 281.9 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.03182, allocations: 19.89 kB / 281.9 MB, free: 8.148 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.03184, allocations: 15.98 kB / 281.9 MB, free: 8.133 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.0001168/0.03196, allocations: 172.5 kB / 282.1 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.634e-05/0.03201, allocations: 47.77 kB / 282.1 MB, free: 7.906 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003339/0.03535, allocations: 220.7 kB / 282.3 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.03535, allocations: 0 / 282.3 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-06/0.03536, allocations: 4.188 kB / 282.4 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003354/0.03569, allocations: 0.5467 MB / 282.9 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000524/0.03622, allocations: 0.6367 MB / 283.5 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.03622, allocations: 0 / 283.5 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.03634, allocations: 47.91 kB / 283.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.03634, allocations: 0 / 283.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.03635, allocations: 11.94 kB / 283.6 MB, free: 6.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.03635, allocations: 3.938 kB / 283.6 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.03635, allocations: 0 / 283.6 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/0.03664, allocations: 390.1 kB / 284 MB, free: 5.875 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-05/0.03672, allocations: 67.66 kB / 284 MB, free: 5.809 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.03675, allocations: 8 kB / 284.1 MB, free: 5.801 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.03685, allocations: 11.94 kB / 284.1 MB, free: 5.789 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.03688, allocations: 15.97 kB / 284.1 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.0369, allocations: 11.98 kB / 284.1 MB, free: 5.762 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001637/0.03706, allocations: 279.1 kB / 284.4 MB, free: 5.488 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03706, allocations: 0 / 284.4 MB, free: 5.488 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002423/0.03731, allocations: 95.89 kB / 284.5 MB, free: 5.395 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.0007174/0.03802, allocations: 391.4 kB / 284.8 MB, free: 5.148 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003684/0.03839, allocations: 348.9 kB / 285.2 MB, free: 4.785 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.03839, allocations: 0 / 285.2 MB, free: 4.785 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.114e-05/0.03847, allocations: 71.58 kB / 285.2 MB, free: 4.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.0388, allocations: 109.5 kB / 285.4 MB, free: 4.605 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.03995, allocations: 0.6899 MB / 286 MB, free: 3.887 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.826e-05/0.04001, allocations: 104.6 kB / 286.1 MB, free: 3.766 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.04011, allocations: 42.95 kB / 286.2 MB, free: 3.723 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.071e-05/0.04017, allocations: 32.48 kB / 286.2 MB, free: 3.691 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.04017, allocations: 0 / 286.2 MB, free: 3.691 MB / 266.7 MB Notification: Performance of Templates: time 0.08961/0.1298, allocations: 6.467 MB / 292.7 MB, free: 32.16 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.9742739079520106]