Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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: translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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/Complex 4.0.0+maint.om/package.mo): time 0.002047/0.002047, allocations: 175.9 kB / 7.46 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6009/0.6009, allocations: 133.5 MB / 141.4 MB, free: 15.8 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.142/1.142, allocations: 221.3 MB / 395 MB, free: 10.21 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.0009468/0.0009467, allocations: 97.23 kB / 477.8 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 5.901e-06/5.931e-06, allocations: 1.719 kB / 0.5528 GB, free: 88.91 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 82.3 MB / 0.6332 GB, free: 14.14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.765/0.8734, allocations: 407.4 MB / 1.031 GB, free: 196.5 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.8737, allocations: 89.92 kB / 1.031 GB, free: 196.5 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.81/3.684, allocations: 1.15 GB / 2.181 GB, free: 99.19 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001775/3.684, allocations: 57.7 kB / 2.181 GB, free: 99.18 MB / 0.698 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 0.003029/3.687, allocations: 2.142 MB / 2.183 GB, free: 98.02 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/3.687, allocations: 8.344 kB / 2.183 GB, free: 98.02 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/3.688, allocations: 391.8 kB / 2.183 GB, free: 97.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004789/3.693, allocations: 2.478 MB / 2.186 GB, free: 97.44 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.174e-05/3.693, allocations: 39.38 kB / 2.186 GB, free: 97.44 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/3.693, allocations: 79.12 kB / 2.186 GB, free: 97.44 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00151/3.695, allocations: 0.862 MB / 2.187 GB, free: 97.43 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/3.697, allocations: 1.167 MB / 2.188 GB, free: 97.18 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/3.697, allocations: 1.469 kB / 2.188 GB, free: 97.18 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.454e-05/3.697, allocations: 2.656 kB / 2.188 GB, free: 97.18 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.084e-05/3.697, allocations: 51.62 kB / 2.188 GB, free: 97.17 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007879/3.705, allocations: 7.717 MB / 2.196 GB, free: 91.65 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006463/3.705, allocations: 472.6 kB / 2.196 GB, free: 91.46 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005325/3.706, allocations: 391.5 kB / 2.196 GB, free: 91.31 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003874/3.71, allocations: 2.521 MB / 2.199 GB, free: 89.54 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005004/3.71, allocations: 412.6 kB / 2.199 GB, free: 89.34 MB / 0.698 GB Notification: Performance of pre-optimization done (n=70): time 2.164e-06/3.71, allocations: 1.719 kB / 2.199 GB, free: 89.34 MB / 0.698 GB Notification: Performance of matching and sorting (n=70): time 0.001675/3.712, allocations: 0.8244 MB / 2.2 GB, free: 89.03 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/3.712, allocations: 168.2 kB / 2.2 GB, free: 88.84 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/3.713, allocations: 1.186 MB / 2.201 GB, free: 88.34 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.397e-05/3.713, allocations: 28.14 kB / 2.201 GB, free: 88.31 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003399/3.714, allocations: 0.5897 MB / 2.202 GB, free: 87.9 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001866/3.714, allocations: 239.7 kB / 2.202 GB, free: 87.71 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.006e-05/3.714, allocations: 1.312 kB / 2.202 GB, free: 87.71 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.815e-05/3.714, allocations: 342.7 kB / 2.203 GB, free: 87.39 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00036/3.714, allocations: 267.1 kB / 2.203 GB, free: 87.29 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/3.715, allocations: 0.645 MB / 2.203 GB, free: 86.7 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/3.716, allocations: 469.8 kB / 2.204 GB, free: 86.57 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/3.716, allocations: 3.312 kB / 2.204 GB, free: 86.57 MB / 0.698 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002064/3.718, allocations: 1.091 MB / 2.205 GB, free: 86.21 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006073/3.719, allocations: 3.962 MB / 2.209 GB, free: 81.97 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/3.719, allocations: 8.875 kB / 2.209 GB, free: 81.97 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.109e-05/3.719, allocations: 20.11 kB / 2.209 GB, free: 81.97 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009737/3.72, allocations: 245.6 kB / 2.209 GB, free: 81.95 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/3.72, allocations: 25.53 kB / 2.209 GB, free: 81.94 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/3.721, allocations: 149.8 kB / 2.209 GB, free: 81.89 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-05/3.721, allocations: 57.92 kB / 2.209 GB, free: 81.88 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.953e-06/3.721, allocations: 9.438 kB / 2.209 GB, free: 81.88 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001764/3.723, allocations: 0.8593 MB / 2.21 GB, free: 81.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/3.723, allocations: 10.34 kB / 2.21 GB, free: 81.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/3.723, allocations: 18.8 kB / 2.21 GB, free: 81.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009327/3.724, allocations: 251 kB / 2.21 GB, free: 81.59 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.8e-05/3.724, allocations: 22.44 kB / 2.21 GB, free: 81.59 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/3.725, allocations: 121.9 kB / 2.211 GB, free: 81.56 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.025e-05/3.725, allocations: 54.72 kB / 2.211 GB, free: 81.55 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.0001803/3.725, allocations: 143.3 kB / 2.211 GB, free: 81.41 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002058/3.725, allocations: 165.2 kB / 2.211 GB, free: 81.33 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00214/3.727, allocations: 1.056 MB / 2.212 GB, free: 80.95 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/3.727, allocations: 8.25 kB / 2.212 GB, free: 80.95 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/3.728, allocations: 1.406 kB / 2.212 GB, free: 80.95 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001327/3.729, allocations: 0.7065 MB / 2.213 GB, free: 80.68 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0035/3.732, allocations: 2.399 MB / 2.215 GB, free: 79.52 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/3.732, allocations: 1.875 kB / 2.215 GB, free: 79.52 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007371/3.733, allocations: 163 kB / 2.215 GB, free: 79.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001304/3.733, allocations: 35.83 kB / 2.215 GB, free: 79.48 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.135e-05/3.733, allocations: 20.66 kB / 2.215 GB, free: 79.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006361/3.734, allocations: 1.257 MB / 2.216 GB, free: 78.24 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/3.734, allocations: 2.469 kB / 2.216 GB, free: 78.24 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002051/3.736, allocations: 1.539 MB / 2.218 GB, free: 77.27 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004614/3.737, allocations: 362.6 kB / 2.218 GB, free: 76.97 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002182/3.737, allocations: 8.719 kB / 2.218 GB, free: 76.97 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009144/3.738, allocations: 77.98 kB / 2.218 GB, free: 76.95 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/3.738, allocations: 63.31 kB / 2.218 GB, free: 76.91 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.942e-05/3.738, allocations: 40 kB / 2.218 GB, free: 76.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.001038/3.739, allocations: 0.8921 MB / 2.219 GB, free: 76.43 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0033/3.742, allocations: 1.056 MB / 2.22 GB, free: 76.16 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.00135/3.744, allocations: 1.09 MB / 2.221 GB, free: 75.34 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001453/3.745, allocations: 1.302 MB / 2.223 GB, free: 74.03 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/3.745, allocations: 3.938 kB / 2.223 GB, free: 74.03 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005365/3.746, allocations: 484.1 kB / 2.223 GB, free: 73.55 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/3.748, allocations: 0.707 MB / 2.224 GB, free: 72.89 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003539/3.752, allocations: 2.422 MB / 2.226 GB, free: 70.54 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009614/3.753, allocations: 1.588 MB / 2.228 GB, free: 68.95 MB / 0.698 GB Notification: Performance of SimCode: time 2.51e-07/3.753, allocations: 0 / 2.228 GB, free: 68.95 MB / 0.698 GB Notification: Performance of Templates: time 0.04589/3.799, allocations: 38.48 MB / 2.265 GB, free: 31.58 MB / 0.698 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)