Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.7419/0.7419, allocations: 110.8 MB / 118 MB, free: 14.65 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001759/0.001759, allocations: 156 kB / 143.7 MB, free: 4.984 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.675e-06/8.105e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05155/0.05158, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.68/2.731, allocations: 1.427 GB / 1.621 GB, free: 50.34 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/2.732, allocations: 67.33 kB / 1.621 GB, free: 50.34 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.087/4.818, allocations: 0.5426 GB / 2.163 GB, free: 12.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002157/4.819, allocations: 36.62 kB / 2.163 GB, free: 12.38 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01453/4.833, allocations: 2.54 MB / 2.166 GB, free: 10.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/4.833, allocations: 8.406 kB / 2.166 GB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001313/4.834, allocations: 160.6 kB / 2.166 GB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003891/4.838, allocations: 0.9643 MB / 2.167 GB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004619/4.839, allocations: 233.9 kB / 2.167 GB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007057/4.84, allocations: 58.75 kB / 2.167 GB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004483/4.844, allocations: 1.803 MB / 2.169 GB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004605/4.849, allocations: 1.827 MB / 2.171 GB, free: 8.762 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.189e-05/4.849, allocations: 10.81 kB / 2.171 GB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002589/4.849, allocations: 0 / 2.171 GB, free: 8.754 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001469/4.849, allocations: 106.8 kB / 2.171 GB, free: 8.738 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01536/4.865, allocations: 8.769 MB / 2.179 GB, free: 0.7734 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/4.866, allocations: 1.021 MB / 2.18 GB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001785/4.868, allocations: 0.9086 MB / 2.181 GB, free: 14.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2914/5.16, allocations: 36.14 MB / 2.217 GB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.27e-05/5.16, allocations: 50.78 kB / 2.217 GB, free: 11.19 MB / 282.7 MB Notification: Performance of pre-optimization done (n=114): time 4.248e-06/5.16, allocations: 3.375 kB / 2.217 GB, free: 11.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=124): time 0.02661/5.186, allocations: 7.801 MB / 2.224 GB, free: 10.75 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/5.187, allocations: 141.9 kB / 2.224 GB, free: 10.6 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009804/5.188, allocations: 0.6103 MB / 2.225 GB, free: 10.47 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/5.188, allocations: 29.36 kB / 2.225 GB, free: 10.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004334/5.188, allocations: 427.8 kB / 2.226 GB, free: 10.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005106/5.189, allocations: 424.5 kB / 2.226 GB, free: 10.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-05/5.189, allocations: 0 / 2.226 GB, free: 10.02 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/5.189, allocations: 359.7 kB / 2.226 GB, free: 9.711 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001209/5.19, allocations: 0.8564 MB / 2.227 GB, free: 9.711 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/5.191, allocations: 1.093 MB / 2.228 GB, free: 9.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006368/5.198, allocations: 1.738 MB / 2.23 GB, free: 9.469 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/5.198, allocations: 3.688 kB / 2.23 GB, free: 9.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.009836/5.208, allocations: 3.625 MB / 2.233 GB, free: 9.293 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/5.208, allocations: 7.031 kB / 2.233 GB, free: 9.293 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/5.208, allocations: 3.188 kB / 2.233 GB, free: 9.293 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/5.21, allocations: 1.257 MB / 2.235 GB, free: 9.234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008852/5.211, allocations: 205 kB / 2.235 GB, free: 9.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009577/5.221, allocations: 6.675 MB / 2.241 GB, free: 5.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001906/5.223, allocations: 128.3 kB / 2.241 GB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002042/5.223, allocations: 70.97 kB / 2.242 GB, free: 5.566 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.lowerTank.V:DUMMY_DER(fixed = false ) "Actual tank volume" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.upperTank.heatTransfer.states[1].d:DUMMY_DER(fixed = false ) "density" type: Real [1] $DER.upperTank.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 9 (overflow.flowModel.states[2].phase,overflow.flowModel.states[1].phase,pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 110 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 4,3 3,2 4,4 13,4 13,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004436/5.223, allocations: 141.8 kB / 2.242 GB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005246/5.224, allocations: 197.8 kB / 2.242 GB, free: 5.398 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01193/5.236, allocations: 5.803 MB / 2.248 GB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.161e-05/5.236, allocations: 35.81 kB / 2.248 GB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/5.236, allocations: 0 / 2.248 GB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/5.236, allocations: 13.72 kB / 2.248 GB, free: 5.121 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/5.251, allocations: 7.758 MB / 2.255 GB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/5.252, allocations: 4.109 kB / 2.255 GB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009321/5.252, allocations: 164.1 kB / 2.255 GB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003914/5.256, allocations: 2.243 MB / 2.258 GB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001668/5.257, allocations: 36.2 kB / 2.258 GB, free: 4.527 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/5.267, allocations: 6.966 MB / 2.264 GB, free: 17.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/5.267, allocations: 1.125 kB / 2.264 GB, free: 17.87 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01347/5.28, allocations: 6.749 MB / 2.271 GB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006938/5.281, allocations: 201.1 kB / 2.271 GB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002835/5.281, allocations: 8.078 kB / 2.271 GB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/5.283, allocations: 126.7 kB / 2.271 GB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003893/5.283, allocations: 168.1 kB / 2.271 GB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/5.283, allocations: 56.22 kB / 2.271 GB, free: 17.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0006843/5.284, allocations: 468.9 kB / 2.272 GB, free: 17.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00855/5.293, allocations: 1.817 MB / 2.274 GB, free: 17.1 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.h,upperTank.level,lowerTank.medium.h,lowerTank.level) * Number of discrete variables: 21 ($cse1.phase,$cse1.region,$cse5.phase,$cse6.phase,$cse7.phase,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.region,$cse18.phase,$cse19.phase,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 4,3 4,1 5,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01184/5.304, allocations: 2.611 MB / 2.276 GB, free: 16.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007765/5.312, allocations: 2.888 MB / 2.279 GB, free: 16.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/5.312, allocations: 0 / 2.279 GB, free: 16.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004491/5.317, allocations: 2.036 MB / 2.281 GB, free: 16.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003399/5.32, allocations: 0.521 MB / 2.282 GB, free: 16.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/5.332, allocations: 3.554 MB / 2.285 GB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00204/5.334, allocations: 1.541 MB / 2.287 GB, free: 13.42 MB / 298.7 MB Notification: Performance of SimCode: time 2.444e-06/5.334, allocations: 4 kB / 2.287 GB, free: 13.42 MB / 298.7 MB Notification: Performance of Templates: time 0.3222/5.656, allocations: 68.71 MB / 2.354 GB, free: 39.88 MB / 298.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)