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: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) [: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.7423/0.7423, allocations: 127.4 MB / 134.6 MB, free: 4.027 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.001426/0.001426, allocations: 193.2 kB / 164.4 MB, free: 6.859 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.947/1.947, allocations: 205.1 MB / 399.1 MB, free: 6.059 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.001041/0.00104, allocations: 86.88 kB / 476.3 MB, free: 8.812 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4022/0.4033, allocations: 82.88 MB / 0.5461 GB, free: 42.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.6166, allocations: 76.76 MB / 0.621 GB, free: 13.82 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.337/1.954, allocations: 408.8 MB / 1.02 GB, free: 74.25 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003755/1.954, allocations: 100.1 kB / 1.02 GB, free: 74.2 MB / 0.6198 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 4.671/6.625, allocations: 1.095 GB / 2.115 GB, free: 13.16 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/6.625, allocations: 8 kB / 2.115 GB, free: 13.15 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002245/6.627, allocations: 400.9 kB / 2.115 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01262/6.64, allocations: 4.889 MB / 2.12 GB, free: 7.895 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.009e-05/6.64, allocations: 40 kB / 2.12 GB, free: 7.855 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004243/6.641, allocations: 83.91 kB / 2.12 GB, free: 7.773 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002186/6.643, allocations: 0.8875 MB / 2.121 GB, free: 6.883 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/6.645, allocations: 1.219 MB / 2.122 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.913e-05/6.645, allocations: 0 / 2.122 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/6.645, allocations: 7.984 kB / 2.122 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.99e-05/6.645, allocations: 36 kB / 2.122 GB, free: 5.508 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4339/7.079, allocations: 8.039 MB / 2.13 GB, free: 127.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009532/7.08, allocations: 0.6483 MB / 2.131 GB, free: 127.7 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004224/7.081, allocations: 343.5 kB / 2.131 GB, free: 127.7 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002995/7.084, allocations: 1.875 MB / 2.133 GB, free: 126.7 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005435/7.084, allocations: 408.4 kB / 2.133 GB, free: 126.6 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=69): time 2.816e-06/7.084, allocations: 0 / 2.133 GB, free: 126.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=69): time 0.002595/7.087, allocations: 0.9313 MB / 2.134 GB, free: 126.5 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.908e-05/7.087, allocations: 194.7 kB / 2.135 GB, free: 126.3 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001995/7.089, allocations: 1.219 MB / 2.136 GB, free: 126.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.7e-05/7.089, allocations: 29.64 kB / 2.136 GB, free: 126.1 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005086/7.09, allocations: 0.6127 MB / 2.136 GB, free: 125.9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/7.09, allocations: 233.4 kB / 2.137 GB, free: 125.7 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-05/7.09, allocations: 0 / 2.137 GB, free: 125.7 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.747e-05/7.09, allocations: 352.2 kB / 2.137 GB, free: 125.4 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004456/7.09, allocations: 302.8 kB / 2.137 GB, free: 125.4 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006535/7.091, allocations: 0.7046 MB / 2.138 GB, free: 124.9 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/7.092, allocations: 0.4991 MB / 2.138 GB, free: 124.9 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/7.092, allocations: 0 / 2.138 GB, free: 124.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002385/7.095, allocations: 1.174 MB / 2.14 GB, free: 124.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008628/7.096, allocations: 4.236 MB / 2.144 GB, free: 120.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.223e-05/7.096, allocations: 17.42 kB / 2.144 GB, free: 120.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.558e-05/7.096, allocations: 15.19 kB / 2.144 GB, free: 120.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/7.097, allocations: 283.4 kB / 2.144 GB, free: 120.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.885e-05/7.097, allocations: 17.91 kB / 2.144 GB, free: 120.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/7.099, allocations: 176.1 kB / 2.144 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/7.099, allocations: 56.42 kB / 2.144 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/7.099, allocations: 6.656 kB / 2.144 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002213/7.101, allocations: 0.9306 MB / 2.145 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.268e-05/7.101, allocations: 16.58 kB / 2.145 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/7.101, allocations: 17.38 kB / 2.145 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/7.102, allocations: 262 kB / 2.145 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/7.102, allocations: 24.53 kB / 2.145 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/7.104, allocations: 144.8 kB / 2.146 GB, free: 120.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/7.104, allocations: 59.05 kB / 2.146 GB, free: 120.3 MB / 0.6823 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.0003772/7.104, allocations: 143 kB / 2.146 GB, free: 120.2 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/7.105, allocations: 170.3 kB / 2.146 GB, free: 120.1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002708/7.107, allocations: 1.129 MB / 2.147 GB, free: 119.9 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/7.108, allocations: 9.438 kB / 2.147 GB, free: 119.9 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/7.108, allocations: 0 / 2.147 GB, free: 119.9 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001434/7.109, allocations: 0.7918 MB / 2.148 GB, free: 119.7 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/7.112, allocations: 1.133 MB / 2.149 GB, free: 119.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/7.112, allocations: 3.062 kB / 2.149 GB, free: 119.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009203/7.113, allocations: 164.4 kB / 2.149 GB, free: 119.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001842/7.113, allocations: 21.88 kB / 2.149 GB, free: 119.5 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.54e-05/7.113, allocations: 15.36 kB / 2.149 GB, free: 119.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009804/7.114, allocations: 1.239 MB / 2.15 GB, free: 118.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/7.114, allocations: 2.312 kB / 2.15 GB, free: 118.4 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002576/7.116, allocations: 1.386 MB / 2.152 GB, free: 118.1 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003279/7.12, allocations: 2.248 MB / 2.154 GB, free: 117.4 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/7.121, allocations: 357.3 kB / 2.154 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002856/7.121, allocations: 0 / 2.154 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/7.122, allocations: 103.4 kB / 2.154 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/7.123, allocations: 48.94 kB / 2.154 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-05/7.123, allocations: 33.77 kB / 2.154 GB, free: 117.2 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.001692/7.124, allocations: 0.9059 MB / 2.155 GB, free: 117.1 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.006558/7.131, allocations: 1.388 MB / 2.157 GB, free: 117.1 MB / 0.6823 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.002664/7.134, allocations: 1.152 MB / 2.158 GB, free: 116.9 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002941/7.137, allocations: 1.437 MB / 2.159 GB, free: 116.7 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/7.137, allocations: 5.625 kB / 2.159 GB, free: 116.7 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0007652/7.137, allocations: 466.7 kB / 2.16 GB, free: 116.6 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003898/7.141, allocations: 0.714 MB / 2.16 GB, free: 116.6 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005683/7.147, allocations: 2.399 MB / 2.163 GB, free: 116 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001417/7.148, allocations: 1.627 MB / 2.164 GB, free: 115.3 MB / 0.6823 GB Notification: Performance of SimCode: time 1.102e-06/7.148, allocations: 0 / 2.164 GB, free: 115.3 MB / 0.6823 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)