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: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") [: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.552/1.552, allocations: 285.5 MB / 292.8 MB, free: 10.5 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.001239/0.001239, allocations: 181.3 kB / 361.1 MB, free: 7.094 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.813/1.813, 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.001122/0.001122, allocations: 79.8 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.676e-06/8.696e-06, allocations: 0 / 0.8511 GB, free: 2.973 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8435/0.8435, allocations: 115.3 MB / 0.9637 GB, free: 78.46 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.178/2.022, allocations: 447.2 MB / 1.4 GB, free: 120.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/2.022, allocations: 87.2 kB / 1.4 GB, free: 120.4 MB / 0.8542 GB Notification: Performance of FrontEnd: time 4.293/6.315, allocations: 1.134 GB / 2.535 GB, free: 140.4 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0004628/6.316, allocations: 53.58 kB / 2.535 GB, free: 140.4 MB / 0.948 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 0.00754/6.323, allocations: 2.187 MB / 2.537 GB, free: 138.8 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/6.323, allocations: 8.875 kB / 2.537 GB, free: 138.8 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002757/6.326, allocations: 395.7 kB / 2.537 GB, free: 138.7 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008626/6.335, allocations: 2.498 MB / 2.54 GB, free: 137 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.437e-05/6.335, allocations: 45.23 kB / 2.54 GB, free: 137 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002798/6.335, allocations: 84.53 kB / 2.54 GB, free: 137 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00195/6.337, allocations: 0.8647 MB / 2.541 GB, free: 136.6 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002069/6.339, allocations: 1.194 MB / 2.542 GB, free: 135.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.309e-05/6.339, allocations: 0 / 2.542 GB, free: 135.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/6.339, allocations: 7.078 kB / 2.542 GB, free: 135.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.481e-05/6.339, allocations: 36.91 kB / 2.542 GB, free: 135.8 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01043/6.35, allocations: 7.652 MB / 2.549 GB, free: 129.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/6.351, allocations: 0.6549 MB / 2.55 GB, free: 128.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005422/6.352, allocations: 360.5 kB / 2.55 GB, free: 128.7 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004121/6.356, allocations: 2.165 MB / 2.553 GB, free: 126.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006675/6.356, allocations: 381.3 kB / 2.553 GB, free: 126.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=72): time 4.829e-06/6.356, allocations: 7.406 kB / 2.553 GB, free: 126.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=72): time 0.002738/6.359, allocations: 0.8592 MB / 2.554 GB, free: 126.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/6.359, allocations: 164.7 kB / 2.554 GB, free: 125.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/6.361, allocations: 1.198 MB / 2.555 GB, free: 125.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001021/6.362, allocations: 28.73 kB / 2.555 GB, free: 125.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005582/6.362, allocations: 0.5815 MB / 2.556 GB, free: 124.7 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002965/6.362, allocations: 253.8 kB / 2.556 GB, free: 124.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-05/6.362, allocations: 0 / 2.556 GB, free: 124.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001004/6.363, allocations: 343.6 kB / 2.556 GB, free: 124.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/6.363, allocations: 303.5 kB / 2.557 GB, free: 124 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007924/6.364, allocations: 0.6675 MB / 2.557 GB, free: 123.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001698/6.366, allocations: 0.497 MB / 2.558 GB, free: 123.2 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/6.366, allocations: 2.688 kB / 2.558 GB, free: 123.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.003105/6.369, allocations: 1.15 MB / 2.559 GB, free: 122.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000763/6.37, allocations: 3.695 MB / 2.562 GB, free: 118.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.769e-05/6.37, allocations: 11.44 kB / 2.562 GB, free: 118.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.868e-05/6.37, allocations: 16.09 kB / 2.562 GB, free: 118.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/6.371, allocations: 262.8 kB / 2.563 GB, free: 118.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.305e-05/6.371, allocations: 18.88 kB / 2.563 GB, free: 118.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/6.373, allocations: 171.6 kB / 2.563 GB, free: 118.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/6.373, allocations: 56.11 kB / 2.563 GB, free: 118.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/6.373, allocations: 3.781 kB / 2.563 GB, free: 118.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002193/6.375, allocations: 0.9253 MB / 2.564 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.125e-05/6.375, allocations: 10.09 kB / 2.564 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/6.375, allocations: 15.59 kB / 2.564 GB, free: 118.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/6.376, allocations: 259 kB / 2.564 GB, free: 118 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.283e-05/6.376, allocations: 21.95 kB / 2.564 GB, free: 118 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/6.378, allocations: 154.3 kB / 2.564 GB, free: 118 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/6.378, allocations: 61.17 kB / 2.564 GB, free: 117.9 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.0003182/6.378, allocations: 140.8 kB / 2.564 GB, free: 117.8 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003204/6.379, allocations: 166 kB / 2.565 GB, free: 117.7 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/6.381, allocations: 1.091 MB / 2.566 GB, free: 116.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/6.381, allocations: 8 kB / 2.566 GB, free: 116.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/6.381, allocations: 0 / 2.566 GB, free: 116.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001284/6.383, allocations: 0.7426 MB / 2.566 GB, free: 116 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004338/6.387, allocations: 2.224 MB / 2.569 GB, free: 113.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/6.387, allocations: 3.625 kB / 2.569 GB, free: 113.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008068/6.388, allocations: 167.2 kB / 2.569 GB, free: 113.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001895/6.388, allocations: 24.84 kB / 2.569 GB, free: 113.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/6.388, allocations: 15.98 kB / 2.569 GB, free: 113.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007938/6.389, allocations: 1.265 MB / 2.57 GB, free: 112.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/6.389, allocations: 0 / 2.57 GB, free: 112.2 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002295/6.391, allocations: 1.473 MB / 2.571 GB, free: 110.7 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000831/6.392, allocations: 366.5 kB / 2.572 GB, free: 110.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/6.392, allocations: 0 / 2.572 GB, free: 110.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/6.393, allocations: 96.72 kB / 2.572 GB, free: 110.2 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/6.393, allocations: 55.09 kB / 2.572 GB, free: 110.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-05/6.393, allocations: 35.97 kB / 2.572 GB, free: 110.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001333/6.395, allocations: 0.9034 MB / 2.573 GB, free: 109.2 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003724/6.399, allocations: 1.091 MB / 2.574 GB, free: 108.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.002253/6.401, allocations: 1.134 MB / 2.575 GB, free: 107.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00227/6.403, allocations: 1.444 MB / 2.576 GB, free: 105.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/6.403, allocations: 0 / 2.576 GB, free: 105.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006606/6.404, allocations: 484.3 kB / 2.577 GB, free: 105.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003548/6.407, allocations: 0.7086 MB / 2.578 GB, free: 104.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00508/6.412, allocations: 2.419 MB / 2.58 GB, free: 102.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/6.414, allocations: 1.613 MB / 2.582 GB, free: 100.6 MB / 0.948 GB Notification: Performance of SimCode: time 1.323e-06/6.414, allocations: 0 / 2.582 GB, free: 100.6 MB / 0.948 GB Notification: Performance of Templates: time 0.06462/6.478, allocations: 40.02 MB / 2.621 GB, free: 61.43 MB / 0.948 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (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 & ./Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)