Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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_u,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_8_0_x_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.0.1-maint.8.0.x/package.mo): time 1.388/1.388, allocations: 285.5 MB / 292.8 MB, free: 10.44 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.001075/0.001075, allocations: 177.3 kB / 361.1 MB, free: 7.078 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.229/1.229, 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.0008894/0.0008895, allocations: 80.84 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2195/0.2204, allocations: 121.4 MB / 0.8511 GB, free: 2.863 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5638/0.7842, allocations: 115.3 MB / 0.9637 GB, free: 78.33 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8161/1.6, allocations: 447.2 MB / 1.4 GB, free: 120.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/1.601, allocations: 91.59 kB / 1.401 GB, free: 120.2 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 3.327/4.928, allocations: 1.136 GB / 2.537 GB, free: 138.5 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/4.928, allocations: 8.531 kB / 2.537 GB, free: 138.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002052/4.93, allocations: 393.4 kB / 2.537 GB, free: 138.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006705/4.936, allocations: 2.505 MB / 2.54 GB, free: 136.7 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.319e-05/4.937, allocations: 39.03 kB / 2.54 GB, free: 136.7 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003727/4.937, allocations: 81.75 kB / 2.54 GB, free: 136.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002088/4.939, allocations: 0.8674 MB / 2.541 GB, free: 136.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/4.941, allocations: 1.191 MB / 2.542 GB, free: 135.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.756e-05/4.941, allocations: 6.922 kB / 2.542 GB, free: 135.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/4.941, allocations: 6.906 kB / 2.542 GB, free: 135.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-05/4.942, allocations: 32.41 kB / 2.542 GB, free: 135.6 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009301/4.951, allocations: 7.666 MB / 2.549 GB, free: 128.9 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009843/4.952, allocations: 0.6477 MB / 2.55 GB, free: 128.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004512/4.952, allocations: 360.5 kB / 2.55 GB, free: 128.4 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003347/4.956, allocations: 2.164 MB / 2.553 GB, free: 126.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005674/4.956, allocations: 381.6 kB / 2.553 GB, free: 126.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=72): time 3.276e-06/4.956, allocations: 0 / 2.553 GB, free: 126.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=72): time 0.002233/4.959, allocations: 0.8582 MB / 2.554 GB, free: 125.8 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/4.959, allocations: 171.7 kB / 2.554 GB, free: 125.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/4.96, allocations: 1.199 MB / 2.555 GB, free: 125 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.24e-05/4.961, allocations: 32.52 kB / 2.555 GB, free: 124.9 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004867/4.961, allocations: 0.582 MB / 2.556 GB, free: 124.4 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002492/4.961, allocations: 247.9 kB / 2.556 GB, free: 124.2 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/4.961, allocations: 0 / 2.556 GB, free: 124.2 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.907e-05/4.961, allocations: 342.8 kB / 2.556 GB, free: 123.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004471/4.962, allocations: 299.3 kB / 2.557 GB, free: 123.8 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006531/4.963, allocations: 0.666 MB / 2.557 GB, free: 123.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/4.964, allocations: 0.4949 MB / 2.558 GB, free: 122.9 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/4.964, allocations: 1.875 kB / 2.558 GB, free: 122.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002484/4.966, allocations: 1.158 MB / 2.559 GB, free: 122.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006544/4.967, allocations: 3.692 MB / 2.562 GB, free: 118.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.893e-05/4.967, allocations: 8.906 kB / 2.562 GB, free: 118.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.752e-05/4.967, allocations: 17.53 kB / 2.562 GB, free: 118.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/4.968, allocations: 262 kB / 2.563 GB, free: 118.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.142e-05/4.968, allocations: 18.28 kB / 2.563 GB, free: 118.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/4.97, allocations: 175.6 kB / 2.563 GB, free: 118.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/4.97, allocations: 53.98 kB / 2.563 GB, free: 118.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/4.97, allocations: 2.812 kB / 2.563 GB, free: 118.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002057/4.972, allocations: 0.9319 MB / 2.564 GB, free: 117.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/4.972, allocations: 9.312 kB / 2.564 GB, free: 117.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/4.972, allocations: 18.69 kB / 2.564 GB, free: 117.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/4.973, allocations: 262 kB / 2.564 GB, free: 117.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.166e-05/4.973, allocations: 26.25 kB / 2.564 GB, free: 117.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/4.975, allocations: 153.5 kB / 2.564 GB, free: 117.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/4.975, allocations: 50.61 kB / 2.564 GB, free: 117.6 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.000252/4.975, allocations: 142.4 kB / 2.564 GB, free: 117.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003475/4.975, allocations: 170 kB / 2.565 GB, free: 117.4 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002397/4.978, allocations: 1.088 MB / 2.566 GB, free: 116.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/4.978, allocations: 8 kB / 2.566 GB, free: 116.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/4.978, allocations: 3.984 kB / 2.566 GB, free: 116.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0013/4.979, allocations: 0.7493 MB / 2.566 GB, free: 115.7 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00404/4.983, allocations: 2.211 MB / 2.569 GB, free: 113.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/4.983, allocations: 4 kB / 2.569 GB, free: 113.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007988/4.984, allocations: 167 kB / 2.569 GB, free: 113.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001665/4.984, allocations: 32.03 kB / 2.569 GB, free: 113.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-05/4.984, allocations: 15.92 kB / 2.569 GB, free: 113.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000722/4.985, allocations: 1.255 MB / 2.57 GB, free: 111.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/4.985, allocations: 3.938 kB / 2.57 GB, free: 111.9 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002129/4.987, allocations: 1.462 MB / 2.571 GB, free: 110.4 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002747/4.99, allocations: 2.347 MB / 2.574 GB, free: 108 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000746/4.991, allocations: 365.8 kB / 2.574 GB, free: 107.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003588/4.991, allocations: 0 / 2.574 GB, free: 107.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/4.992, allocations: 105.5 kB / 2.574 GB, free: 107.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/4.992, allocations: 52.58 kB / 2.574 GB, free: 107.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.061e-05/4.992, allocations: 35.59 kB / 2.574 GB, free: 107.4 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001371/4.994, allocations: 0.9034 MB / 2.575 GB, free: 106.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005539/4.999, allocations: 1.411 MB / 2.577 GB, free: 105.1 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.002196/5.001, allocations: 1.144 MB / 2.578 GB, free: 104.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002194/5.004, allocations: 1.443 MB / 2.579 GB, free: 102.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/5.004, allocations: 0 / 2.579 GB, free: 102.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006735/5.004, allocations: 492.2 kB / 2.58 GB, free: 102.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003241/5.008, allocations: 0.7127 MB / 2.58 GB, free: 101.5 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005067/5.013, allocations: 2.425 MB / 2.583 GB, free: 99.18 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001386/5.014, allocations: 1.616 MB / 2.584 GB, free: 97.56 MB / 0.948 GB Notification: Performance of SimCode: time 1.133e-06/5.014, allocations: 0 / 2.584 GB, free: 97.56 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)