Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",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.601/1.601, allocations: 289.8 MB / 297.1 MB, free: 6.73 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.001229/0.001229, allocations: 177.3 kB / 366.3 MB, free: 2.02 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.611/1.611, allocations: 205.1 MB / 0.6256 GB, free: 7.488 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.001133/0.001132, allocations: 85.47 kB / 0.7396 GB, free: 39.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2951/0.2963, allocations: 122.4 MB / 0.8591 GB, free: 13.55 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7291/1.025, allocations: 116.3 MB / 0.9726 GB, free: 76.14 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9943/2.02, allocations: 454.7 MB / 1.417 GB, free: 102.7 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/2.02, allocations: 91.08 kB / 1.417 GB, free: 102.7 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 4.015/6.035, allocations: 1.17 GB / 2.587 GB, free: 109.8 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/6.035, allocations: 10.84 kB / 2.587 GB, free: 109.8 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002863/6.038, allocations: 490.6 kB / 2.587 GB, free: 109.3 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006908/6.045, allocations: 2.316 MB / 2.59 GB, free: 107 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.388e-05/6.045, allocations: 36 kB / 2.59 GB, free: 107 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002017/6.045, allocations: 79.91 kB / 2.59 GB, free: 106.9 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00163/6.047, allocations: 0.7893 MB / 2.591 GB, free: 106.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/6.048, allocations: 1.094 MB / 2.592 GB, free: 104.9 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.273e-05/6.049, allocations: 3.938 kB / 2.592 GB, free: 104.9 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.51e-05/6.049, allocations: 4 kB / 2.592 GB, free: 104.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-05/6.049, allocations: 28 kB / 2.592 GB, free: 104.9 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008248/6.057, allocations: 6.916 MB / 2.598 GB, free: 97.57 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000939/6.058, allocations: 0.6202 MB / 2.599 GB, free: 96.95 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/6.058, allocations: 319.1 kB / 2.599 GB, free: 96.63 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004301/6.063, allocations: 2.82 MB / 2.602 GB, free: 93.52 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004763/6.063, allocations: 331.1 kB / 2.602 GB, free: 93.18 MB / 0.948 GB Notification: Performance of pre-optimization done (n=64): time 3.587e-06/6.063, allocations: 6.812 kB / 2.602 GB, free: 93.18 MB / 0.948 GB Notification: Performance of matching and sorting (n=64): time 0.002243/6.065, allocations: 0.8371 MB / 2.603 GB, free: 92.33 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.302e-05/6.065, allocations: 166.9 kB / 2.603 GB, free: 92.13 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00166/6.067, allocations: 1.248 MB / 2.605 GB, free: 90.89 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 6.995e-05/6.067, allocations: 25.7 kB / 2.605 GB, free: 90.86 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004393/6.068, allocations: 0.5856 MB / 2.605 GB, free: 90.26 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/6.068, allocations: 220.8 kB / 2.605 GB, free: 90.04 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.44e-05/6.068, allocations: 0 / 2.605 GB, free: 90.04 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.232e-05/6.068, allocations: 347 kB / 2.606 GB, free: 89.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/6.068, allocations: 270.2 kB / 2.606 GB, free: 89.44 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005846/6.069, allocations: 0.7034 MB / 2.607 GB, free: 88.54 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/6.071, allocations: 0.5243 MB / 2.607 GB, free: 88.04 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/6.071, allocations: 4 kB / 2.607 GB, free: 88.04 MB / 0.948 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002462/6.073, allocations: 1.18 MB / 2.608 GB, free: 86.86 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001006/6.074, allocations: 4.504 MB / 2.613 GB, free: 82.01 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.45e-05/6.074, allocations: 15.98 kB / 2.613 GB, free: 82 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.992e-05/6.074, allocations: 20 kB / 2.613 GB, free: 81.98 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009957/6.075, allocations: 259 kB / 2.613 GB, free: 81.73 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/6.075, allocations: 23.92 kB / 2.613 GB, free: 81.71 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/6.077, allocations: 154.3 kB / 2.613 GB, free: 81.56 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/6.077, allocations: 63.92 kB / 2.613 GB, free: 81.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.814e-06/6.077, allocations: 7.75 kB / 2.613 GB, free: 81.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00214/6.079, allocations: 0.9448 MB / 2.614 GB, free: 80.56 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/6.079, allocations: 12 kB / 2.614 GB, free: 80.55 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/6.079, allocations: 23.91 kB / 2.614 GB, free: 80.52 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009434/6.08, allocations: 256.1 kB / 2.614 GB, free: 80.28 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/6.08, allocations: 23.92 kB / 2.615 GB, free: 80.25 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/6.081, allocations: 136.6 kB / 2.615 GB, free: 80.13 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.83e-05/6.082, allocations: 59.98 kB / 2.615 GB, free: 80.07 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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.000279/6.082, allocations: 132.7 kB / 2.615 GB, free: 79.93 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002403/6.082, allocations: 173.8 kB / 2.615 GB, free: 79.76 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/6.085, allocations: 1.11 MB / 2.616 GB, free: 78.67 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/6.085, allocations: 8 kB / 2.616 GB, free: 78.66 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/6.085, allocations: 3.938 kB / 2.616 GB, free: 78.66 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00174/6.087, allocations: 0.887 MB / 2.617 GB, free: 77.73 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005835/6.093, allocations: 2.114 MB / 2.619 GB, free: 75.58 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/6.093, allocations: 7.625 kB / 2.619 GB, free: 75.57 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008206/6.094, allocations: 139.8 kB / 2.619 GB, free: 75.44 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002605/6.094, allocations: 31.62 kB / 2.619 GB, free: 75.41 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.132e-05/6.094, allocations: 11.98 kB / 2.619 GB, free: 75.39 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/6.095, allocations: 1.263 MB / 2.62 GB, free: 74.02 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.405e-05/6.095, allocations: 4.031 kB / 2.62 GB, free: 74.02 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003276/6.099, allocations: 1.414 MB / 2.622 GB, free: 72.58 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004187/6.103, allocations: 2.259 MB / 2.624 GB, free: 70.29 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/6.104, allocations: 342.7 kB / 2.624 GB, free: 69.93 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005843/6.105, allocations: 0 / 2.624 GB, free: 69.93 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/6.106, allocations: 79.58 kB / 2.624 GB, free: 69.86 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/6.106, allocations: 48.58 kB / 2.624 GB, free: 69.81 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.24e-05/6.106, allocations: 31.97 kB / 2.625 GB, free: 69.78 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.002242/6.109, allocations: 0.9274 MB / 2.625 GB, free: 68.86 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.007633/6.116, allocations: 1.317 MB / 2.627 GB, free: 67.55 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.outCon.T) * 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 (74): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.003025/6.119, allocations: 1.236 MB / 2.628 GB, free: 66.53 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00236/6.122, allocations: 1.374 MB / 2.629 GB, free: 65.13 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/6.122, allocations: 0.75 kB / 2.629 GB, free: 65.13 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007342/6.123, allocations: 452.2 kB / 2.63 GB, free: 64.68 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/6.125, allocations: 0.5976 MB / 2.63 GB, free: 64.11 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005855/6.131, allocations: 2.384 MB / 2.633 GB, free: 61.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001568/6.133, allocations: 1.577 MB / 2.634 GB, free: 60.09 MB / 0.948 GB Notification: Performance of SimCode: time 1.303e-06/6.133, allocations: 0 / 2.634 GB, free: 60.09 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)