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.001092/0.001092, allocations: 83.89 kB / 21.19 MB, free: 3.379 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.0009305/0.0009305, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 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.9961/0.9961, allocations: 173.4 MB / 201.1 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.313e-06/1.313e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.958e-05, allocations: 6.25 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.006558/0.006578, allocations: 2.874 MB / 270.8 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005613/0.01219, allocations: 1.238 MB / 272.1 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.01231, allocations: 7.938 kB / 272.1 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003607/0.01267, allocations: 179.1 kB / 272.3 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003624/0.01303, allocations: 222.6 kB / 272.5 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.01332, allocations: 167.4 kB / 272.6 MB, free: 1.707 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.01372, allocations: 477.6 kB / 273.1 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.01384, allocations: 63.95 kB / 273.2 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002653/0.01411, allocations: 259.4 kB / 273.4 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/0.01431, allocations: 167.6 kB / 273.6 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.426e-05/0.01435, allocations: 36 kB / 273.6 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.01446, allocations: 67.92 kB / 273.7 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-05/0.01454, allocations: 99.59 kB / 273.8 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.01466, allocations: 123.7 kB / 273.9 MB, free: 448 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003617/0.01502, allocations: 346.7 kB / 274.3 MB, free: 100 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.01503, allocations: 0 / 274.3 MB, free: 100 kB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.01503, allocations: 0 / 274.3 MB, free: 100 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.01503, allocations: 0 / 274.3 MB, free: 100 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.0007831/0.01582, allocations: 0.733 MB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.01585, allocations: 8.922 kB / 275 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.052e-05/0.01594, allocations: 68.59 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.01634, allocations: 279.3 kB / 275.3 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.01636, allocations: 16.88 kB / 275.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.173e-05/0.0164, allocations: 20.38 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000434/0.01684, allocations: 0.5813 MB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.01685, allocations: 3.938 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.01687, allocations: 15.98 kB / 276 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.01688, allocations: 8 kB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.01705, allocations: 86.92 kB / 276.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009049/0.01796, allocations: 0.6956 MB / 276.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.01818, allocations: 134.6 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.037e-05/0.01827, allocations: 51.66 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.01829, allocations: 8 kB / 277 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001724/0.01846, allocations: 170 kB / 277.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.01846, allocations: 0 / 277.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005198/0.01898, allocations: 268 kB / 277.4 MB, free: 12.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.01908, allocations: 320.4 kB / 277.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000339/0.01942, allocations: 418.7 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.01944, allocations: 37.64 kB / 278.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.01958, allocations: 255.2 kB / 278.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.794e-05/0.01964, allocations: 87.33 kB / 278.5 MB, free: 11.49 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.01972, allocations: 59.36 kB / 278.5 MB, free: 11.42 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002891/0.02001, allocations: 0.5274 MB / 279.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.258e-05/0.02009, allocations: 35.97 kB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002307/0.02032, allocations: 432.6 kB / 279.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.0205, allocations: 126.7 kB / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.0205, allocations: 0 / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003337/0.02084, allocations: 237.5 kB / 279.9 MB, free: 9.922 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.02085, allocations: 7.938 kB / 279.9 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.02085, allocations: 4 kB / 279.9 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001067/0.02096, allocations: 27.67 kB / 279.9 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.02113, allocations: 55.91 kB / 280 MB, free: 9.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001095/0.02222, allocations: 1.85 MB / 281.8 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.02236, allocations: 23.88 kB / 281.8 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.02237, allocations: 8 kB / 281.8 MB, free: 7.82 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.0001123/0.02248, allocations: 180.5 kB / 282 MB, free: 7.633 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.324e-05/0.02254, allocations: 43.77 kB / 282.1 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003113/0.02285, allocations: 216.7 kB / 282.3 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.02285, allocations: 4 kB / 282.3 MB, free: 7.359 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.02285, allocations: 4 kB / 282.3 MB, free: 7.355 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003331/0.02319, allocations: 0.5501 MB / 282.8 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006199/0.02381, allocations: 0.629 MB / 283.5 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.02381, allocations: 3.938 kB / 283.5 MB, free: 6.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.02396, allocations: 47.91 kB / 283.5 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.02397, allocations: 0 / 283.5 MB, free: 5.973 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.02398, allocations: 8 kB / 283.5 MB, free: 5.965 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.02398, allocations: 3.938 kB / 283.5 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.02398, allocations: 0 / 283.5 MB, free: 5.961 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000363/0.02435, allocations: 393.9 kB / 283.9 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-05/0.02444, allocations: 59.67 kB / 284 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.02447, allocations: 8 kB / 284 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.02462, allocations: 15.92 kB / 284 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.02466, allocations: 19.97 kB / 284 MB, free: 5.457 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.02467, allocations: 4 kB / 284 MB, free: 5.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002125/0.02489, allocations: 283.1 kB / 284.3 MB, free: 5.176 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.02489, allocations: 0 / 284.3 MB, free: 5.176 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003416/0.02523, allocations: 91.89 kB / 284.4 MB, free: 5.086 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.0009103/0.02614, allocations: 400 kB / 284.8 MB, free: 4.832 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004241/0.02656, allocations: 348.9 kB / 285.1 MB, free: 4.469 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.02656, allocations: 0 / 285.1 MB, free: 4.469 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.02667, allocations: 71.59 kB / 285.2 MB, free: 4.395 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/0.02711, allocations: 104.4 kB / 285.3 MB, free: 4.297 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.02842, allocations: 0.6939 MB / 286 MB, free: 3.574 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.633e-05/0.02848, allocations: 96.61 kB / 286.1 MB, free: 3.461 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.493e-05/0.02857, allocations: 42.95 kB / 286.1 MB, free: 3.418 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.206e-05/0.02862, allocations: 36.44 kB / 286.1 MB, free: 3.383 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02862, allocations: 0 / 286.1 MB, free: 3.383 MB / 266.7 MB Notification: Performance of Templates: time 0.1176/0.1462, allocations: 6.458 MB / 292.6 MB, free: 29.32 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: 3.202474288176745]