Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.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.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u") [: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.6956/0.6956, allocations: 127.4 MB / 134.6 MB, free: 4.098 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.001411/0.001412, allocations: 181.2 kB / 164.4 MB, free: 6.906 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.931/1.931, allocations: 205.1 MB / 399.1 MB, free: 6.164 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.001271/0.001271, allocations: 81.64 kB / 476.3 MB, free: 8.918 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 9.327e-06/9.367e-06, allocations: 0 / 0.546 GB, free: 42.78 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2072, allocations: 76.74 MB / 0.6209 GB, free: 13.96 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.384/1.591, allocations: 408.9 MB / 1.02 GB, free: 71.7 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/1.592, allocations: 94.62 kB / 1.02 GB, free: 71.65 MB / 0.6198 GB Notification: Performance of FrontEnd: time 4.175/5.766, allocations: 1.093 GB / 2.113 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0004426/5.767, allocations: 62 kB / 2.113 GB, free: 11.14 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.00736/5.774, allocations: 2.21 MB / 2.115 GB, free: 8.859 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/5.774, allocations: 8.031 kB / 2.115 GB, free: 8.852 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002534/5.777, allocations: 400.9 kB / 2.115 GB, free: 8.457 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01447/5.791, allocations: 4.884 MB / 2.12 GB, free: 3.516 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/5.791, allocations: 44 kB / 2.12 GB, free: 3.473 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005638/5.792, allocations: 83.91 kB / 2.12 GB, free: 3.391 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002687/5.795, allocations: 0.8797 MB / 2.121 GB, free: 2.508 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002888/5.798, allocations: 1.219 MB / 2.122 GB, free: 1.176 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/5.798, allocations: 5.438 kB / 2.122 GB, free: 1.172 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001885/5.798, allocations: 7.984 kB / 2.122 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.64e-05/5.798, allocations: 35.94 kB / 2.122 GB, free: 1.129 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01477/5.813, allocations: 8.048 MB / 2.13 GB, free: 8.555 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/5.814, allocations: 0.6466 MB / 2.131 GB, free: 7.902 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005923/5.815, allocations: 350.6 kB / 2.131 GB, free: 7.559 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004612/5.819, allocations: 1.873 MB / 2.133 GB, free: 5.508 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007474/5.82, allocations: 406 kB / 2.133 GB, free: 5.094 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=69): time 3.898e-06/5.82, allocations: 0 / 2.133 GB, free: 5.094 MB / 0.6667 GB Notification: Performance of matching and sorting (n=69): time 0.003199/5.823, allocations: 0.937 MB / 2.134 GB, free: 4.125 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/5.824, allocations: 192.6 kB / 2.135 GB, free: 3.895 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003112/5.827, allocations: 1.219 MB / 2.136 GB, free: 2.68 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001415/5.827, allocations: 29.7 kB / 2.136 GB, free: 2.645 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009233/5.828, allocations: 0.6105 MB / 2.136 GB, free: 2.023 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003795/5.828, allocations: 240.5 kB / 2.137 GB, free: 1.785 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.022e-05/5.828, allocations: 0 / 2.137 GB, free: 1.785 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001877/5.828, allocations: 345.9 kB / 2.137 GB, free: 1.441 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005924/5.829, allocations: 306.5 kB / 2.137 GB, free: 1.141 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009998/5.83, allocations: 0.7015 MB / 2.138 GB, free: 256 kB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4427/6.273, allocations: 0.4948 MB / 2.138 GB, free: 117.2 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-05/6.273, allocations: 3.438 kB / 2.138 GB, free: 117.2 MB / 0.6667 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00321/6.276, allocations: 1.177 MB / 2.14 GB, free: 117.1 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.00113/6.277, allocations: 4.232 MB / 2.144 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.588e-05/6.277, allocations: 15 kB / 2.144 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.865e-05/6.277, allocations: 18.09 kB / 2.144 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/6.278, allocations: 280.1 kB / 2.144 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.661e-05/6.278, allocations: 27.81 kB / 2.144 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/6.281, allocations: 171.6 kB / 2.144 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/6.281, allocations: 59.06 kB / 2.144 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/6.281, allocations: 3.656 kB / 2.144 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001976/6.283, allocations: 0.9319 MB / 2.145 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/6.283, allocations: 17.11 kB / 2.145 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/6.283, allocations: 17.72 kB / 2.145 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000954/6.284, allocations: 258.8 kB / 2.145 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/6.284, allocations: 23.58 kB / 2.145 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/6.285, allocations: 144.5 kB / 2.146 GB, free: 112.7 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.935e-05/6.285, allocations: 59.06 kB / 2.146 GB, free: 112.7 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002482/6.286, allocations: 144.2 kB / 2.146 GB, free: 112.6 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002408/6.286, allocations: 166.3 kB / 2.146 GB, free: 112.6 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002407/6.288, allocations: 1.125 MB / 2.147 GB, free: 112.4 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/6.288, allocations: 7.062 kB / 2.147 GB, free: 112.4 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/6.288, allocations: 6.594 kB / 2.147 GB, free: 112.4 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001269/6.29, allocations: 0.7881 MB / 2.148 GB, free: 112.2 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/6.291, allocations: 1.134 MB / 2.149 GB, free: 112 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/6.291, allocations: 3.281 kB / 2.149 GB, free: 112 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008911/6.292, allocations: 167.3 kB / 2.149 GB, free: 112 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001344/6.293, allocations: 24.33 kB / 2.149 GB, free: 112 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.572e-05/6.293, allocations: 16.53 kB / 2.149 GB, free: 112 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007558/6.293, allocations: 1.246 MB / 2.15 GB, free: 110.8 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/6.293, allocations: 0 / 2.15 GB, free: 110.8 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001996/6.295, allocations: 1.379 MB / 2.152 GB, free: 110.6 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006666/6.296, allocations: 352.9 kB / 2.152 GB, free: 110.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002309/6.296, allocations: 3.188 kB / 2.152 GB, free: 110.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009731/6.297, allocations: 105.9 kB / 2.152 GB, free: 110.4 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/6.297, allocations: 46.48 kB / 2.152 GB, free: 110.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.635e-05/6.297, allocations: 30.84 kB / 2.152 GB, free: 110.4 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.001153/6.299, allocations: 0.9132 MB / 2.153 GB, free: 110.3 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.003439/6.302, allocations: 1.081 MB / 2.154 GB, free: 110.2 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001839/6.304, allocations: 1.13 MB / 2.155 GB, free: 110 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002021/6.306, allocations: 1.443 MB / 2.157 GB, free: 109.9 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/6.306, allocations: 0 / 2.157 GB, free: 109.9 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005895/6.307, allocations: 468.8 kB / 2.157 GB, free: 109.8 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003267/6.31, allocations: 0.7195 MB / 2.158 GB, free: 109.8 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004996/6.315, allocations: 2.398 MB / 2.16 GB, free: 109.1 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/6.316, allocations: 1.605 MB / 2.162 GB, free: 108.4 MB / 0.6667 GB Notification: Performance of SimCode: time 1.032e-06/6.316, allocations: 0 / 2.162 GB, free: 108.4 MB / 0.6667 GB Notification: Performance of Templates: time 0.07037/6.387, allocations: 40.28 MB / 2.201 GB, free: 107.2 MB / 0.6667 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)