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.0007073/0.0007073, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001018/0.001725, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007317/0.0007317, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009199/0.001652, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9014/0.9014, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07352/0.9749, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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 9.62e-07/9.62e-07, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.488e-06/1.045e-05, allocations: 9.969 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.002507/0.002518, allocations: 2.92 MB / 247.6 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.004013, allocations: 1.417 MB / 249 MB, free: 9.863 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.004117, allocations: 7.938 kB / 249 MB, free: 9.855 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.004398, allocations: 194.9 kB / 249.2 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003095/0.004708, allocations: 254.4 kB / 249.5 MB, free: 9.414 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.004912, allocations: 139.4 kB / 249.6 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003535/0.005265, allocations: 485.6 kB / 250.1 MB, free: 8.801 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.005378, allocations: 74.89 kB / 250.2 MB, free: 8.73 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.005634, allocations: 331.7 kB / 250.5 MB, free: 8.406 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001639/0.005798, allocations: 159.6 kB / 250.6 MB, free: 8.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.32e-05/0.005831, allocations: 32 kB / 250.7 MB, free: 8.219 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.005934, allocations: 71.86 kB / 250.7 MB, free: 8.148 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.007e-05/0.005994, allocations: 67.73 kB / 250.8 MB, free: 8.082 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.306e-05/0.006077, allocations: 107.8 kB / 250.9 MB, free: 7.977 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.006352, allocations: 318.8 kB / 251.2 MB, free: 7.664 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.006361, allocations: 0 / 251.2 MB, free: 7.664 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.006362, allocations: 0 / 251.2 MB, free: 7.664 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.006371, allocations: 4 kB / 251.2 MB, free: 7.66 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.000872/0.007243, allocations: 0.6975 MB / 251.9 MB, free: 6.934 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.511e-05/0.007268, allocations: 8.031 kB / 251.9 MB, free: 6.926 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/0.007323, allocations: 44.89 kB / 252 MB, free: 6.883 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.007546, allocations: 248 kB / 252.2 MB, free: 6.613 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.007564, allocations: 20.8 kB / 252.2 MB, free: 6.594 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.007596, allocations: 28.38 kB / 252.3 MB, free: 6.566 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.007888, allocations: 0.5497 MB / 252.8 MB, free: 5.902 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.007899, allocations: 3.938 kB / 252.8 MB, free: 5.898 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.007916, allocations: 15.98 kB / 252.8 MB, free: 5.883 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.007922, allocations: 4 kB / 252.8 MB, free: 5.879 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.873e-05/0.008001, allocations: 62.28 kB / 252.9 MB, free: 5.816 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005716/0.008572, allocations: 474.9 kB / 253.4 MB, free: 5.328 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.008713, allocations: 145.2 kB / 253.5 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.841e-05/0.008752, allocations: 40.84 kB / 253.5 MB, free: 5.133 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.008772, allocations: 4 kB / 253.6 MB, free: 5.129 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.008909, allocations: 171.8 kB / 253.7 MB, free: 4.938 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.008911, allocations: 0 / 253.7 MB, free: 4.938 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002969/0.009208, allocations: 182.3 kB / 253.9 MB, free: 4.75 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.168e-05/0.009229, allocations: 55.41 kB / 254 MB, free: 4.684 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.009423, allocations: 357 kB / 254.3 MB, free: 4.32 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.009442, allocations: 33.7 kB / 254.3 MB, free: 4.281 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.585e-05/0.009508, allocations: 169.3 kB / 254.5 MB, free: 4.113 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.917e-05/0.009547, allocations: 79.27 kB / 254.6 MB, free: 4.035 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.354e-05/0.0096, allocations: 61.67 kB / 254.6 MB, free: 3.969 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.439e-05/0.009675, allocations: 350.7 kB / 255 MB, free: 3.617 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.265e-05/0.009707, allocations: 30.77 kB / 255 MB, free: 3.586 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.009844, allocations: 385 kB / 255.4 MB, free: 3.105 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.717e-05/0.009941, allocations: 108.8 kB / 255.5 MB, free: 2.988 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.009943, allocations: 0 / 255.5 MB, free: 2.988 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0001525/0.0101, allocations: 161.2 kB / 255.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.01011, allocations: 11.94 kB / 255.7 MB, free: 2.809 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.01011, allocations: 3.984 kB / 255.7 MB, free: 2.805 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.664e-05/0.01018, allocations: 20.84 kB / 255.7 MB, free: 2.781 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.01033, allocations: 69.36 kB / 255.8 MB, free: 2.715 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006914/0.01102, allocations: 1.257 MB / 257 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.66e-05/0.01112, allocations: 27.78 kB / 257 MB, free: 1.34 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.01113, allocations: 7.938 kB / 257 MB, free: 1.332 MB / 250.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 8.198e-05/0.01121, allocations: 128.7 kB / 257.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.103e-05/0.01124, allocations: 43.89 kB / 257.2 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001593/0.0114, allocations: 160.9 kB / 257.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.0114, allocations: 0 / 257.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.11e-07/0.0114, allocations: 4 kB / 257.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001802/0.01158, allocations: 0.4969 MB / 257.9 MB, free: 396 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005976/0.01218, allocations: 477.3 kB / 258.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01218, allocations: 0 / 258.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001516/0.01234, allocations: 70.33 kB / 258.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.01239, allocations: 47.75 kB / 258.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.0124, allocations: 4 kB / 258.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.01241, allocations: 3.984 kB / 258.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.01241, allocations: 3.984 kB / 258.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.01241, allocations: 0 / 258.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001915/0.0126, allocations: 322.1 kB / 258.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.01263, allocations: 8 kB / 258.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.825e-05/0.01272, allocations: 15.98 kB / 258.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.556e-05/0.01275, allocations: 15.95 kB / 258.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.01276, allocations: 7.984 kB / 258.8 MB, free: 15.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000102/0.01286, allocations: 155.5 kB / 259 MB, free: 15.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01286, allocations: 0 / 259 MB, free: 15.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002053/0.01307, allocations: 107.8 kB / 259.1 MB, free: 15.12 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.001074/0.01414, allocations: 0.5506 MB / 259.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002607/0.0144, allocations: 259.7 kB / 259.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.01441, allocations: 4 kB / 259.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.869e-05/0.01448, allocations: 71.61 kB / 260 MB, free: 14.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004999/0.01498, allocations: 0.9411 MB / 260.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003953/0.01893, allocations: 0.6735 MB / 261.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.756e-05/0.01899, allocations: 105.2 kB / 261.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.924e-05/0.01909, allocations: 46.94 kB / 261.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.01932, allocations: 185.2 kB / 261.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01932, allocations: 0 / 261.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of Templates: time 0.008655/0.02797, allocations: 8.016 MB / 269.9 MB, free: 4.492 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.525783706456423]