Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.0008361/0.0008361, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009551/0.0009551, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9549/0.9549, allocations: 177.2 MB / 205 MB, free: 5.297 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.482e-06/1.482e-06, allocations: 0 / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.432e-05/2.58e-05, allocations: 5.266 kB / 273 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.003292/0.003318, allocations: 2.901 MB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.005198, allocations: 1.383 MB / 277.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.005336, allocations: 7.938 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004754/0.005811, allocations: 171.1 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005344/0.006346, allocations: 262.4 kB / 277.7 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.006713, allocations: 143.4 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004551/0.007168, allocations: 485.6 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.007311, allocations: 60.33 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.007541, allocations: 259.4 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.00774, allocations: 179.6 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.733e-05/0.007778, allocations: 31.94 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.00789, allocations: 71.92 kB / 278.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.583e-05/0.007966, allocations: 87.66 kB / 279 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.00807, allocations: 127.7 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003448/0.008415, allocations: 342.7 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.008418, allocations: 0 / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.008419, allocations: 4 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.008425, allocations: 0 / 279.4 MB, free: 10.91 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.000717/0.009142, allocations: 0.7483 MB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.009175, allocations: 8.031 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.588e-05/0.009261, allocations: 64.66 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.009551, allocations: 282.7 kB / 280.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.009575, allocations: 16.88 kB / 280.5 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.009612, allocations: 28.31 kB / 280.6 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003975/0.01001, allocations: 0.5813 MB / 281.2 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.01002, allocations: 7.938 kB / 281.2 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.01004, allocations: 12 kB / 281.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.01005, allocations: 4 kB / 281.2 MB, free: 8.969 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001347/0.01019, allocations: 90.92 kB / 281.3 MB, free: 8.883 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008208/0.01101, allocations: 0.6763 MB / 281.9 MB, free: 8.164 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.01121, allocations: 135.6 kB / 282.1 MB, free: 8.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.716e-05/0.01127, allocations: 47.67 kB / 282.1 MB, free: 7.969 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.0113, allocations: 8 kB / 282.1 MB, free: 7.961 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001661/0.01146, allocations: 165.2 kB / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.01146, allocations: 0 / 282.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.000505/0.01197, allocations: 279.3 kB / 282.6 MB, free: 7.492 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/0.01206, allocations: 316.4 kB / 282.9 MB, free: 7.109 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/0.01235, allocations: 422.7 kB / 283.3 MB, free: 6.684 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.01237, allocations: 37.64 kB / 283.3 MB, free: 6.641 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.0125, allocations: 263.2 kB / 283.6 MB, free: 6.379 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.739e-05/0.01255, allocations: 83.27 kB / 283.7 MB, free: 6.297 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/0.01261, allocations: 63.36 kB / 283.7 MB, free: 6.227 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.01274, allocations: 0.5235 MB / 284.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.971e-05/0.0128, allocations: 39.97 kB / 284.3 MB, free: 5.652 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.01299, allocations: 428.6 kB / 284.7 MB, free: 5.113 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.01314, allocations: 129.3 kB / 284.8 MB, free: 4.973 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.01314, allocations: 8 kB / 284.8 MB, free: 4.965 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002604/0.0134, allocations: 237.5 kB / 285.1 MB, free: 4.723 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.01342, allocations: 14.59 kB / 285.1 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.01342, allocations: 0 / 285.1 MB, free: 4.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000102/0.01352, allocations: 27.67 kB / 285.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.01365, allocations: 59.84 kB / 285.2 MB, free: 4.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000971/0.01462, allocations: 1.842 MB / 287 MB, free: 2.652 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.01473, allocations: 23.88 kB / 287 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.01474, allocations: 12 kB / 287 MB, free: 2.617 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.0001094/0.01485, allocations: 184.4 kB / 287.2 MB, free: 2.426 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/0.01489, allocations: 51.72 kB / 287.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002617/0.01515, allocations: 215.8 kB / 287.5 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.01516, allocations: 8 kB / 287.5 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-06/0.01516, allocations: 0 / 287.5 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002821/0.01544, allocations: 0.5475 MB / 288 MB, free: 1.492 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005184/0.01596, allocations: 0.6212 MB / 288.7 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.01596, allocations: 4 kB / 288.7 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.01608, allocations: 47.92 kB / 288.7 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.01608, allocations: 0 / 288.7 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.0161, allocations: 11.98 kB / 288.7 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.0161, allocations: 7.938 kB / 288.7 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.0161, allocations: 0 / 288.7 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.0164, allocations: 390.2 kB / 289.1 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.277e-05/0.01647, allocations: 55.73 kB / 289.2 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.0165, allocations: 8 kB / 289.2 MB, free: 296 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.0166, allocations: 19.92 kB / 289.2 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.623e-05/0.01664, allocations: 19.97 kB / 289.2 MB, free: 256 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.01666, allocations: 4 kB / 289.2 MB, free: 252 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000184/0.01684, allocations: 291.1 kB / 289.5 MB, free: 15.96 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01684, allocations: 0 / 289.5 MB, free: 15.96 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002472/0.01709, allocations: 99.86 kB / 289.6 MB, free: 15.87 MB / 282.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.0007816/0.01787, allocations: 388.2 kB / 290 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003829/0.01825, allocations: 349.6 kB / 290.3 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.01825, allocations: 0 / 290.3 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.964e-05/0.01833, allocations: 69.83 kB / 290.4 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.01867, allocations: 113.4 kB / 290.5 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.01982, allocations: 0.7009 MB / 291.2 MB, free: 14.35 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.302e-05/0.01989, allocations: 101.3 kB / 291.3 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.01999, allocations: 42.95 kB / 291.3 MB, free: 14.19 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.404e-05/0.02004, allocations: 36.48 kB / 291.4 MB, free: 14.15 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02004, allocations: 0 / 291.4 MB, free: 14.15 MB / 282.7 MB Notification: Performance of Templates: time 0.008347/0.02839, allocations: 6.869 MB / 298.2 MB, free: 7.445 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.8685137098655105]