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.001027/0.001027, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0011/0.0011, allocations: 170.9 kB / 24.82 MB, free: 9.312 MB / 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.9817/0.9817, allocations: 177.1 MB / 205.3 MB, free: 5.504 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 2.355e-06/2.355e-06, allocations: 0 / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.666e-05/2.902e-05, allocations: 6.25 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.003272/0.003301, allocations: 2.865 MB / 276.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.00498, allocations: 1.367 MB / 277.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.005132, allocations: 7.938 kB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004427/0.005575, allocations: 175.1 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.005992, allocations: 258.4 kB / 278 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.006223, allocations: 147.5 kB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003792/0.006602, allocations: 477.6 kB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.006741, allocations: 68.31 kB / 278.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/0.006974, allocations: 263.4 kB / 279 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.007164, allocations: 167.6 kB / 279.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.79e-05/0.007202, allocations: 32 kB / 279.2 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.007315, allocations: 71.86 kB / 279.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.335e-05/0.007398, allocations: 95.66 kB / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.007503, allocations: 127.6 kB / 279.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003412/0.007844, allocations: 338.8 kB / 279.8 MB, free: 10.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.007848, allocations: 0 / 279.8 MB, free: 10.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.007849, allocations: 0 / 279.8 MB, free: 10.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.007854, allocations: 0 / 279.8 MB, free: 10.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.0006714/0.008526, allocations: 0.7521 MB / 280.5 MB, free: 10.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.008559, allocations: 8.031 kB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.584e-05/0.008635, allocations: 72.66 kB / 280.6 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.008908, allocations: 278.7 kB / 280.9 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.00893, allocations: 12.88 kB / 280.9 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.008962, allocations: 24.38 kB / 280.9 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.009347, allocations: 0.5773 MB / 281.5 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.00936, allocations: 3.938 kB / 281.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.009379, allocations: 12 kB / 281.5 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.009386, allocations: 4 kB / 281.5 MB, free: 8.941 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001028/0.009488, allocations: 71.42 kB / 281.6 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007653/0.01025, allocations: 0.6183 MB / 282.2 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.01043, allocations: 123.5 kB / 282.3 MB, free: 8.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.321e-05/0.01048, allocations: 51.64 kB / 282.4 MB, free: 8.035 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.0105, allocations: 7.984 kB / 282.4 MB, free: 8.027 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001538/0.01066, allocations: 157.2 kB / 282.5 MB, free: 7.848 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.512e-06/0.01066, allocations: 0 / 282.5 MB, free: 7.848 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005977/0.01126, allocations: 252.1 kB / 282.8 MB, free: 7.594 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.01139, allocations: 316.4 kB / 283.1 MB, free: 7.211 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.01168, allocations: 422.5 kB / 283.5 MB, free: 6.785 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.01171, allocations: 33.7 kB / 283.5 MB, free: 6.746 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.01186, allocations: 263 kB / 283.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.868e-05/0.01192, allocations: 83.25 kB / 283.9 MB, free: 6.402 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.711e-05/0.01199, allocations: 63.34 kB / 283.9 MB, free: 6.332 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.01213, allocations: 0.5273 MB / 284.5 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.58e-05/0.01218, allocations: 31.97 kB / 284.5 MB, free: 5.762 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.01236, allocations: 428.5 kB / 284.9 MB, free: 5.223 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.01248, allocations: 117.3 kB / 285 MB, free: 5.094 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.01248, allocations: 0 / 285 MB, free: 5.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002229/0.0127, allocations: 213.5 kB / 285.2 MB, free: 4.875 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.01272, allocations: 8 kB / 285.3 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.01272, allocations: 3.938 kB / 285.3 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.035e-05/0.0128, allocations: 27.67 kB / 285.3 MB, free: 4.832 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.01293, allocations: 51.91 kB / 285.3 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009855/0.01391, allocations: 1.827 MB / 287.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.879e-05/0.01401, allocations: 19.89 kB / 287.2 MB, free: 2.816 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.01402, allocations: 7.984 kB / 287.2 MB, free: 2.809 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.0001081/0.01413, allocations: 187.7 kB / 287.4 MB, free: 2.617 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.01417, allocations: 51.91 kB / 287.4 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002307/0.0144, allocations: 200.8 kB / 287.6 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.01441, allocations: 7.984 kB / 287.6 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.01441, allocations: 3.938 kB / 287.6 MB, free: 2.344 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002424/0.01465, allocations: 0.5342 MB / 288.2 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004846/0.01514, allocations: 0.5592 MB / 288.7 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.01514, allocations: 4 kB / 288.7 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.01525, allocations: 43.97 kB / 288.8 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.01526, allocations: 4 kB / 288.8 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.01527, allocations: 8 kB / 288.8 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.01527, allocations: 0 / 288.8 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.01527, allocations: 3.984 kB / 288.8 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.01552, allocations: 374.2 kB / 289.2 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.259e-05/0.0156, allocations: 55.73 kB / 289.2 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.01562, allocations: 8 kB / 289.2 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.846e-05/0.01572, allocations: 11.98 kB / 289.2 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.131e-05/0.01575, allocations: 15.97 kB / 289.2 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.01577, allocations: 8 kB / 289.3 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001396/0.01591, allocations: 275 kB / 289.5 MB, free: 304 kB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01591, allocations: 0 / 289.5 MB, free: 304 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002393/0.01615, allocations: 107.8 kB / 289.6 MB, free: 196 kB / 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.000807/0.01695, allocations: 380.6 kB / 290 MB, free: 15.95 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003205/0.01727, allocations: 329.6 kB / 290.3 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01728, allocations: 0 / 290.3 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.386e-05/0.01734, allocations: 62.23 kB / 290.4 MB, free: 15.55 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.01767, allocations: 113.4 kB / 290.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.01874, allocations: 0.7087 MB / 291.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.148e-05/0.0188, allocations: 101.3 kB / 291.3 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.151e-05/0.01889, allocations: 42.95 kB / 291.3 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002234/0.01911, allocations: 210.1 kB / 291.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01911, allocations: 4 kB / 291.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of Templates: time 0.008692/0.02781, allocations: 6.976 MB / 298.5 MB, free: 7.527 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.9002761212177575]