Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7761/0.7761, allocations: 141.8 MB / 149.1 MB, free: 1.559 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 169.4 kB / 181.9 MB, free: 1.012 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 221.3 MB / 436 MB, free: 5.75 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009711/0.0009709, allocations: 96.53 kB / 0.507 GB, free: 2.418 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001753/0.001753, allocations: 275.7 kB / 0.5884 GB, free: 47.48 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 8.426e-06/8.456e-06, allocations: 1.344 kB / 0.6759 GB, free: 59.79 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1803, allocations: 82.78 MB / 0.7567 GB, free: 0.9531 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.127/1.307, allocations: 423 MB / 1.17 GB, free: 265.8 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003243/1.308, allocations: 94.56 kB / 1.17 GB, free: 265.8 MB / 0.7138 GB Notification: Performance of FrontEnd: time 43.61/44.92, allocations: 10.71 GB / 11.88 GB, free: 62.9 MB / 0.9638 GB Notification: Performance of Transformations before backend: time 0.003587/44.92, allocations: 350.1 kB / 11.88 GB, free: 62.83 MB / 0.9638 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.04072/44.96, allocations: 11.54 MB / 11.89 GB, free: 57.88 MB / 0.9638 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/44.96, allocations: 12.09 kB / 11.89 GB, free: 57.88 MB / 0.9638 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01406/44.97, allocations: 2.164 MB / 11.89 GB, free: 57.09 MB / 0.9638 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0607/45.04, allocations: 18.69 MB / 11.91 GB, free: 54.97 MB / 0.9638 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004944/45.04, allocations: 196.4 kB / 11.91 GB, free: 54.97 MB / 0.9638 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003043/45.04, allocations: 435.7 kB / 11.91 GB, free: 54.97 MB / 0.9638 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01587/45.05, allocations: 7.037 MB / 11.92 GB, free: 54.95 MB / 0.9638 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02203/45.08, allocations: 7.536 MB / 11.93 GB, free: 53.9 MB / 0.9638 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002301/45.08, allocations: 20.72 kB / 11.93 GB, free: 53.89 MB / 0.9638 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001681/45.08, allocations: 11.53 kB / 11.93 GB, free: 53.89 MB / 0.9638 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001685/45.08, allocations: 157.4 kB / 11.93 GB, free: 53.89 MB / 0.9638 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08895/45.17, allocations: 50.42 MB / 11.97 GB, free: 26.06 MB / 0.9638 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006628/45.17, allocations: 3.519 MB / 11.98 GB, free: 26 MB / 0.9638 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006514/45.18, allocations: 4.013 MB / 11.98 GB, free: 25.92 MB / 0.9638 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03891/45.22, allocations: 13 MB / 11.99 GB, free: 22.76 MB / 0.9638 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006365/45.23, allocations: 3.194 MB / 12 GB, free: 22.66 MB / 0.9638 GB Notification: Performance of pre-optimization done (n=326): time 7.865e-06/45.23, allocations: 0 / 12 GB, free: 22.66 MB / 0.9638 GB Notification: Performance of matching and sorting (n=328): time 0.06298/45.29, allocations: 17.67 MB / 12.02 GB, free: 19.67 MB / 0.9638 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/45.29, allocations: 85.16 kB / 12.02 GB, free: 19.61 MB / 0.9638 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03204/45.32, allocations: 11.71 MB / 12.03 GB, free: 18.88 MB / 0.9638 GB Notification: Performance of collectPreVariables (initialization): time 0.002049/45.32, allocations: 37.36 kB / 12.03 GB, free: 18.84 MB / 0.9638 GB Notification: Performance of collectInitialEqns (initialization): time 0.00647/45.33, allocations: 3.278 MB / 12.03 GB, free: 17.37 MB / 0.9638 GB Notification: Performance of collectInitialBindings (initialization): time 0.003796/45.33, allocations: 1.077 MB / 12.03 GB, free: 16.65 MB / 0.9638 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001579/45.34, allocations: 0 / 12.03 GB, free: 16.65 MB / 0.9638 GB Notification: Performance of setup shared object (initialization): time 0.0005809/45.34, allocations: 0.5369 MB / 12.03 GB, free: 16.33 MB / 0.9638 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006329/45.34, allocations: 3.262 MB / 12.03 GB, free: 16.31 MB / 0.9638 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007991/45.35, allocations: 6.017 MB / 12.04 GB, free: 12.86 MB / 0.9638 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/45.36, allocations: 4.257 MB / 12.04 GB, free: 12.62 MB / 0.9638 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001334/45.36, allocations: 17.22 kB / 12.04 GB, free: 12.62 MB / 0.9638 GB Notification: Performance of matching and sorting (n=771) (initialization): time 0.03408/45.4, allocations: 11.9 MB / 12.06 GB, free: 11.41 MB / 0.9638 GB Notification: Performance of prepare postOptimizeDAE: time 0.01436/45.41, allocations: 38.28 MB / 12.09 GB, free: 3.387 MB / 0.995 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002477/45.41, allocations: 57.03 kB / 12.09 GB, free: 3.387 MB / 0.995 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/45.42, allocations: 3.048 MB / 12.1 GB, free: 3.223 MB / 0.995 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009419/45.43, allocations: 1.384 MB / 12.1 GB, free: 3.133 MB / 0.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6693/46.1, allocations: 11.59 MB / 12.11 GB, free: 130 MB / 0.995 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01637/46.12, allocations: 0.7171 MB / 12.11 GB, free: 130 MB / 0.995 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002505/46.12, allocations: 465.9 kB / 12.11 GB, free: 130 MB / 0.995 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/46.12, allocations: 5.75 kB / 12.11 GB, free: 130 MB / 0.995 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02167/46.14, allocations: 9.467 MB / 12.12 GB, free: 129.9 MB / 0.995 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001981/46.14, allocations: 59.19 kB / 12.12 GB, free: 129.9 MB / 0.995 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/46.15, allocations: 3.098 MB / 12.12 GB, free: 129.8 MB / 0.995 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007043/46.16, allocations: 1.366 MB / 12.12 GB, free: 129.8 MB / 0.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02462/46.19, allocations: 13.37 MB / 12.14 GB, free: 126.4 MB / 0.995 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.016/46.2, allocations: 0.6948 MB / 12.14 GB, free: 126.4 MB / 0.995 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002483/46.2, allocations: 417 kB / 12.14 GB, free: 126.4 MB / 0.995 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spl3.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 pumpCoo.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 269 * 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 (624): * Single equations (assignments): 609 * 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: 5 * 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: 5 {1 2,9 12,1 2,1 2,7 78} Notification: Performance of prepare postOptimizeDAE: time 0.003976/46.21, allocations: 324.2 kB / 12.14 GB, free: 126.3 MB / 0.995 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004993/46.21, allocations: 1.143 MB / 12.14 GB, free: 126.3 MB / 0.995 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02702/46.24, allocations: 8.865 MB / 12.15 GB, free: 126 MB / 0.995 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-05/46.24, allocations: 43.2 kB / 12.15 GB, free: 126 MB / 0.995 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-05/46.24, allocations: 0 / 12.15 GB, free: 126 MB / 0.995 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01409/46.25, allocations: 6.257 MB / 12.15 GB, free: 125.6 MB / 0.995 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04747/46.3, allocations: 16.17 MB / 12.17 GB, free: 124.8 MB / 0.995 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/46.3, allocations: 0 / 12.17 GB, free: 124.8 MB / 0.995 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003973/46.31, allocations: 0.6302 MB / 12.17 GB, free: 124.8 MB / 0.995 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006688/46.31, allocations: 1.848 MB / 12.17 GB, free: 124.8 MB / 0.995 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001005/46.31, allocations: 62.36 kB / 12.17 GB, free: 124.8 MB / 0.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/46.32, allocations: 9.024 MB / 12.18 GB, free: 119.3 MB / 0.995 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/46.32, allocations: 6.031 kB / 12.18 GB, free: 119.3 MB / 0.995 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02399/46.35, allocations: 11.11 MB / 12.19 GB, free: 118.4 MB / 0.995 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009655/46.36, allocations: 2.163 MB / 12.19 GB, free: 117.6 MB / 0.995 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005428/46.36, allocations: 8.516 kB / 12.19 GB, free: 117.6 MB / 0.995 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01179/46.38, allocations: 0.5947 MB / 12.2 GB, free: 117.6 MB / 0.995 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001097/46.38, allocations: 229.2 kB / 12.2 GB, free: 117.6 MB / 0.995 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001202/46.38, allocations: 177.6 kB / 12.2 GB, free: 117.6 MB / 0.995 GB Notification: Performance of sort global known variables: time 0.02612/46.4, allocations: 8.749 MB / 12.2 GB, free: 117.2 MB / 0.995 GB Notification: Performance of remove unused functions: time 0.03788/46.44, allocations: 5.059 MB / 12.21 GB, free: 117.2 MB / 0.995 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 (292): * Single equations (assignments): 269 * 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: 5 * 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: 5 {1 2,9 12,1 2,1 2,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.01158/46.45, allocations: 4.759 MB / 12.21 GB, free: 115.4 MB / 0.995 GB Notification: Performance of simCode: created initialization part: time 0.03104/46.48, allocations: 12.67 MB / 12.23 GB, free: 115 MB / 0.995 GB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/46.48, allocations: 3.469 kB / 12.23 GB, free: 115 MB / 0.995 GB Notification: Performance of simCode: created simulation system equations: time 0.00735/46.49, allocations: 2.891 MB / 12.23 GB, free: 115 MB / 0.995 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0324/46.52, allocations: 5.497 MB / 12.23 GB, free: 115 MB / 0.995 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05074/46.57, allocations: 17.54 MB / 12.25 GB, free: 111.3 MB / 0.995 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0148/46.59, allocations: 7.732 MB / 12.26 GB, free: 110.3 MB / 0.995 GB Notification: Performance of SimCode: time 1.493e-06/46.59, allocations: 1.688 kB / 12.26 GB, free: 110.3 MB / 0.995 GB Notification: Performance of Templates: time 1.26/47.85, allocations: 283.6 MB / 12.54 GB, free: 112.6 MB / 0.995 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1)