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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009362/0.0009363, allocations: 191.8 kB / 8.141 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000986/0.000986, allocations: 95.59 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.049e-05/1.053e-05, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1958/0.1958, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08568/0.2815, allocations: 82.17 MB / 469.1 MB, free: 4.629 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.2818, allocations: 79.89 kB / 469.2 MB, free: 4.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02157/0.3034, allocations: 7.958 MB / 477.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.55e-05/0.3034, allocations: 8 kB / 477.1 MB, free: 12.6 MB / 362.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.0007815/0.3042, allocations: 0.5913 MB / 477.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3043, allocations: 8.031 kB / 477.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.18e-05/0.3044, allocations: 47.53 kB / 477.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.3049, allocations: 344 kB / 478.1 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.3049, allocations: 4 kB / 478.1 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.3049, allocations: 12 kB / 478.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002771/0.3052, allocations: 141.9 kB / 478.3 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003717/0.3056, allocations: 256.6 kB / 478.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3056, allocations: 0 / 478.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.3057, allocations: 7.984 kB / 478.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3057, allocations: 4 kB / 478.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.3071, allocations: 0.7352 MB / 479.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004312/0.3075, allocations: 195.3 kB / 479.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.3076, allocations: 74.48 kB / 479.5 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.432e-05/0.3077, allocations: 7.984 kB / 479.5 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.3079, allocations: 123.6 kB / 479.6 MB, free: 9.879 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.3079, allocations: 4.781 kB / 479.7 MB, free: 9.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005487/0.3085, allocations: 244.6 kB / 479.9 MB, free: 9.629 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.3086, allocations: 312.4 kB / 480.2 MB, free: 9.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004095/0.309, allocations: 350 kB / 480.5 MB, free: 8.902 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.988e-05/0.3091, allocations: 29.7 kB / 480.6 MB, free: 8.867 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.136e-05/0.3092, allocations: 148.3 kB / 480.7 MB, free: 8.719 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.501e-05/0.3092, allocations: 74.86 kB / 480.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.024e-05/0.3092, allocations: 7.938 kB / 480.8 MB, free: 8.637 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3094, allocations: 350.8 kB / 481.1 MB, free: 8.285 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/0.3095, allocations: 56.83 kB / 481.2 MB, free: 8.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.3097, allocations: 164.2 kB / 481.4 MB, free: 8.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.3098, allocations: 74.02 kB / 481.4 MB, free: 7.949 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3098, allocations: 0 / 481.4 MB, free: 7.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004757/0.3103, allocations: 265.6 kB / 481.7 MB, free: 7.684 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.3103, allocations: 8.094 kB / 481.7 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.3104, allocations: 4 kB / 481.7 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001895/0.3106, allocations: 40.77 kB / 481.7 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.3108, allocations: 52.06 kB / 481.8 MB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.3121, allocations: 1.387 MB / 483.2 MB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.3123, allocations: 19.75 kB / 483.2 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.3123, allocations: 12.03 kB / 483.2 MB, free: 6.043 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.000146/0.3125, allocations: 123.8 kB / 483.3 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.588e-05/0.3125, allocations: 39.53 kB / 483.4 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004788/0.313, allocations: 254 kB / 483.6 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.3131, allocations: 4.234 kB / 483.6 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.3131, allocations: 0 / 483.6 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004116/0.3135, allocations: 0.5711 MB / 484.2 MB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008322/0.3143, allocations: 0.6849 MB / 484.9 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3143, allocations: 4 kB / 484.9 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.3146, allocations: 51.91 kB / 484.9 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.3146, allocations: 0 / 484.9 MB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.3146, allocations: 4 kB / 484.9 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3146, allocations: 0 / 484.9 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3146, allocations: 0 / 484.9 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004667/0.3151, allocations: 395.7 kB / 485.3 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.3153, allocations: 164.5 kB / 485.5 MB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.745e-05/0.3153, allocations: 0 / 485.5 MB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.3155, allocations: 7.984 kB / 485.5 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.3156, allocations: 11.98 kB / 485.5 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3156, allocations: 8 kB / 485.5 MB, free: 3.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002831/0.3159, allocations: 276.6 kB / 485.8 MB, free: 3.273 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003868/0.3163, allocations: 99.77 kB / 485.9 MB, free: 3.176 MB / 362.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006518/0.317, allocations: 336.6 kB / 486.2 MB, free: 2.934 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004809/0.3174, allocations: 285.8 kB / 486.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3175, allocations: 0 / 486.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.3176, allocations: 84.11 kB / 486.6 MB, free: 2.562 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.3181, allocations: 85.11 kB / 486.6 MB, free: 2.477 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.3191, allocations: 0.5497 MB / 487.2 MB, free: 1.902 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004025/0.3195, allocations: 0.8412 MB / 488 MB, free: 1.039 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3195, allocations: 0 / 488 MB, free: 1.039 MB / 362.7 MB Notification: Performance of Templates: time 0.009948/0.3295, allocations: 5.209 MB / 493.2 MB, free: 11.91 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches