Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5") [: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/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.608/1.608, allocations: 285.5 MB / 292.8 MB, free: 10.46 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001261/0.001261, allocations: 175.2 kB / 361.1 MB, free: 7.121 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.687/1.687, allocations: 205.1 MB / 0.6195 GB, free: 10.39 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009708/0.0009708, allocations: 95.12 kB / 0.7326 GB, free: 44.28 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.648e-06/9.748e-06, allocations: 4 kB / 0.8511 GB, free: 3.016 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7708/0.7708, allocations: 115.3 MB / 0.9637 GB, free: 78.3 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.043/1.814, allocations: 464.8 MB / 1.418 GB, free: 98.75 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/1.814, allocations: 94.17 kB / 1.418 GB, free: 98.7 MB / 0.8542 GB Notification: Performance of FrontEnd: time 40.65/42.46, allocations: 10.27 GB / 11.69 GB, free: 85.28 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.002817/42.47, allocations: 353.7 kB / 11.69 GB, free: 85.2 MB / 1.214 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.04747/42.51, allocations: 12.11 MB / 11.7 GB, free: 79.94 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/42.51, allocations: 9.219 kB / 11.7 GB, free: 79.94 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0165/42.53, allocations: 2.32 MB / 11.71 GB, free: 79.09 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07269/42.6, allocations: 22.29 MB / 11.73 GB, free: 76.13 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005909/42.6, allocations: 194.8 kB / 11.73 GB, free: 76.13 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004834/42.61, allocations: 441.1 kB / 11.73 GB, free: 76.12 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03086/42.64, allocations: 18.11 MB / 11.75 GB, free: 76.09 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0345/42.67, allocations: 12.31 MB / 11.76 GB, free: 75.47 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001693/42.67, allocations: 3.938 kB / 11.76 GB, free: 75.47 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001646/42.68, allocations: 9.516 kB / 11.76 GB, free: 75.47 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/42.68, allocations: 153.2 kB / 11.76 GB, free: 75.46 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.141/42.82, allocations: 73.61 MB / 11.83 GB, free: 24.89 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01235/42.83, allocations: 8.364 MB / 11.84 GB, free: 17.43 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01278/42.84, allocations: 8.861 MB / 11.85 GB, free: 9.465 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8921/43.73, allocations: 31.85 MB / 11.88 GB, free: 180.8 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01303/43.75, allocations: 8.076 MB / 11.89 GB, free: 180.7 MB / 1.214 GB Notification: Performance of pre-optimization done (n=393): time 8.205e-06/43.75, allocations: 4.031 kB / 11.89 GB, free: 180.7 MB / 1.214 GB Notification: Performance of matching and sorting (n=395): time 0.09587/43.84, allocations: 38.59 MB / 11.92 GB, free: 179.1 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/43.84, allocations: 96.33 kB / 11.92 GB, free: 179 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03267/43.88, allocations: 11.39 MB / 11.93 GB, free: 178.4 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.003975/43.88, allocations: 37.23 kB / 11.93 GB, free: 178.3 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.007001/43.89, allocations: 3.058 MB / 11.94 GB, free: 177.3 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.006098/43.89, allocations: 1.293 MB / 11.94 GB, free: 176.7 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003517/43.9, allocations: 0 / 11.94 GB, free: 176.7 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0007142/43.9, allocations: 0.5437 MB / 11.94 GB, free: 176.3 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01245/43.91, allocations: 7.131 MB / 11.95 GB, free: 176.3 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0152/43.92, allocations: 9.551 MB / 11.96 GB, free: 173.5 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01817/43.94, allocations: 8.23 MB / 11.96 GB, free: 173.4 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001485/43.94, allocations: 12.34 kB / 11.96 GB, free: 173.4 MB / 1.214 GB Notification: Performance of matching and sorting (n=776) (initialization): time 0.06805/44.01, allocations: 23.92 MB / 11.99 GB, free: 172.5 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.009567/44.02, allocations: 29.46 MB / 12.02 GB, free: 141.8 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003207/44.02, allocations: 44.16 kB / 12.02 GB, free: 141.8 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7995/44.82, allocations: 188.5 MB / 12.2 GB, free: 126.2 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0108/44.83, allocations: 1.266 MB / 12.2 GB, free: 126.2 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06356/44.9, allocations: 27.64 MB / 12.23 GB, free: 114.4 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0213/44.92, allocations: 0.7471 MB / 12.23 GB, free: 113.9 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004563/44.92, allocations: 0.736 MB / 12.23 GB, free: 113.4 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/44.92, allocations: 7.906 kB / 12.23 GB, free: 113.4 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05351/44.97, allocations: 21.79 MB / 12.25 GB, free: 102.8 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002541/44.97, allocations: 44 kB / 12.25 GB, free: 102.7 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507/46.48, allocations: 188.6 MB / 12.44 GB, free: 174.3 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006649/46.49, allocations: 1.247 MB / 12.44 GB, free: 174.3 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05533/46.54, allocations: 29.49 MB / 12.47 GB, free: 172.1 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01713/46.56, allocations: 0.7265 MB / 12.47 GB, free: 172.1 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003278/46.56, allocations: 0.6937 MB / 12.47 GB, free: 172.1 MB / 1.214 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumpHea.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real spl2.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumpCoo.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (556): * Single equations (assignments): 544 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {39 61,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.003774/46.57, allocations: 288.4 kB / 12.47 GB, free: 172 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003764/46.57, allocations: 1.135 MB / 12.47 GB, free: 172 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04157/46.61, allocations: 18.67 MB / 12.49 GB, free: 171.1 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001034/46.61, allocations: 51.59 kB / 12.49 GB, free: 171.1 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/46.61, allocations: 0 / 12.49 GB, free: 171.1 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01957/46.63, allocations: 12.89 MB / 12.5 GB, free: 170.7 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1045/46.74, allocations: 42.78 MB / 12.54 GB, free: 164.9 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.725e-05/46.74, allocations: 5.781 kB / 12.54 GB, free: 164.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004281/46.74, allocations: 0.6853 MB / 12.54 GB, free: 164.9 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2453/46.99, allocations: 78.66 MB / 12.62 GB, free: 149.2 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001679/46.99, allocations: 71.95 kB / 12.62 GB, free: 149.2 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02483/47.01, allocations: 14.61 MB / 12.63 GB, free: 144.9 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/47.01, allocations: 2.656 kB / 12.63 GB, free: 144.9 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04753/47.06, allocations: 22.06 MB / 12.65 GB, free: 143.6 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009988/47.07, allocations: 2.54 MB / 12.66 GB, free: 142.8 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005976/47.08, allocations: 5.203 kB / 12.66 GB, free: 142.8 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01399/47.09, allocations: 0.5936 MB / 12.66 GB, free: 142.8 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001945/47.09, allocations: 277 kB / 12.66 GB, free: 142.7 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00164/47.1, allocations: 203.3 kB / 12.66 GB, free: 142.7 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.01805/47.11, allocations: 8.538 MB / 12.67 GB, free: 142.4 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.03675/47.15, allocations: 5.566 MB / 12.67 GB, free: 142.4 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (319): * Single equations (assignments): 299 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {40 60,6 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.007533/47.16, allocations: 4.738 MB / 12.68 GB, free: 140.2 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.06547/47.22, allocations: 29.19 MB / 12.7 GB, free: 137.9 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/47.22, allocations: 0 / 12.7 GB, free: 137.9 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.0163/47.24, allocations: 7.937 MB / 12.71 GB, free: 133.6 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03242/47.27, allocations: 5.857 MB / 12.72 GB, free: 130.3 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06055/47.33, allocations: 19.25 MB / 12.74 GB, free: 115.7 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01269/47.35, allocations: 7.757 MB / 12.74 GB, free: 110.8 MB / 1.214 GB Notification: Performance of SimCode: time 8.32e-07/47.35, allocations: 0 / 12.74 GB, free: 110.8 MB / 1.214 GB Notification: Performance of Templates: time 1.309/48.65, allocations: 410.1 MB / 13.15 GB, free: 154.3 MB / 1.214 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1)