Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.248/1.248, allocations: 249.4 MB / 256.7 MB, free: 6.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 185.2 kB / 316 MB, free: 3.543 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.142/1.142, allocations: 205.1 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009269/0.0009269, allocations: 83.28 kB / 0.671 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3389/0.3399, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.5117, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.026/1.538, allocations: 440.7 MB / 1.315 GB, free: 305.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/1.538, allocations: 91.11 kB / 1.315 GB, free: 305.8 MB / 0.8698 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 2.943/4.482, allocations: 1.106 GB / 2.421 GB, free: 124.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/4.482, allocations: 10.88 kB / 2.421 GB, free: 124.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/4.483, allocations: 384.8 kB / 2.421 GB, free: 124.1 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004983/4.488, allocations: 2.492 MB / 2.424 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.012e-05/4.488, allocations: 41.19 kB / 2.424 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/4.489, allocations: 81.06 kB / 2.424 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001437/4.49, allocations: 0.8665 MB / 2.425 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/4.492, allocations: 1.182 MB / 2.426 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/4.492, allocations: 3.562 kB / 2.426 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.516e-05/4.492, allocations: 3.688 kB / 2.426 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.502e-05/4.492, allocations: 39.56 kB / 2.426 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007402/4.499, allocations: 7.646 MB / 2.433 GB, free: 118.9 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000883/4.5, allocations: 0.6616 MB / 2.434 GB, free: 118.9 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003932/4.501, allocations: 359.6 kB / 2.434 GB, free: 118.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002899/4.504, allocations: 2.144 MB / 2.436 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004795/4.504, allocations: 376.3 kB / 2.437 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=72): time 2.956e-06/4.504, allocations: 2.156 kB / 2.437 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72): time 0.001845/4.506, allocations: 0.8561 MB / 2.438 GB, free: 117.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/4.506, allocations: 168.1 kB / 2.438 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001378/4.507, allocations: 1.194 MB / 2.439 GB, free: 117 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.826e-05/4.507, allocations: 32.33 kB / 2.439 GB, free: 117 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003645/4.508, allocations: 0.581 MB / 2.44 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/4.508, allocations: 246.3 kB / 2.44 GB, free: 116.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.251e-05/4.508, allocations: 2.781 kB / 2.44 GB, free: 116.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.178e-05/4.508, allocations: 348.8 kB / 2.44 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003883/4.508, allocations: 300.6 kB / 2.44 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000517/4.509, allocations: 0.6742 MB / 2.441 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/4.51, allocations: 0.4904 MB / 2.442 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/4.51, allocations: 3.344 kB / 2.442 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002011/4.512, allocations: 1.15 MB / 2.443 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005656/4.513, allocations: 3.694 MB / 2.446 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/4.513, allocations: 17.62 kB / 2.446 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.553e-05/4.513, allocations: 17.75 kB / 2.446 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000979/4.514, allocations: 265.9 kB / 2.447 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/4.514, allocations: 21.38 kB / 2.447 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/4.515, allocations: 163.9 kB / 2.447 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.633e-05/4.515, allocations: 60.53 kB / 2.447 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.402e-06/4.515, allocations: 3.906 kB / 2.447 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001747/4.517, allocations: 0.9189 MB / 2.448 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/4.517, allocations: 12.88 kB / 2.448 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/4.517, allocations: 20.69 kB / 2.448 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009154/4.518, allocations: 263.1 kB / 2.448 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/4.518, allocations: 17 kB / 2.448 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/4.519, allocations: 158.8 kB / 2.448 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.602e-05/4.519, allocations: 53.58 kB / 2.448 GB, free: 111.6 MB / 0.8855 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.0002113/4.52, allocations: 132.5 kB / 2.448 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/4.52, allocations: 176.2 kB / 2.448 GB, free: 111.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/4.522, allocations: 1.078 MB / 2.45 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/4.522, allocations: 14.09 kB / 2.45 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/4.522, allocations: 0 / 2.45 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001217/4.523, allocations: 0.7527 MB / 2.45 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003567/4.527, allocations: 2.204 MB / 2.452 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/4.527, allocations: 0 / 2.452 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007896/4.528, allocations: 167.1 kB / 2.453 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001697/4.528, allocations: 31.11 kB / 2.453 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.583e-05/4.528, allocations: 18.95 kB / 2.453 GB, free: 110.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007312/4.529, allocations: 1.263 MB / 2.454 GB, free: 109.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/4.529, allocations: 0 / 2.454 GB, free: 109.7 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002071/4.531, allocations: 1.467 MB / 2.455 GB, free: 109.4 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002648/4.533, allocations: 2.343 MB / 2.458 GB, free: 108.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006894/4.534, allocations: 353.9 kB / 2.458 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000226/4.534, allocations: 10.38 kB / 2.458 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009562/4.535, allocations: 104.1 kB / 2.458 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/4.535, allocations: 48.61 kB / 2.458 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.831e-05/4.535, allocations: 36.28 kB / 2.458 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001179/4.537, allocations: 0.8977 MB / 2.459 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004598/4.541, allocations: 1.407 MB / 2.46 GB, free: 108.2 MB / 0.8855 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.00181/4.543, allocations: 1.141 MB / 2.461 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001939/4.545, allocations: 1.446 MB / 2.463 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/4.545, allocations: 4 kB / 2.463 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005934/4.546, allocations: 491.8 kB / 2.463 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/4.549, allocations: 0.704 MB / 2.464 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004401/4.553, allocations: 2.434 MB / 2.466 GB, free: 107 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001127/4.554, allocations: 1.621 MB / 2.468 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of SimCode: time 8.12e-07/4.554, allocations: 0 / 2.468 GB, free: 106.2 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)