Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6") translateModel(BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0/package.mo): time 0.7408/0.7408, allocations: 127.4 MB / 134.6 MB, free: 4.074 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001241/0.001241, allocations: 181.3 kB / 164.4 MB, free: 6.867 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.647/1.647, allocations: 205.1 MB / 399.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 93.27 kB / 476.3 MB, free: 8.824 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 6.803e-06/6.843e-06, allocations: 0 / 0.546 GB, free: 42.74 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1846/0.1847, allocations: 76.75 MB / 0.6209 GB, free: 13.92 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.17/1.355, allocations: 429.5 MB / 1.04 GB, free: 53.99 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/1.356, allocations: 92.7 kB / 1.04 GB, free: 53.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 43.76/45.12, allocations: 10.11 GB / 11.15 GB, free: 43.44 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.006014/45.13, allocations: 346.1 kB / 11.15 GB, free: 43.34 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1489 * Number of variables: 1489 Notification: Performance of Generate backend data structure: time 0.06243/45.19, allocations: 11.41 MB / 11.16 GB, free: 35.29 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/45.19, allocations: 13.91 kB / 11.16 GB, free: 35.28 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01909/45.21, allocations: 2.327 MB / 11.17 GB, free: 33.05 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06932/45.28, allocations: 19.18 MB / 11.19 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007211/45.28, allocations: 192 kB / 11.19 GB, free: 14.06 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004371/45.28, allocations: 424 kB / 11.19 GB, free: 13.65 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02118/45.3, allocations: 6.895 MB / 11.19 GB, free: 6.75 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8219/46.13, allocations: 7.454 MB / 11.2 GB, free: 73.18 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001678/46.13, allocations: 15.25 kB / 11.2 GB, free: 73.18 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009083/46.13, allocations: 14.12 kB / 11.2 GB, free: 73.18 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001461/46.13, allocations: 149.1 kB / 11.2 GB, free: 73.18 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08232/46.21, allocations: 50.24 MB / 11.25 GB, free: 46.36 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005154/46.21, allocations: 3.416 MB / 11.25 GB, free: 46.3 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005176/46.22, allocations: 3.909 MB / 11.26 GB, free: 46.23 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03361/46.25, allocations: 12 MB / 11.27 GB, free: 43.45 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006153/46.26, allocations: 3.202 MB / 11.27 GB, free: 43.34 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=322): time 7.554e-06/46.26, allocations: 2.734 kB / 11.27 GB, free: 43.34 MB / 0.9167 GB Notification: Performance of matching and sorting (n=324): time 0.124/46.38, allocations: 27.19 MB / 11.3 GB, free: 40.67 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.351e-05/46.38, allocations: 88.89 kB / 11.3 GB, free: 40.61 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03206/46.42, allocations: 11.47 MB / 11.31 GB, free: 39.94 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.002351/46.42, allocations: 39.3 kB / 11.31 GB, free: 39.91 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.006156/46.42, allocations: 3.241 MB / 11.31 GB, free: 38.84 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0034/46.43, allocations: 1.063 MB / 11.31 GB, free: 38.28 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001815/46.43, allocations: 6.969 kB / 11.31 GB, free: 38.28 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0006306/46.43, allocations: 0.5358 MB / 11.31 GB, free: 53.96 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006733/46.44, allocations: 3.648 MB / 11.32 GB, free: 53.95 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008641/46.45, allocations: 6.393 MB / 11.32 GB, free: 50.63 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/46.46, allocations: 4.55 MB / 11.33 GB, free: 50.55 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001229/46.46, allocations: 17.88 kB / 11.33 GB, free: 50.55 MB / 0.9323 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.09738/46.55, allocations: 19.91 MB / 11.35 GB, free: 49.72 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.01491/46.57, allocations: 38.83 MB / 11.39 GB, free: 41.63 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003349/46.57, allocations: 59.12 kB / 11.39 GB, free: 41.63 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01468/46.58, allocations: 4.229 MB / 11.39 GB, free: 41.58 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01133/46.6, allocations: 1.522 MB / 11.39 GB, free: 41.58 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02657/46.62, allocations: 14.33 MB / 11.41 GB, free: 35.98 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02071/46.64, allocations: 1.03 MB / 11.41 GB, free: 35.95 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003335/46.65, allocations: 476.1 kB / 11.41 GB, free: 35.95 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/46.65, allocations: 2.812 kB / 11.41 GB, free: 35.95 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03583/46.68, allocations: 10.02 MB / 11.42 GB, free: 35.77 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003964/46.68, allocations: 59.88 kB / 11.42 GB, free: 35.77 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01339/46.7, allocations: 3.063 MB / 11.42 GB, free: 35.71 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007711/46.7, allocations: 1.363 MB / 11.42 GB, free: 35.71 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02653/46.73, allocations: 13.24 MB / 11.43 GB, free: 32.06 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0151/46.75, allocations: 0.6728 MB / 11.43 GB, free: 32.04 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002551/46.75, allocations: 416.5 kB / 11.44 GB, free: 32.04 MB / 0.9636 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: spl1.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 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: 271 * 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 (621): * Single equations (assignments): 606 * 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,6 79} Notification: Performance of prepare postOptimizeDAE: time 0.004658/46.75, allocations: 315.8 kB / 11.44 GB, free: 31.93 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005005/46.76, allocations: 1.129 MB / 11.44 GB, free: 31.3 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07382/46.83, allocations: 15.62 MB / 11.45 GB, free: 30.94 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000139/46.83, allocations: 35.47 kB / 11.45 GB, free: 30.94 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.961e-05/46.83, allocations: 0 / 11.45 GB, free: 30.94 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06193/46.89, allocations: 13.21 MB / 11.46 GB, free: 30.51 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1112/47.01, allocations: 23.15 MB / 11.49 GB, free: 29.39 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.542e-05/47.01, allocations: 6.688 kB / 11.49 GB, free: 29.39 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005599/47.01, allocations: 0.7833 MB / 11.49 GB, free: 29.37 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009699/47.02, allocations: 3.074 MB / 11.49 GB, free: 29.19 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001454/47.02, allocations: 73.78 kB / 11.49 GB, free: 29.19 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.9288/47.95, allocations: 35.84 MB / 11.53 GB, free: 114 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/47.95, allocations: 0 / 11.53 GB, free: 114 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07351/48.02, allocations: 18.23 MB / 11.54 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009829/48.03, allocations: 2.18 MB / 11.55 GB, free: 113.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005707/48.04, allocations: 6.609 kB / 11.55 GB, free: 113.3 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01468/48.05, allocations: 0.938 MB / 11.55 GB, free: 113.3 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001375/48.06, allocations: 238 kB / 11.55 GB, free: 113.3 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007703/48.06, allocations: 196 kB / 11.55 GB, free: 113.3 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.0195/48.08, allocations: 8.571 MB / 11.56 GB, free: 113 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.04147/48.12, allocations: 5.308 MB / 11.56 GB, free: 113 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (285): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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,7 78} Notification: Performance of Backend phase and start with SimCode phase: time 0.009113/48.13, allocations: 4.819 MB / 11.57 GB, free: 111.2 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.03524/48.16, allocations: 14.05 MB / 11.58 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/48.16, allocations: 4.312 kB / 11.58 GB, free: 110.9 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.01296/48.18, allocations: 4.247 MB / 11.58 GB, free: 110.7 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03303/48.21, allocations: 5.482 MB / 11.59 GB, free: 110.7 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08459/48.29, allocations: 23.55 MB / 11.61 GB, free: 107.1 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01432/48.31, allocations: 7.602 MB / 11.62 GB, free: 106.1 MB / 0.9636 GB Notification: Performance of SimCode: time 1.393e-06/48.31, allocations: 3.156 kB / 11.62 GB, free: 106.1 MB / 0.9636 GB Notification: Performance of Templates: time 1.984/50.29, allocations: 322.2 MB / 11.93 GB, free: 127.1 MB / 0.9637 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1)