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: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="IDEAS_dev_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.003481/0.003481, allocations: 183.6 kB / 7.46 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8021/0.8021, allocations: 133.5 MB / 141.4 MB, free: 15.64 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.641/1.641, allocations: 221.3 MB / 395 MB, free: 10.18 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.001058/0.001059, allocations: 106.5 kB / 477.8 MB, free: 10.84 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4288/0.4299, allocations: 88.42 MB / 0.5529 GB, free: 88.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.5927, allocations: 82.3 MB / 0.6333 GB, free: 13.98 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.155/1.748, allocations: 407.4 MB / 1.031 GB, free: 198.4 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/1.748, allocations: 91.2 kB / 1.031 GB, free: 198.4 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.263/6.011, allocations: 1.152 GB / 2.183 GB, free: 94.27 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/6.011, allocations: 9.844 kB / 2.183 GB, free: 94.27 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002922/6.014, allocations: 392.3 kB / 2.183 GB, free: 94.14 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009399/6.024, allocations: 2.481 MB / 2.186 GB, free: 93.68 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.875e-05/6.024, allocations: 38.94 kB / 2.186 GB, free: 93.68 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003081/6.024, allocations: 84.36 kB / 2.186 GB, free: 93.68 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002334/6.027, allocations: 0.8603 MB / 2.187 GB, free: 93.67 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002796/6.029, allocations: 1.16 MB / 2.188 GB, free: 93.41 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.965e-05/6.029, allocations: 7.734 kB / 2.188 GB, free: 93.41 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/6.03, allocations: 2.734 kB / 2.188 GB, free: 93.41 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001208/6.03, allocations: 53.14 kB / 2.188 GB, free: 93.41 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01516/6.045, allocations: 7.71 MB / 2.196 GB, free: 88.9 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008907/6.046, allocations: 477.3 kB / 2.196 GB, free: 88.88 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007786/6.047, allocations: 390.1 kB / 2.196 GB, free: 88.86 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005852/6.052, allocations: 2.518 MB / 2.199 GB, free: 87.59 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007553/6.053, allocations: 406.1 kB / 2.199 GB, free: 87.51 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=70): time 7.073e-06/6.053, allocations: 2.25 kB / 2.199 GB, free: 87.51 MB / 0.7136 GB Notification: Performance of matching and sorting (n=70): time 0.00265/6.056, allocations: 0.8266 MB / 2.2 GB, free: 87.24 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/6.056, allocations: 162.8 kB / 2.2 GB, free: 87.05 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/6.058, allocations: 1.194 MB / 2.201 GB, free: 86.55 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 9.155e-05/6.058, allocations: 28.48 kB / 2.201 GB, free: 86.52 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006238/6.059, allocations: 0.5871 MB / 2.202 GB, free: 86.11 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002865/6.059, allocations: 232.6 kB / 2.202 GB, free: 85.93 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.434e-05/6.059, allocations: 1 kB / 2.202 GB, free: 85.93 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.967e-05/6.059, allocations: 341.4 kB / 2.203 GB, free: 85.61 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005048/6.06, allocations: 276.6 kB / 2.203 GB, free: 85.5 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007268/6.061, allocations: 0.6407 MB / 2.203 GB, free: 84.91 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/6.062, allocations: 473.4 kB / 2.204 GB, free: 84.77 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/6.062, allocations: 3.469 kB / 2.204 GB, free: 84.77 MB / 0.7136 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002969/6.065, allocations: 1.091 MB / 2.205 GB, free: 84.33 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.001263/6.066, allocations: 3.96 MB / 2.209 GB, free: 80.08 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.735e-05/6.066, allocations: 12.84 kB / 2.209 GB, free: 80.08 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.402e-05/6.066, allocations: 16.25 kB / 2.209 GB, free: 80.08 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/6.068, allocations: 253 kB / 2.209 GB, free: 80.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-05/6.068, allocations: 23.42 kB / 2.209 GB, free: 80.01 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/6.07, allocations: 147.3 kB / 2.209 GB, free: 79.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/6.07, allocations: 59.47 kB / 2.209 GB, free: 79.93 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/6.07, allocations: 2.219 kB / 2.209 GB, free: 79.93 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002645/6.073, allocations: 0.8637 MB / 2.21 GB, free: 79.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/6.073, allocations: 9.5 kB / 2.21 GB, free: 79.55 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/6.073, allocations: 18.22 kB / 2.21 GB, free: 79.55 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/6.074, allocations: 253.4 kB / 2.21 GB, free: 79.48 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.794e-05/6.074, allocations: 24.55 kB / 2.21 GB, free: 79.47 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002085/6.076, allocations: 124.3 kB / 2.211 GB, free: 79.42 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/6.077, allocations: 58.17 kB / 2.211 GB, free: 79.41 MB / 0.7136 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.0004309/6.077, allocations: 136.9 kB / 2.211 GB, free: 79.27 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007101/6.078, allocations: 169.3 kB / 2.211 GB, free: 79.18 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/6.081, allocations: 1.048 MB / 2.212 GB, free: 78.63 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.969e-05/6.081, allocations: 16.64 kB / 2.212 GB, free: 78.62 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.698e-05/6.081, allocations: 2.688 kB / 2.212 GB, free: 78.62 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001889/6.083, allocations: 0.7 MB / 2.213 GB, free: 78.26 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008069/6.091, allocations: 2.398 MB / 2.215 GB, free: 76.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/6.091, allocations: 1.812 kB / 2.215 GB, free: 76.63 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008719/6.092, allocations: 171 kB / 2.215 GB, free: 76.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002413/6.092, allocations: 30.41 kB / 2.215 GB, free: 76.57 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.074e-05/6.093, allocations: 15.48 kB / 2.215 GB, free: 76.56 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001099/6.094, allocations: 1.256 MB / 2.216 GB, free: 75.28 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.889e-06/6.094, allocations: 9.047 kB / 2.216 GB, free: 75.28 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003545/6.097, allocations: 1.535 MB / 2.218 GB, free: 74.32 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004373/6.102, allocations: 2.406 MB / 2.22 GB, free: 72.24 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/6.103, allocations: 366.5 kB / 2.221 GB, free: 71.86 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007563/6.104, allocations: 8 kB / 2.221 GB, free: 71.85 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001665/6.106, allocations: 84.75 kB / 2.221 GB, free: 71.78 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/6.106, allocations: 52.48 kB / 2.221 GB, free: 71.72 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/6.106, allocations: 39.97 kB / 2.221 GB, free: 71.68 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.002363/6.108, allocations: 0.9022 MB / 2.222 GB, free: 70.79 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.008555/6.117, allocations: 1.357 MB / 2.223 GB, free: 69.43 MB / 0.7136 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.003195/6.12, allocations: 1.102 MB / 2.224 GB, free: 68.52 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002899/6.123, allocations: 1.3 MB / 2.225 GB, free: 67.21 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/6.123, allocations: 0 / 2.225 GB, free: 67.21 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0009226/6.124, allocations: 487.2 kB / 2.226 GB, free: 66.73 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004541/6.128, allocations: 0.7023 MB / 2.226 GB, free: 66.07 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007538/6.136, allocations: 2.418 MB / 2.229 GB, free: 63.72 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002142/6.138, allocations: 1.603 MB / 2.23 GB, free: 62.12 MB / 0.7136 GB Notification: Performance of SimCode: time 1.583e-06/6.138, allocations: 0 / 2.23 GB, free: 62.12 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)