Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilCounterFlowPControl.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.DryCoilCounterFlowPControl,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_Examples_DryCoilCounterFlowPControl",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.315/2.315, allocations: 248.6 MB / 255.9 MB, free: 7.156 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.001662/0.001661, allocations: 189.2 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 2.139/2.139, allocations: 205.1 MB / 0.5658 GB, free: 316 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.001854/0.001854, allocations: 88.94 kB / 0.67 GB, free: 5.52 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.6408/0.6427, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.9165, allocations: 106.2 MB / 0.8835 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.294/7.211, allocations: 2.504 GB / 3.387 GB, free: 189.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/7.211, allocations: 94.81 kB / 3.387 GB, free: 189.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: 1084 * Number of variables: 1084 Notification: Performance of Generate backend data structure: time 10.59/17.8, allocations: 2.257 GB / 5.645 GB, free: 172.5 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/17.8, allocations: 10.56 kB / 5.645 GB, free: 172.5 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01575/17.82, allocations: 1.374 MB / 5.646 GB, free: 172.1 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03092/17.85, allocations: 7.204 MB / 5.653 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004366/17.85, allocations: 134.6 kB / 5.653 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002512/17.85, allocations: 260.9 kB / 5.654 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01871/17.87, allocations: 4.831 MB / 5.658 GB, free: 171.5 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02324/17.9, allocations: 5.322 MB / 5.664 GB, free: 171 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002053/17.9, allocations: 12.33 kB / 5.664 GB, free: 171 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00099/17.9, allocations: 3.844 kB / 5.664 GB, free: 171 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002488/17.9, allocations: 206.2 kB / 5.664 GB, free: 171 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07516/17.97, allocations: 26.08 MB / 5.689 GB, free: 160.5 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009999/17.98, allocations: 3.653 MB / 5.693 GB, free: 160.4 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00566/17.99, allocations: 2.203 MB / 5.695 GB, free: 160.3 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00157/17.99, allocations: 1.084 MB / 5.696 GB, free: 159.2 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005228/18, allocations: 2.039 MB / 5.698 GB, free: 159 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=286): time 6.692e-06/18, allocations: 0 / 5.698 GB, free: 159 MB / 0.9323 GB Notification: Performance of matching and sorting (n=290): time 0.04128/18.04, allocations: 10.05 MB / 5.708 GB, free: 156.5 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/18.04, allocations: 288.7 kB / 5.708 GB, free: 156.1 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01188/18.05, allocations: 4.002 MB / 5.712 GB, free: 155.9 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.001121/18.05, allocations: 35.02 kB / 5.712 GB, free: 155.8 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.003163/18.05, allocations: 1.596 MB / 5.714 GB, free: 155.1 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.003311/18.06, allocations: 0.9709 MB / 5.714 GB, free: 154.5 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003675/18.06, allocations: 4.688 kB / 5.714 GB, free: 154.5 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0003283/18.06, allocations: 432.3 kB / 5.715 GB, free: 154.2 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004376/18.06, allocations: 1.529 MB / 5.716 GB, free: 154.2 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005926/18.07, allocations: 2.391 MB / 5.719 GB, free: 153.3 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006748/18.07, allocations: 2.076 MB / 5.721 GB, free: 153.3 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-05/18.07, allocations: 2.656 kB / 5.721 GB, free: 153.3 MB / 0.9323 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.0152/18.09, allocations: 4.439 MB / 5.725 GB, free: 152.9 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001363/18.09, allocations: 5.845 MB / 5.731 GB, free: 146.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001112/18.09, allocations: 19.22 kB / 5.731 GB, free: 146.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/18.09, allocations: 203.6 kB / 5.731 GB, free: 146.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006792/18.1, allocations: 0.6762 MB / 5.732 GB, free: 146.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004675/18.1, allocations: 3.33 MB / 5.735 GB, free: 144.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01067/18.12, allocations: 450 kB / 5.735 GB, free: 144.4 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001108/18.12, allocations: 131.7 kB / 5.735 GB, free: 144.4 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/18.12, allocations: 6.531 kB / 5.735 GB, free: 144.4 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01273/18.13, allocations: 3.898 MB / 5.739 GB, free: 144.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.667e-05/18.13, allocations: 13.19 kB / 5.739 GB, free: 144.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009635/18.13, allocations: 214.2 kB / 5.74 GB, free: 144.2 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006495/18.14, allocations: 0.6626 MB / 5.74 GB, free: 144.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00638/18.14, allocations: 3.8 MB / 5.744 GB, free: 141.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01054/18.15, allocations: 441.9 kB / 5.744 GB, free: 141.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001136/18.15, allocations: 122.7 kB / 5.744 GB, free: 141.7 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (357): * Single equations (assignments): 351 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.001466/18.16, allocations: 215.3 kB / 5.745 GB, free: 141.5 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002064/18.16, allocations: 465.8 kB / 5.745 GB, free: 141.3 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/18.17, allocations: 4.163 MB / 5.749 GB, free: 141.1 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.977e-05/18.17, allocations: 29.06 kB / 5.749 GB, free: 141.1 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/18.17, allocations: 0 / 5.749 GB, free: 141.1 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01143/18.19, allocations: 3.461 MB / 5.753 GB, free: 140.8 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03475/18.22, allocations: 10.28 MB / 5.763 GB, free: 139.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/18.22, allocations: 6.781 kB / 5.763 GB, free: 139.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006806/18.23, allocations: 0.6301 MB / 5.763 GB, free: 139.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008808/18.23, allocations: 175.4 kB / 5.763 GB, free: 139.8 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008221/18.23, allocations: 52.12 kB / 5.763 GB, free: 139.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00414/18.23, allocations: 3.245 MB / 5.767 GB, free: 137.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/18.23, allocations: 6.438 kB / 5.767 GB, free: 137.4 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01943/18.25, allocations: 7.113 MB / 5.774 GB, free: 136 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03131/18.28, allocations: 10.2 MB / 5.784 GB, free: 134.3 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006237/18.29, allocations: 1.137 MB / 5.785 GB, free: 133.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002618/18.29, allocations: 29.59 kB / 5.785 GB, free: 133.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01057/18.3, allocations: 402.4 kB / 5.785 GB, free: 133.9 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009906/18.3, allocations: 166.1 kB / 5.785 GB, free: 133.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005241/18.31, allocations: 113.3 kB / 5.785 GB, free: 133.9 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.01404/18.32, allocations: 3.105 MB / 5.788 GB, free: 133.7 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.02999/18.35, allocations: 3.575 MB / 5.792 GB, free: 133.7 MB / 0.9323 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 (278): * Single equations (assignments): 270 * 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.007251/18.36, allocations: 3.372 MB / 5.795 GB, free: 132.6 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.01729/18.37, allocations: 6.361 MB / 5.801 GB, free: 132 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-05/18.37, allocations: 1.062 kB / 5.801 GB, free: 132 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.005907/18.38, allocations: 2.003 MB / 5.803 GB, free: 131.9 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0264/18.41, allocations: 2.706 MB / 5.806 GB, free: 131.9 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03613/18.44, allocations: 10.68 MB / 5.816 GB, free: 129.9 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01214/18.45, allocations: 4.706 MB / 5.821 GB, free: 129.1 MB / 0.9323 GB Notification: Performance of SimCode: time 2.275e-06/18.45, allocations: 0 / 5.821 GB, free: 129.1 MB / 0.9323 GB