Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_8_Buildings_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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.67/1.67, allocations: 289.8 MB / 297.1 MB, free: 6.68 MB / 234.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: 177.3 kB / 366.3 MB, free: 2.004 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.663/1.663, allocations: 205.1 MB / 0.6256 GB, free: 5.836 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 88.17 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.308/0.3091, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7255/1.035, allocations: 116.3 MB / 0.9726 GB, free: 68.21 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.048/2.082, allocations: 448.2 MB / 1.41 GB, free: 37.79 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/2.083, allocations: 93.08 kB / 1.41 GB, free: 37.74 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 3.892/5.974, allocations: 1.136 GB / 2.547 GB, free: 111.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/5.974, allocations: 8 kB / 2.547 GB, free: 111.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001834/5.976, allocations: 397.4 kB / 2.547 GB, free: 111 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005899/5.982, allocations: 2.496 MB / 2.55 GB, free: 108.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.261e-05/5.982, allocations: 44 kB / 2.55 GB, free: 108.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000182/5.982, allocations: 79.91 kB / 2.55 GB, free: 108.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001607/5.984, allocations: 0.864 MB / 2.551 GB, free: 107.5 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/5.986, allocations: 1.188 MB / 2.552 GB, free: 106.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/5.986, allocations: 12.45 kB / 2.552 GB, free: 106.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.893e-05/5.986, allocations: 0 / 2.552 GB, free: 106.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-05/5.986, allocations: 36 kB / 2.552 GB, free: 106.2 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008283/5.994, allocations: 7.661 MB / 2.559 GB, free: 98.15 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000927/5.995, allocations: 0.6645 MB / 2.56 GB, free: 97.48 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/5.996, allocations: 350.8 kB / 2.56 GB, free: 97.14 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003134/5.999, allocations: 2.16 MB / 2.562 GB, free: 94.79 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005257/5.999, allocations: 379 kB / 2.563 GB, free: 94.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=72): time 3.487e-06/5.999, allocations: 0 / 2.563 GB, free: 94.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=72): time 0.002032/6.001, allocations: 0.8539 MB / 2.564 GB, free: 93.54 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/6.001, allocations: 162.9 kB / 2.564 GB, free: 93.34 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/6.003, allocations: 1.202 MB / 2.565 GB, free: 92.14 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.472e-05/6.003, allocations: 33.7 kB / 2.565 GB, free: 92.11 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000429/6.003, allocations: 0.5796 MB / 2.565 GB, free: 91.52 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002151/6.004, allocations: 248.3 kB / 2.566 GB, free: 91.27 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.531e-05/6.004, allocations: 0 / 2.566 GB, free: 91.27 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.666e-05/6.004, allocations: 345.9 kB / 2.566 GB, free: 90.93 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004106/6.004, allocations: 302.2 kB / 2.566 GB, free: 90.62 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005367/6.005, allocations: 0.6704 MB / 2.567 GB, free: 89.79 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/6.006, allocations: 498.8 kB / 2.567 GB, free: 89.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/6.006, allocations: 4 kB / 2.567 GB, free: 89.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.0021/6.008, allocations: 1.153 MB / 2.569 GB, free: 88.14 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006301/6.009, allocations: 3.697 MB / 2.572 GB, free: 84.12 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/6.009, allocations: 12 kB / 2.572 GB, free: 84.11 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/6.009, allocations: 19.94 kB / 2.572 GB, free: 84.09 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/6.01, allocations: 259.7 kB / 2.572 GB, free: 83.84 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/6.01, allocations: 15.94 kB / 2.573 GB, free: 83.82 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/6.011, allocations: 174.8 kB / 2.573 GB, free: 83.65 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/6.011, allocations: 55.5 kB / 2.573 GB, free: 83.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.877e-06/6.011, allocations: 7.938 kB / 2.573 GB, free: 83.59 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001833/6.013, allocations: 0.9305 MB / 2.574 GB, free: 82.66 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/6.013, allocations: 8 kB / 2.574 GB, free: 82.65 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/6.013, allocations: 16 kB / 2.574 GB, free: 82.64 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009269/6.014, allocations: 263.9 kB / 2.574 GB, free: 82.38 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/6.014, allocations: 23.92 kB / 2.574 GB, free: 82.36 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/6.016, allocations: 146.9 kB / 2.574 GB, free: 82.21 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-05/6.016, allocations: 55.97 kB / 2.574 GB, free: 82.16 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (125): * Single equations (assignments): 121 * 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.000251/6.016, allocations: 144.6 kB / 2.574 GB, free: 82.01 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002175/6.016, allocations: 165.9 kB / 2.574 GB, free: 81.85 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/6.018, allocations: 1.081 MB / 2.575 GB, free: 80.75 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/6.018, allocations: 15.98 kB / 2.576 GB, free: 80.73 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/6.018, allocations: 7.938 kB / 2.576 GB, free: 80.73 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001221/6.02, allocations: 0.7349 MB / 2.576 GB, free: 79.98 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003746/6.023, allocations: 2.224 MB / 2.578 GB, free: 77.72 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/6.023, allocations: 0 / 2.578 GB, free: 77.72 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008045/6.024, allocations: 171.8 kB / 2.579 GB, free: 77.56 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/6.024, allocations: 28.84 kB / 2.579 GB, free: 77.53 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.699e-05/6.025, allocations: 15.98 kB / 2.579 GB, free: 77.51 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000749/6.025, allocations: 1.26 MB / 2.58 GB, free: 76.14 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/6.025, allocations: 3.938 kB / 2.58 GB, free: 76.14 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001972/6.027, allocations: 1.467 MB / 2.581 GB, free: 74.63 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002669/6.03, allocations: 2.344 MB / 2.584 GB, free: 72.24 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000684/6.031, allocations: 354.6 kB / 2.584 GB, free: 71.88 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/6.031, allocations: 8 kB / 2.584 GB, free: 71.87 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009858/6.032, allocations: 103.7 kB / 2.584 GB, free: 71.77 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/6.032, allocations: 52.56 kB / 2.584 GB, free: 71.71 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.276e-05/6.032, allocations: 35.98 kB / 2.584 GB, free: 71.68 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001168/6.033, allocations: 0.9033 MB / 2.585 GB, free: 70.79 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004892/6.038, allocations: 1.423 MB / 2.586 GB, free: 69.36 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (81): * Single equations (assignments): 73 * 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.001941/6.04, allocations: 1.131 MB / 2.587 GB, free: 68.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002052/6.042, allocations: 1.445 MB / 2.589 GB, free: 66.84 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/6.042, allocations: 7.938 kB / 2.589 GB, free: 66.83 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006184/6.043, allocations: 482.8 kB / 2.589 GB, free: 66.35 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003203/6.046, allocations: 0.7167 MB / 2.59 GB, free: 65.64 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004793/6.051, allocations: 2.43 MB / 2.592 GB, free: 63.17 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/6.052, allocations: 1.614 MB / 2.594 GB, free: 61.52 MB / 0.948 GB Notification: Performance of SimCode: time 7.72e-07/6.052, allocations: 4 kB / 2.594 GB, free: 61.52 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)