Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.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.DryCoilDiscretizedPControl,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl",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.077/2.077, allocations: 248.6 MB / 255.9 MB, free: 7.164 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.001651/0.00165, allocations: 181.3 kB / 315.1 MB, free: 4.312 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.894/1.894, allocations: 205.1 MB / 0.5658 GB, free: 472 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.001387/0.001386, allocations: 87.38 kB / 0.67 GB, free: 5.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4607/0.4622, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.6844, allocations: 106.3 MB / 0.8835 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.551/7.236, allocations: 2.497 GB / 3.38 GB, free: 166.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003153/7.236, allocations: 91.7 kB / 3.38 GB, free: 166.4 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Fluid/Movers/BaseClasses/IdealSource.mo:14:3-22:27:writable] Error: The conditional expression control_m_flow could not be evaluated. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3034 * Number of variables: 3034 Notification: Performance of Generate backend data structure: time 45.04/52.28, allocations: 9.021 GB / 12.4 GB, free: 53.78 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/52.28, allocations: 13.09 kB / 12.4 GB, free: 53.78 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03891/52.32, allocations: 3.597 MB / 12.41 GB, free: 52.84 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.12/52.44, allocations: 29.22 MB / 12.43 GB, free: 50.77 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001057/52.44, allocations: 377.6 kB / 12.43 GB, free: 50.77 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008814/52.45, allocations: 0.717 MB / 12.43 GB, free: 50.76 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07092/52.52, allocations: 19.27 MB / 12.45 GB, free: 50.71 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08524/52.6, allocations: 20.34 MB / 12.47 GB, free: 49.78 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001146/52.6, allocations: 31.88 kB / 12.47 GB, free: 49.78 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006975/52.61, allocations: 17.41 kB / 12.47 GB, free: 49.77 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007556/52.61, allocations: 0.5509 MB / 12.47 GB, free: 49.75 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2573/52.87, allocations: 97.29 MB / 12.57 GB, free: 11.7 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02927/52.9, allocations: 9.739 MB / 12.58 GB, free: 3.461 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03572/52.93, allocations: 9.067 MB / 12.59 GB, free: 13.48 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002721/52.94, allocations: 1.162 MB / 12.59 GB, free: 12.16 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02397/52.96, allocations: 7.219 MB / 12.6 GB, free: 6.449 MB / 1.042 GB Notification: Performance of pre-optimization done (n=712): time 1.677e-05/52.96, allocations: 112 / 12.6 GB, free: 6.449 MB / 1.042 GB Notification: Performance of matching and sorting (n=724): time 1.343/54.3, allocations: 29.69 MB / 12.62 GB, free: 141.5 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/54.3, allocations: 261 kB / 12.62 GB, free: 141.2 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06548/54.37, allocations: 15.22 MB / 12.64 GB, free: 140.7 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.003132/54.37, allocations: 41.86 kB / 12.64 GB, free: 140.7 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.01538/54.39, allocations: 4.652 MB / 12.64 GB, free: 139.2 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.02424/54.41, allocations: 2.523 MB / 12.65 GB, free: 137.6 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002644/54.41, allocations: 3.219 kB / 12.65 GB, free: 137.6 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.001287/54.42, allocations: 0.6572 MB / 12.65 GB, free: 137.3 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01647/54.43, allocations: 6.278 MB / 12.65 GB, free: 137.3 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0187/54.45, allocations: 8.631 MB / 12.66 GB, free: 135.2 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02116/54.47, allocations: 8.318 MB / 12.67 GB, free: 135.1 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001141/54.47, allocations: 8.031 kB / 12.67 GB, free: 135.1 MB / 1.042 GB Notification: Performance of matching and sorting (n=951) (initialization): time 0.05174/54.52, allocations: 15.81 MB / 12.69 GB, free: 134.3 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 0.004576/54.53, allocations: 20.84 MB / 12.71 GB, free: 112.7 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003286/54.53, allocations: 41.36 kB / 12.71 GB, free: 112.7 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003516/54.53, allocations: 492.6 kB / 12.71 GB, free: 112.7 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0232/54.56, allocations: 1.846 MB / 12.71 GB, free: 112.7 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/54.57, allocations: 5.655 MB / 12.71 GB, free: 110.8 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03029/54.6, allocations: 1.626 MB / 12.72 GB, free: 110.7 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003103/54.6, allocations: 298.3 kB / 12.72 GB, free: 110.7 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/54.6, allocations: 3.031 kB / 12.72 GB, free: 110.7 MB / 1.042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.048/54.65, allocations: 14.62 MB / 12.73 GB, free: 110.5 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000209/54.65, allocations: 30.91 kB / 12.73 GB, free: 110.5 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002057/54.65, allocations: 493 kB / 12.73 GB, free: 110.5 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01936/54.67, allocations: 1.838 MB / 12.73 GB, free: 110.5 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01356/54.69, allocations: 5.059 MB / 12.74 GB, free: 109.2 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03464/54.72, allocations: 1.607 MB / 12.74 GB, free: 109.1 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003553/54.72, allocations: 299.8 kB / 12.74 GB, free: 109.1 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 155 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (922): * Single equations (assignments): 919 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006711/54.73, allocations: 312.1 kB / 12.74 GB, free: 108.9 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007387/54.74, allocations: 1.154 MB / 12.74 GB, free: 108.3 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05083/54.79, allocations: 15 MB / 12.76 GB, free: 108 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000129/54.79, allocations: 69.75 kB / 12.76 GB, free: 108 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.863e-05/54.79, allocations: 4.844 kB / 12.76 GB, free: 108 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03882/54.83, allocations: 12.41 MB / 12.77 GB, free: 107.4 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1466/54.97, allocations: 36.29 MB / 12.8 GB, free: 106.1 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-05/54.97, allocations: 10.41 kB / 12.8 GB, free: 106.1 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02021/54.99, allocations: 1.893 MB / 12.8 GB, free: 106.1 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/55, allocations: 450.1 kB / 12.8 GB, free: 106.1 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002551/55, allocations: 149.3 kB / 12.81 GB, free: 106.1 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/55.01, allocations: 5.59 MB / 12.81 GB, free: 104.2 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.529e-05/55.01, allocations: 9.25 kB / 12.81 GB, free: 104.2 MB / 1.042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0641/55.08, allocations: 24.86 MB / 12.83 GB, free: 101.2 MB / 1.042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09089/55.17, allocations: 35.38 MB / 12.87 GB, free: 97.81 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01954/55.19, allocations: 4.17 MB / 12.87 GB, free: 97.12 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008006/55.19, allocations: 107 kB / 12.87 GB, free: 97.12 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02695/55.22, allocations: 1.402 MB / 12.87 GB, free: 97.05 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00293/55.22, allocations: 392.9 kB / 12.88 GB, free: 97.04 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002614/55.23, allocations: 260.6 kB / 12.88 GB, free: 97.04 MB / 1.042 GB Notification: Performance of sort global known variables: time 0.03383/55.26, allocations: 11.96 MB / 12.89 GB, free: 96.72 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.06644/55.33, allocations: 9.282 MB / 12.9 GB, free: 96.7 MB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 51 (temSen.T,hex.hexReg[1].ele[1,1].vol1.dynBal.U,hex.hexReg[1].ele[1,1].vol2.dynBal.U,hex.hexReg[1].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,1].mas.T,hex.hexReg[1].ele[1,2].vol1.dynBal.U,hex.hexReg[1].ele[1,2].vol2.dynBal.U,hex.hexReg[1].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,2].mas.T,hex.hexReg[1].ele[1,3].vol1.dynBal.U,hex.hexReg[1].ele[1,3].vol2.dynBal.U,hex.hexReg[1].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[1].ele[1,3].mas.T,hex.hexReg[2].ele[1,1].vol1.dynBal.U,hex.hexReg[2].ele[1,1].vol2.dynBal.U,hex.hexReg[2].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,1].mas.T,hex.hexReg[2].ele[1,2].vol1.dynBal.U,hex.hexReg[2].ele[1,2].vol2.dynBal.U,hex.hexReg[2].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,2].mas.T,hex.hexReg[2].ele[1,3].vol1.dynBal.U,hex.hexReg[2].ele[1,3].vol2.dynBal.U,hex.hexReg[2].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[2].ele[1,3].mas.T,hex.hexReg[3].ele[1,1].vol1.dynBal.U,hex.hexReg[3].ele[1,1].vol2.dynBal.U,hex.hexReg[3].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,1].mas.T,hex.hexReg[3].ele[1,2].vol1.dynBal.U,hex.hexReg[3].ele[1,2].vol2.dynBal.U,hex.hexReg[3].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,2].mas.T,hex.hexReg[3].ele[1,3].vol1.dynBal.U,hex.hexReg[3].ele[1,3].vol2.dynBal.U,hex.hexReg[3].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[3].ele[1,3].mas.T,hex.hexReg[4].ele[1,1].vol1.dynBal.U,hex.hexReg[4].ele[1,1].vol2.dynBal.U,hex.hexReg[4].ele[1,1].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,1].mas.T,hex.hexReg[4].ele[1,2].vol1.dynBal.U,hex.hexReg[4].ele[1,2].vol2.dynBal.U,hex.hexReg[4].ele[1,2].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,2].mas.T,hex.hexReg[4].ele[1,3].vol1.dynBal.U,hex.hexReg[4].ele[1,3].vol2.dynBal.U,hex.hexReg[4].ele[1,3].vol2.dynBal.m,hex.hexReg[4].ele[1,3].vol2.dynBal.mXi[1],hex.hexReg[4].ele[1,3].mas.T,mot.int.y) * Number of discrete variables: 8 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1,mot.uppHys.y,mot.lowHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (706): * Single equations (assignments): 699 * 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: 1 * 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%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01148/55.34, allocations: 5.2 MB / 12.9 GB, free: 94.65 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.05893/55.4, allocations: 22.11 MB / 12.92 GB, free: 91.39 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 2.428e-05/55.4, allocations: 12.62 kB / 12.92 GB, free: 91.38 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.01824/55.42, allocations: 6.873 MB / 12.93 GB, free: 85.48 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.07744/55.49, allocations: 8.51 MB / 12.94 GB, free: 79.79 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1608/55.65, allocations: 41.47 MB / 12.98 GB, free: 45.1 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.05195/55.71, allocations: 14.27 MB / 12.99 GB, free: 33.9 MB / 1.042 GB Notification: Performance of SimCode: time 1.733e-06/55.71, allocations: 0 / 12.99 GB, free: 33.9 MB / 1.042 GB