Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_IDEAS_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/Complex 4.0.0+maint.om/package.mo): time 0.00546/0.00546, allocations: 179.5 kB / 7.458 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7973/0.7973, allocations: 133.5 MB / 141.4 MB, free: 15.74 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.693/1.693, allocations: 221.3 MB / 395 MB, free: 10.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 94.53 kB / 477.8 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5137/0.5148, allocations: 88.43 MB / 0.5529 GB, free: 88.99 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.7132, allocations: 82.29 MB / 0.6333 GB, free: 14.04 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.237/1.95, allocations: 407.4 MB / 1.031 GB, free: 226.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/1.951, allocations: 91.95 kB / 1.031 GB, free: 226.5 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 4.691/6.642, allocations: 1.152 GB / 2.183 GB, free: 96.34 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/6.642, allocations: 10.66 kB / 2.183 GB, free: 96.34 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001682/6.644, allocations: 387.5 kB / 2.183 GB, free: 96.21 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005832/6.65, allocations: 2.482 MB / 2.186 GB, free: 95.75 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/6.65, allocations: 41.09 kB / 2.186 GB, free: 95.75 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001764/6.65, allocations: 80.31 kB / 2.186 GB, free: 95.75 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001635/6.651, allocations: 0.8687 MB / 2.187 GB, free: 95.74 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/6.653, allocations: 1.155 MB / 2.188 GB, free: 95.49 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.415e-05/6.653, allocations: 8.031 kB / 2.188 GB, free: 95.49 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/6.653, allocations: 0 / 2.188 GB, free: 95.49 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.886e-05/6.654, allocations: 45.91 kB / 2.188 GB, free: 95.48 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01031/6.664, allocations: 7.715 MB / 2.196 GB, free: 90.98 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007383/6.665, allocations: 472 kB / 2.196 GB, free: 90.96 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006465/6.665, allocations: 391.7 kB / 2.196 GB, free: 90.95 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005333/6.671, allocations: 2.517 MB / 2.199 GB, free: 89.67 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006584/6.671, allocations: 405 kB / 2.199 GB, free: 89.59 MB / 0.698 GB Notification: Performance of pre-optimization done (n=70): time 2.996e-06/6.671, allocations: 0 / 2.199 GB, free: 89.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=70): time 0.002313/6.674, allocations: 0.8282 MB / 2.2 GB, free: 89.45 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/6.674, allocations: 170.3 kB / 2.2 GB, free: 89.26 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002004/6.676, allocations: 1.185 MB / 2.201 GB, free: 89.1 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.059e-05/6.676, allocations: 29.48 kB / 2.201 GB, free: 89.07 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006044/6.676, allocations: 0.5833 MB / 2.202 GB, free: 88.75 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002613/6.677, allocations: 240.6 kB / 2.202 GB, free: 88.59 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.233e-05/6.677, allocations: 2.594 kB / 2.202 GB, free: 88.59 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001071/6.677, allocations: 344.7 kB / 2.203 GB, free: 88.29 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/6.677, allocations: 274.4 kB / 2.203 GB, free: 88.29 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007576/6.678, allocations: 0.6356 MB / 2.203 GB, free: 87.84 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/6.68, allocations: 475 kB / 2.204 GB, free: 87.82 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/6.68, allocations: 3.75 kB / 2.204 GB, free: 87.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002994/6.683, allocations: 1.09 MB / 2.205 GB, free: 87.69 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008936/6.684, allocations: 3.959 MB / 2.209 GB, free: 83.53 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/6.684, allocations: 10.66 kB / 2.209 GB, free: 83.53 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.59e-05/6.684, allocations: 19.81 kB / 2.209 GB, free: 83.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/6.685, allocations: 257.1 kB / 2.209 GB, free: 83.52 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.811e-05/6.685, allocations: 23.77 kB / 2.209 GB, free: 83.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001673/6.686, allocations: 145.2 kB / 2.209 GB, free: 83.48 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/6.687, allocations: 49.61 kB / 2.209 GB, free: 83.48 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/6.687, allocations: 4.062 kB / 2.209 GB, free: 83.48 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002251/6.689, allocations: 0.8669 MB / 2.21 GB, free: 83.42 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/6.689, allocations: 10.19 kB / 2.21 GB, free: 83.42 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/6.689, allocations: 16.53 kB / 2.21 GB, free: 83.42 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/6.69, allocations: 251.9 kB / 2.21 GB, free: 83.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.743e-05/6.69, allocations: 18.66 kB / 2.21 GB, free: 83.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/6.692, allocations: 137.6 kB / 2.211 GB, free: 83.36 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/6.692, allocations: 57.7 kB / 2.211 GB, free: 83.36 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.0003163/6.692, allocations: 133.1 kB / 2.211 GB, free: 83.23 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/6.692, allocations: 169.2 kB / 2.211 GB, free: 83.14 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002649/6.695, allocations: 1.049 MB / 2.212 GB, free: 83.03 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/6.695, allocations: 12.56 kB / 2.212 GB, free: 83.03 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/6.695, allocations: 0.875 kB / 2.212 GB, free: 83.03 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001492/6.697, allocations: 0.7058 MB / 2.213 GB, free: 82.94 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004773/6.701, allocations: 2.403 MB / 2.215 GB, free: 81.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/6.701, allocations: 3.938 kB / 2.215 GB, free: 81.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007918/6.702, allocations: 159.5 kB / 2.215 GB, free: 81.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001784/6.702, allocations: 35.88 kB / 2.215 GB, free: 81.77 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/6.702, allocations: 15.33 kB / 2.215 GB, free: 81.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008549/6.703, allocations: 1.264 MB / 2.216 GB, free: 80.52 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/6.703, allocations: 3.75 kB / 2.216 GB, free: 80.52 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002712/6.706, allocations: 1.54 MB / 2.218 GB, free: 79.68 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003278/6.709, allocations: 2.398 MB / 2.22 GB, free: 78.23 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009301/6.71, allocations: 361.9 kB / 2.221 GB, free: 77.97 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002446/6.71, allocations: 3.844 kB / 2.221 GB, free: 77.97 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/6.712, allocations: 84.28 kB / 2.221 GB, free: 77.97 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/6.712, allocations: 60.98 kB / 2.221 GB, free: 77.96 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.191e-05/6.712, allocations: 40.44 kB / 2.221 GB, free: 77.95 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.001511/6.713, allocations: 0.889 MB / 2.222 GB, free: 77.57 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.007123/6.72, allocations: 1.363 MB / 2.223 GB, free: 77.01 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[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 (82): * Single equations (assignments): 74 * 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.002457/6.723, allocations: 1.104 MB / 2.224 GB, free: 76.66 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003004/6.726, allocations: 1.3 MB / 2.225 GB, free: 76.16 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/6.726, allocations: 5.375 kB / 2.225 GB, free: 76.15 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009884/6.727, allocations: 485.5 kB / 2.226 GB, free: 75.92 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005484/6.732, allocations: 0.706 MB / 2.226 GB, free: 75.78 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/6.743, allocations: 2.416 MB / 2.229 GB, free: 74.84 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003353/6.747, allocations: 1.602 MB / 2.23 GB, free: 74.07 MB / 0.698 GB Notification: Performance of SimCode: time 1.282e-06/6.747, allocations: 0 / 2.23 GB, free: 74.07 MB / 0.698 GB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)