Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.382/1.382, allocations: 285.5 MB / 292.8 MB, free: 10.46 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.0009484/0.0009483, allocations: 185.3 kB / 361.1 MB, free: 7.102 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.223/1.223, allocations: 205.1 MB / 0.6195 GB, free: 10.29 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.0008188/0.0008187, allocations: 96.73 kB / 0.7326 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2196/0.2204, allocations: 121.4 MB / 0.8511 GB, free: 2.883 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5597/0.7802, allocations: 115.3 MB / 0.9637 GB, free: 78.22 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8375/1.618, allocations: 453.7 MB / 1.407 GB, free: 109.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/1.618, allocations: 93.45 kB / 1.407 GB, free: 109.4 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 3.361/4.98, allocations: 1.17 GB / 2.577 GB, free: 126.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/4.98, allocations: 8.5 kB / 2.577 GB, free: 126.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/4.982, allocations: 481.2 kB / 2.578 GB, free: 126.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006579/4.989, allocations: 2.329 MB / 2.58 GB, free: 124.6 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-05/4.989, allocations: 39.55 kB / 2.58 GB, free: 124.6 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003594/4.989, allocations: 79.16 kB / 2.58 GB, free: 124.6 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001858/4.991, allocations: 0.7812 MB / 2.581 GB, free: 124.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002015/4.993, allocations: 1.094 MB / 2.582 GB, free: 123.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.253e-05/4.993, allocations: 5.281 kB / 2.582 GB, free: 123.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/4.993, allocations: 2.781 kB / 2.582 GB, free: 123.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/4.993, allocations: 27.25 kB / 2.582 GB, free: 123.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008816/5.002, allocations: 6.921 MB / 2.589 GB, free: 117.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008969/5.003, allocations: 0.6144 MB / 2.589 GB, free: 116.8 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004075/5.004, allocations: 321.9 kB / 2.59 GB, free: 116.5 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004122/5.008, allocations: 2.83 MB / 2.592 GB, free: 113.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004427/5.008, allocations: 335.1 kB / 2.593 GB, free: 113 MB / 0.948 GB Notification: Performance of pre-optimization done (n=64): time 2.394e-06/5.008, allocations: 0 / 2.593 GB, free: 113 MB / 0.948 GB Notification: Performance of matching and sorting (n=64): time 0.002212/5.01, allocations: 0.8416 MB / 2.593 GB, free: 112.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/5.01, allocations: 165.8 kB / 2.594 GB, free: 112 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/5.012, allocations: 1.244 MB / 2.595 GB, free: 110.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.35e-05/5.012, allocations: 29.7 kB / 2.595 GB, free: 110.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003967/5.013, allocations: 0.5832 MB / 2.595 GB, free: 110.1 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/5.013, allocations: 216.8 kB / 2.596 GB, free: 109.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.344e-05/5.013, allocations: 0 / 2.596 GB, free: 109.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.577e-05/5.013, allocations: 349.1 kB / 2.596 GB, free: 109.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003964/5.014, allocations: 274.2 kB / 2.596 GB, free: 109.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005769/5.014, allocations: 0.7031 MB / 2.597 GB, free: 108.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/5.016, allocations: 0.5239 MB / 2.597 GB, free: 107.9 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/5.016, allocations: 7 kB / 2.597 GB, free: 107.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002398/5.018, allocations: 1.17 MB / 2.599 GB, free: 106.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007746/5.019, allocations: 4.508 MB / 2.603 GB, free: 101.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/5.019, allocations: 19.78 kB / 2.603 GB, free: 101.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.784e-05/5.019, allocations: 19.12 kB / 2.603 GB, free: 101.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009683/5.02, allocations: 258.9 kB / 2.603 GB, free: 101.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.917e-05/5.02, allocations: 23.88 kB / 2.603 GB, free: 101.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/5.021, allocations: 157.1 kB / 2.603 GB, free: 101.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/5.021, allocations: 59.23 kB / 2.603 GB, free: 101.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.535e-06/5.021, allocations: 4 kB / 2.603 GB, free: 101.3 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001978/5.023, allocations: 0.9468 MB / 2.604 GB, free: 100.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/5.023, allocations: 12 kB / 2.604 GB, free: 100.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/5.023, allocations: 19.91 kB / 2.604 GB, free: 100.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009071/5.024, allocations: 259 kB / 2.605 GB, free: 100.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/5.024, allocations: 27.86 kB / 2.605 GB, free: 100.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/5.025, allocations: 134 kB / 2.605 GB, free: 99.97 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.032e-05/5.025, allocations: 51.98 kB / 2.605 GB, free: 99.92 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.000179/5.026, allocations: 154.6 kB / 2.605 GB, free: 99.77 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001822/5.026, allocations: 165.8 kB / 2.605 GB, free: 99.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002304/5.028, allocations: 1.103 MB / 2.606 GB, free: 98.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/5.028, allocations: 12 kB / 2.606 GB, free: 98.49 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/5.028, allocations: 7.25 kB / 2.606 GB, free: 98.49 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001406/5.03, allocations: 0.8866 MB / 2.607 GB, free: 97.55 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/5.033, allocations: 2.109 MB / 2.609 GB, free: 95.41 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/5.033, allocations: 0 / 2.609 GB, free: 95.41 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007208/5.034, allocations: 146.7 kB / 2.609 GB, free: 95.27 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001693/5.034, allocations: 32.03 kB / 2.609 GB, free: 95.24 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.631e-05/5.034, allocations: 19.86 kB / 2.609 GB, free: 95.22 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007867/5.035, allocations: 1.261 MB / 2.611 GB, free: 93.86 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/5.035, allocations: 0 / 2.611 GB, free: 93.86 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002071/5.037, allocations: 1.42 MB / 2.612 GB, free: 92.4 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002665/5.04, allocations: 2.246 MB / 2.614 GB, free: 90.12 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005427/5.04, allocations: 346 kB / 2.615 GB, free: 89.77 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002577/5.041, allocations: 8 kB / 2.615 GB, free: 89.76 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009321/5.041, allocations: 73.36 kB / 2.615 GB, free: 89.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/5.042, allocations: 48.58 kB / 2.615 GB, free: 89.65 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.636e-05/5.042, allocations: 39.22 kB / 2.615 GB, free: 89.61 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001213/5.043, allocations: 0.9234 MB / 2.616 GB, free: 88.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005153/5.048, allocations: 1.32 MB / 2.617 GB, free: 87.38 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.002009/5.05, allocations: 1.231 MB / 2.618 GB, free: 86.42 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001831/5.052, allocations: 1.371 MB / 2.619 GB, free: 85.03 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/5.052, allocations: 2.875 kB / 2.619 GB, free: 85.03 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005508/5.052, allocations: 452.1 kB / 2.62 GB, free: 84.58 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002426/5.055, allocations: 0.6072 MB / 2.62 GB, free: 84.02 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004258/5.059, allocations: 2.375 MB / 2.623 GB, free: 81.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/5.06, allocations: 1.577 MB / 2.624 GB, free: 80.09 MB / 0.948 GB Notification: Performance of SimCode: time 7.71e-07/5.06, allocations: 0 / 2.624 GB, free: 80.09 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)