Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilCounterFlowPControl,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_Examples_WetCoilCounterFlowPControl",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.1/package.mo): time 2.214/2.214, allocations: 248.6 MB / 255.9 MB, free: 7.121 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.001623/0.001623, allocations: 191.3 kB / 315.1 MB, free: 4.273 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.918/1.918, allocations: 205.1 MB / 0.5658 GB, free: 400 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001734/0.001734, allocations: 91.33 kB / 0.67 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4692/0.4709, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.6789, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.514/7.193, allocations: 2.511 GB / 3.395 GB, free: 184.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/7.193, allocations: 91.89 kB / 3.395 GB, free: 184.2 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: 1252 * Number of variables: 1252 Notification: Performance of Generate backend data structure: time 12.78/19.97, allocations: 2.614 GB / 6.009 GB, free: 173.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/19.97, allocations: 12.5 kB / 6.009 GB, free: 173.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01633/19.99, allocations: 1.538 MB / 6.011 GB, free: 172.8 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03121/20.02, allocations: 7.587 MB / 6.018 GB, free: 172.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004647/20.02, allocations: 154.5 kB / 6.018 GB, free: 172.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002711/20.03, allocations: 307.1 kB / 6.019 GB, free: 172.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02172/20.05, allocations: 5.568 MB / 6.024 GB, free: 172.1 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02544/20.07, allocations: 6.075 MB / 6.03 GB, free: 171.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002806/20.07, allocations: 10.22 kB / 6.03 GB, free: 171.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001789/20.07, allocations: 7.656 kB / 6.03 GB, free: 171.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003305/20.08, allocations: 232.7 kB / 6.03 GB, free: 171.7 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08112/20.16, allocations: 28.6 MB / 6.058 GB, free: 160.9 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007945/20.16, allocations: 2.594 MB / 6.061 GB, free: 160.8 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00731/20.17, allocations: 2.517 MB / 6.063 GB, free: 160.8 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001744/20.17, allocations: 1.091 MB / 6.064 GB, free: 159.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007141/20.18, allocations: 2.346 MB / 6.066 GB, free: 159.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=326): time 8.897e-06/20.18, allocations: 4.938 kB / 6.066 GB, free: 159.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=330): time 0.05029/20.23, allocations: 11.44 MB / 6.078 GB, free: 156.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/20.23, allocations: 297.1 kB / 6.078 GB, free: 156.2 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01586/20.25, allocations: 4.277 MB / 6.082 GB, free: 155.9 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001241/20.25, allocations: 36.92 kB / 6.082 GB, free: 155.9 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00414/20.25, allocations: 1.783 MB / 6.084 GB, free: 155 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003907/20.26, allocations: 1.098 MB / 6.085 GB, free: 154.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004386/20.26, allocations: 0 / 6.085 GB, free: 154.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0003883/20.26, allocations: 444.3 kB / 6.085 GB, free: 153.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005735/20.26, allocations: 1.79 MB / 6.087 GB, free: 153.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006987/20.27, allocations: 2.682 MB / 6.09 GB, free: 153.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008473/20.28, allocations: 2.375 MB / 6.092 GB, free: 153 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.059e-05/20.28, allocations: 3.719 kB / 6.092 GB, free: 153 MB / 0.948 GB Notification: Performance of matching and sorting (n=424) (initialization): time 0.0213/20.3, allocations: 5.055 MB / 6.097 GB, free: 152.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001936/20.3, allocations: 6.329 MB / 6.103 GB, free: 145.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001466/20.3, allocations: 20.89 kB / 6.103 GB, free: 145.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/20.3, allocations: 218.3 kB / 6.103 GB, free: 145.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008766/20.31, allocations: 0.7417 MB / 6.104 GB, free: 145.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005165/20.32, allocations: 3.356 MB / 6.107 GB, free: 143.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01125/20.33, allocations: 493.3 kB / 6.108 GB, free: 143.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001175/20.33, allocations: 138.4 kB / 6.108 GB, free: 143.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/20.33, allocations: 3.406 kB / 6.108 GB, free: 143.4 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01591/20.35, allocations: 4.486 MB / 6.112 GB, free: 143.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.586e-05/20.35, allocations: 16.09 kB / 6.112 GB, free: 143.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/20.35, allocations: 228.5 kB / 6.113 GB, free: 143.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007166/20.35, allocations: 0.7233 MB / 6.113 GB, free: 143.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006592/20.36, allocations: 3.923 MB / 6.117 GB, free: 140.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/20.37, allocations: 480.1 kB / 6.118 GB, free: 140.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001449/20.37, allocations: 134 kB / 6.118 GB, free: 140.7 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (399): * Single equations (assignments): 393 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.002164/20.38, allocations: 217.3 kB / 6.118 GB, free: 140.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002428/20.38, allocations: 497.6 kB / 6.118 GB, free: 140.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01653/20.4, allocations: 4.81 MB / 6.123 GB, free: 140.1 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-05/20.4, allocations: 32.69 kB / 6.123 GB, free: 140.1 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.711e-05/20.4, allocations: 6.547 kB / 6.123 GB, free: 140.1 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01285/20.41, allocations: 4.003 MB / 6.127 GB, free: 139.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03903/20.45, allocations: 11.55 MB / 6.138 GB, free: 138.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.313e-05/20.45, allocations: 7.406 kB / 6.138 GB, free: 138.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007595/20.46, allocations: 0.7149 MB / 6.139 GB, free: 138.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009099/20.46, allocations: 174.4 kB / 6.139 GB, free: 138.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009012/20.46, allocations: 54.14 kB / 6.139 GB, free: 138.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004152/20.46, allocations: 3.251 MB / 6.142 GB, free: 136.5 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.108e-05/20.46, allocations: 6.219 kB / 6.142 GB, free: 136.5 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02241/20.48, allocations: 8.18 MB / 6.15 GB, free: 135.1 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02907/20.51, allocations: 11.69 MB / 6.162 GB, free: 133.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006754/20.52, allocations: 1.25 MB / 6.163 GB, free: 132.9 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00304/20.52, allocations: 29.95 kB / 6.163 GB, free: 132.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01017/20.53, allocations: 417.7 kB / 6.164 GB, free: 132.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001125/20.53, allocations: 176.6 kB / 6.164 GB, free: 132.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006885/20.53, allocations: 121.8 kB / 6.164 GB, free: 132.9 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0115/20.55, allocations: 3.312 MB / 6.167 GB, free: 132.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.03566/20.58, allocations: 3.777 MB / 6.171 GB, free: 132.7 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 21 (temSen.T,val.filter.x[1],val.filter.x[2],hex.ele[1].vol1.dynBal.U,hex.ele[1].vol2.dynBal.U,hex.ele[1].vol2.dynBal.mXi[1],hex.ele[1].mas.T,hex.ele[2].vol1.dynBal.U,hex.ele[2].vol2.dynBal.U,hex.ele[2].vol2.dynBal.mXi[1],hex.ele[2].mas.T,hex.ele[3].vol1.dynBal.U,hex.ele[3].vol2.dynBal.U,hex.ele[3].vol2.dynBal.mXi[1],hex.ele[3].mas.T,hex.ele[4].vol1.dynBal.U,hex.ele[4].vol2.dynBal.U,hex.ele[4].vol2.dynBal.m,hex.ele[4].vol2.dynBal.mXi[1],hex.ele[4].mas.T,con.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01024/20.59, allocations: 3.447 MB / 6.174 GB, free: 131.5 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.02115/20.61, allocations: 7.274 MB / 6.181 GB, free: 131 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.765e-05/20.61, allocations: 1.062 kB / 6.181 GB, free: 131 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.006533/20.62, allocations: 2.309 MB / 6.183 GB, free: 130.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02743/20.65, allocations: 2.814 MB / 6.186 GB, free: 130.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04465/20.69, allocations: 11.87 MB / 6.198 GB, free: 128.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01672/20.71, allocations: 5.189 MB / 6.203 GB, free: 127.9 MB / 0.948 GB Notification: Performance of SimCode: time 1.443e-06/20.71, allocations: 0 / 6.203 GB, free: 127.9 MB / 0.948 GB