Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T") [: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.6981/0.6981, allocations: 127.4 MB / 134.6 MB, free: 4.109 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.001169/0.001169, allocations: 181.3 kB / 164.4 MB, free: 6.895 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.892/1.892, allocations: 205.1 MB / 399.1 MB, free: 6.086 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.001322/0.001322, allocations: 83.33 kB / 476.3 MB, free: 8.836 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 7.694e-06/7.714e-06, allocations: 0 / 0.546 GB, free: 42.76 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2106, allocations: 76.75 MB / 0.6209 GB, free: 13.94 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.379/1.59, allocations: 415.9 MB / 1.027 GB, free: 67.57 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004023/1.59, allocations: 94 kB / 1.027 GB, free: 67.53 MB / 0.6198 GB Notification: Performance of FrontEnd: time 4.736/6.326, allocations: 1.124 GB / 2.151 GB, free: 71.04 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.0003941/6.327, allocations: 58.83 kB / 2.151 GB, free: 71.04 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.008023/6.335, allocations: 2.117 MB / 2.153 GB, free: 70.24 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/6.335, allocations: 10.94 kB / 2.153 GB, free: 70.24 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003166/6.338, allocations: 488.5 kB / 2.153 GB, free: 70.12 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007942/6.346, allocations: 2.414 MB / 2.156 GB, free: 69.75 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.372e-05/6.346, allocations: 36.38 kB / 2.156 GB, free: 69.75 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003854/6.346, allocations: 73.5 kB / 2.156 GB, free: 69.75 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002124/6.349, allocations: 0.8003 MB / 2.157 GB, free: 69.75 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/6.351, allocations: 1.134 MB / 2.158 GB, free: 69.43 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/6.351, allocations: 3.906 kB / 2.158 GB, free: 69.43 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001361/6.351, allocations: 3.375 kB / 2.158 GB, free: 69.43 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-05/6.351, allocations: 33.44 kB / 2.158 GB, free: 69.43 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01067/6.362, allocations: 7.294 MB / 2.165 GB, free: 64.93 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/6.363, allocations: 0.598 MB / 2.166 GB, free: 64.91 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/6.363, allocations: 312 kB / 2.166 GB, free: 64.89 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004885/6.368, allocations: 2.626 MB / 2.168 GB, free: 63.25 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005351/6.369, allocations: 368.1 kB / 2.169 GB, free: 63.18 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=61): time 2.565e-06/6.369, allocations: 5.562 kB / 2.169 GB, free: 63.18 MB / 0.6667 GB Notification: Performance of matching and sorting (n=61): time 0.002959/6.372, allocations: 0.9126 MB / 2.17 GB, free: 62.95 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/6.372, allocations: 186.9 kB / 2.17 GB, free: 62.73 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002872/6.375, allocations: 1.271 MB / 2.171 GB, free: 62.55 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 9.782e-05/6.375, allocations: 29.61 kB / 2.171 GB, free: 62.52 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006647/6.376, allocations: 0.6008 MB / 2.172 GB, free: 62.19 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/6.376, allocations: 213.2 kB / 2.172 GB, free: 62.05 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-05/6.376, allocations: 0 / 2.172 GB, free: 62.05 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001136/6.376, allocations: 348.9 kB / 2.172 GB, free: 61.75 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/6.377, allocations: 278.5 kB / 2.172 GB, free: 61.75 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000761/6.377, allocations: 0.7313 MB / 2.173 GB, free: 61.18 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001745/6.379, allocations: 0.5375 MB / 2.174 GB, free: 61.16 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.497e-05/6.379, allocations: 3.938 kB / 2.174 GB, free: 61.16 MB / 0.6667 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00295/6.382, allocations: 1.19 MB / 2.175 GB, free: 61.03 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.00123/6.383, allocations: 4.969 MB / 2.18 GB, free: 55.82 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.195e-05/6.383, allocations: 14.59 kB / 2.18 GB, free: 55.82 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.389e-05/6.384, allocations: 21.19 kB / 2.18 GB, free: 55.82 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/6.385, allocations: 268.6 kB / 2.18 GB, free: 55.82 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.604e-05/6.385, allocations: 23.31 kB / 2.18 GB, free: 55.82 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/6.386, allocations: 165.1 kB / 2.18 GB, free: 55.77 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/6.387, allocations: 60.39 kB / 2.18 GB, free: 55.77 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/6.387, allocations: 7.062 kB / 2.18 GB, free: 55.77 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002351/6.389, allocations: 0.9553 MB / 2.181 GB, free: 55.75 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.842e-05/6.389, allocations: 17.38 kB / 2.181 GB, free: 55.75 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/6.389, allocations: 19.59 kB / 2.181 GB, free: 55.75 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009631/6.39, allocations: 253.3 kB / 2.181 GB, free: 55.75 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.382e-05/6.39, allocations: 30.42 kB / 2.181 GB, free: 55.75 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/6.392, allocations: 130.6 kB / 2.182 GB, free: 55.71 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/6.392, allocations: 57.91 kB / 2.182 GB, free: 55.71 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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.0002926/6.392, allocations: 147.8 kB / 2.182 GB, free: 55.6 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004318/6.393, allocations: 168.3 kB / 2.182 GB, free: 55.51 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002927/6.396, allocations: 1.153 MB / 2.183 GB, free: 55.34 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/6.396, allocations: 7.172 kB / 2.183 GB, free: 55.34 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/6.396, allocations: 7.344 kB / 2.183 GB, free: 55.34 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001673/6.397, allocations: 0.9511 MB / 2.184 GB, free: 54.96 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/6.4, allocations: 1.05 MB / 2.185 GB, free: 54.78 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/6.4, allocations: 3 kB / 2.185 GB, free: 54.78 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008388/6.401, allocations: 145.3 kB / 2.185 GB, free: 54.78 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/6.401, allocations: 19.75 kB / 2.185 GB, free: 54.77 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.375e-05/6.401, allocations: 16.67 kB / 2.185 GB, free: 54.77 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009461/6.402, allocations: 1.241 MB / 2.186 GB, free: 53.58 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/6.402, allocations: 3.562 kB / 2.186 GB, free: 53.58 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002735/6.405, allocations: 1.349 MB / 2.188 GB, free: 53.3 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009873/6.406, allocations: 337.3 kB / 2.188 GB, free: 53.11 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005182/6.406, allocations: 3.281 kB / 2.188 GB, free: 53.11 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/6.408, allocations: 76.38 kB / 2.188 GB, free: 53.1 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/6.408, allocations: 53.09 kB / 2.188 GB, free: 53.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.98e-05/6.408, allocations: 29.53 kB / 2.188 GB, free: 53.1 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.001897/6.41, allocations: 0.9368 MB / 2.189 GB, free: 52.99 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.005095/6.415, allocations: 0.9942 MB / 2.19 GB, free: 52.82 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.outCon.T) * 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 (70): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.003236/6.418, allocations: 1.206 MB / 2.191 GB, free: 52.54 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.002654/6.421, allocations: 1.372 MB / 2.193 GB, free: 52.39 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/6.421, allocations: 3.25 kB / 2.193 GB, free: 52.39 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0007348/6.421, allocations: 437.6 kB / 2.193 GB, free: 52.29 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/6.425, allocations: 0.6022 MB / 2.194 GB, free: 52.28 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008448/6.434, allocations: 2.352 MB / 2.196 GB, free: 51.68 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002594/6.436, allocations: 1.567 MB / 2.197 GB, free: 50.95 MB / 0.6667 GB Notification: Performance of SimCode: time 1.392e-06/6.436, allocations: 2.719 kB / 2.197 GB, free: 50.95 MB / 0.6667 GB Notification: Performance of Templates: time 0.07352/6.51, allocations: 37.68 MB / 2.234 GB, free: 49.12 MB / 0.6667 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)