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.001233/0.001233, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001353/0.001353, allocations: 139.4 kB / 25.59 MB, free: 8.906 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.9082/0.9082, allocations: 173.4 MB / 202.2 MB, free: 8.277 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.162e-06/1.162e-06, allocations: 0 / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.13e-05/1.246e-05, allocations: 5.125 kB / 269.2 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.00341/0.003422, allocations: 2.841 MB / 272 MB, free: 6.965 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.005263, allocations: 1.218 MB / 273.2 MB, free: 5.746 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.005439, allocations: 7.938 kB / 273.2 MB, free: 5.738 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004461/0.005886, allocations: 180.8 kB / 273.4 MB, free: 5.562 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004118/0.006297, allocations: 222.6 kB / 273.6 MB, free: 5.344 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.006662, allocations: 171.4 kB / 273.8 MB, free: 5.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004893/0.007151, allocations: 476.4 kB / 274.3 MB, free: 4.711 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.007298, allocations: 67.95 kB / 274.3 MB, free: 4.645 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002684/0.007566, allocations: 259.4 kB / 274.6 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002218/0.007788, allocations: 171.6 kB / 274.8 MB, free: 4.223 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.579e-05/0.007834, allocations: 32 kB / 274.8 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.007949, allocations: 67.92 kB / 274.9 MB, free: 4.125 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.781e-05/0.008037, allocations: 91.67 kB / 274.9 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.008161, allocations: 123.6 kB / 275.1 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003752/0.008537, allocations: 342.7 kB / 275.4 MB, free: 3.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.008538, allocations: 0 / 275.4 MB, free: 3.578 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.008539, allocations: 0 / 275.4 MB, free: 3.578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.008543, allocations: 0 / 275.4 MB, free: 3.578 MB / 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.0007975/0.009341, allocations: 0.7445 MB / 276.1 MB, free: 2.793 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.00937, allocations: 8.031 kB / 276.2 MB, free: 2.785 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.718e-05/0.009457, allocations: 60.66 kB / 276.2 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.009783, allocations: 270.8 kB / 276.5 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.009806, allocations: 12.88 kB / 276.5 MB, free: 2.422 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.009846, allocations: 28.38 kB / 276.5 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004188/0.01026, allocations: 0.5656 MB / 277.1 MB, free: 1.703 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.01028, allocations: 11.94 kB / 277.1 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.0103, allocations: 11.94 kB / 277.1 MB, free: 1.68 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.01031, allocations: 8 kB / 277.1 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.01043, allocations: 67.42 kB / 277.2 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008678/0.01129, allocations: 0.6299 MB / 277.8 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.01152, allocations: 129.6 kB / 277.9 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.867e-05/0.01157, allocations: 43.66 kB / 278 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.01159, allocations: 8 kB / 278 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001543/0.01175, allocations: 156.4 kB / 278.1 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.01175, allocations: 0 / 278.1 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004751/0.01222, allocations: 251.7 kB / 278.4 MB, free: 328 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001673/0.01239, allocations: 312.4 kB / 278.7 MB, free: 15.94 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.01269, allocations: 414.5 kB / 279.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.01271, allocations: 29.7 kB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.01286, allocations: 267.1 kB / 279.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.799e-05/0.01292, allocations: 83.3 kB / 279.5 MB, free: 15.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.333e-05/0.013, allocations: 63.34 kB / 279.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.01315, allocations: 0.5273 MB / 280.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.056e-05/0.0132, allocations: 27.97 kB / 280.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003904/0.01359, allocations: 425.1 kB / 280.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.01373, allocations: 116.6 kB / 280.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01374, allocations: 4 kB / 280.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002837/0.01402, allocations: 214.9 kB / 280.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.01403, allocations: 4 kB / 280.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.01404, allocations: 7.938 kB / 280.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.345e-05/0.01412, allocations: 23.67 kB / 280.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.01428, allocations: 55.91 kB / 280.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/0.01531, allocations: 1.811 MB / 282.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.01545, allocations: 27.88 kB / 282.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.01547, allocations: 8 kB / 282.8 MB, free: 11.55 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.0001206/0.01559, allocations: 180.5 kB / 282.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.737e-05/0.01565, allocations: 47.77 kB / 283 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.01593, allocations: 204.8 kB / 283.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.01593, allocations: 11.98 kB / 283.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.01593, allocations: 0 / 283.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000297/0.01623, allocations: 0.5388 MB / 283.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008279/0.01706, allocations: 0.5631 MB / 284.3 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01706, allocations: 0 / 284.3 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.01721, allocations: 47.97 kB / 284.3 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.01722, allocations: 0 / 284.3 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.01723, allocations: 4 kB / 284.3 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.01723, allocations: 4 kB / 284.3 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01723, allocations: 0 / 284.3 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003255/0.01756, allocations: 371.4 kB / 284.7 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.012e-05/0.01765, allocations: 63.67 kB / 284.8 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.01768, allocations: 8 kB / 284.8 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.01783, allocations: 11.98 kB / 284.8 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.758e-05/0.01789, allocations: 11.98 kB / 284.8 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.01791, allocations: 7.984 kB / 284.8 MB, free: 9.312 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001697/0.01808, allocations: 267 kB / 285.1 MB, free: 9.051 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01808, allocations: 0 / 285.1 MB, free: 9.051 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003417/0.01842, allocations: 99.86 kB / 285.2 MB, free: 8.953 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.0009282/0.01935, allocations: 401.6 kB / 285.6 MB, free: 8.695 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003517/0.0197, allocations: 326.9 kB / 285.9 MB, free: 8.355 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.0197, allocations: 0 / 285.9 MB, free: 8.355 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.264e-05/0.01978, allocations: 70.42 kB / 286 MB, free: 8.285 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.02022, allocations: 108.5 kB / 286.1 MB, free: 8.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.02143, allocations: 0.7017 MB / 286.8 MB, free: 7.449 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.228e-05/0.02151, allocations: 104.6 kB / 286.9 MB, free: 7.328 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001237/0.02163, allocations: 42.94 kB / 286.9 MB, free: 7.285 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/0.02193, allocations: 210.1 kB / 287.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02193, allocations: 0 / 287.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of Templates: time 0.01024/0.03217, allocations: 7.057 MB / 294.2 MB, free: 208 kB / 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.9160867682658136]