Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl",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 9.1.1-maint.9.1.x/package.mo): time 1.97/1.97, allocations: 387.2 MB / 394.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 181.7 kB / 487 MB, free: 0.6602 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 221.3 MB / 0.7819 GB, free: 6.707 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 98.98 kB / 0.9213 GB, free: 43.62 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3202/0.3212, allocations: 148.5 MB / 1.066 GB, free: 7.422 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8643/1.186, allocations: 142.3 MB / 1.205 GB, free: 72.83 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.93/6.115, allocations: 2.212 GB / 3.418 GB, free: 306.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/6.116, allocations: 87.95 kB / 3.418 GB, free: 306.6 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 42.49/48.6, allocations: 11.76 GB / 15.18 GB, free: 73.5 MB / 1.292 GB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/48.6, allocations: 12.59 kB / 15.18 GB, free: 73.5 MB / 1.292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03366/48.64, allocations: 4.119 MB / 15.18 GB, free: 72.46 MB / 1.292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09901/48.74, allocations: 36.35 MB / 15.21 GB, free: 70.08 MB / 1.292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001247/48.74, allocations: 439.4 kB / 15.22 GB, free: 70.08 MB / 1.292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009047/48.75, allocations: 0.8096 MB / 15.22 GB, free: 70.07 MB / 1.292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06242/48.81, allocations: 22.11 MB / 15.24 GB, free: 70.02 MB / 1.292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08377/48.89, allocations: 23.26 MB / 15.26 GB, free: 69.02 MB / 1.292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001347/48.9, allocations: 29.72 kB / 15.26 GB, free: 69.01 MB / 1.292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009381/48.9, allocations: 12.31 kB / 15.26 GB, free: 69.01 MB / 1.292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007612/48.91, allocations: 0.6179 MB / 15.26 GB, free: 68.98 MB / 1.292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.211/49.12, allocations: 104.4 MB / 15.36 GB, free: 35.1 MB / 1.292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01746/49.13, allocations: 9.065 MB / 15.37 GB, free: 35.05 MB / 1.292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01905/49.15, allocations: 9.726 MB / 15.38 GB, free: 34.77 MB / 1.292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00219/49.16, allocations: 1.175 MB / 15.38 GB, free: 33.61 MB / 1.292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0209/49.18, allocations: 8.417 MB / 15.39 GB, free: 31.21 MB / 1.292 GB Notification: Performance of pre-optimization done (n=796): time 3.593e-05/49.18, allocations: 2.719 kB / 15.39 GB, free: 31.21 MB / 1.292 GB Notification: Performance of matching and sorting (n=809): time 0.1358/49.31, allocations: 37.31 MB / 15.43 GB, free: 19.27 MB / 1.307 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000235/49.31, allocations: 317.5 kB / 15.43 GB, free: 18.9 MB / 1.307 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04678/49.36, allocations: 15.33 MB / 15.44 GB, free: 5.895 MB / 1.307 GB Notification: Performance of collectPreVariables (initialization): time 0.003639/49.36, allocations: 37.7 kB / 15.44 GB, free: 5.852 MB / 1.307 GB Notification: Performance of collectInitialEqns (initialization): time 0.01939/49.38, allocations: 5.354 MB / 15.45 GB, free: 1.227 MB / 1.307 GB Notification: Performance of collectInitialBindings (initialization): time 0.01447/49.4, allocations: 2.804 MB / 15.45 GB, free: 14.62 MB / 1.323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002275/49.4, allocations: 4 kB / 15.45 GB, free: 14.62 MB / 1.323 GB Notification: Performance of setup shared object (initialization): time 0.001271/49.4, allocations: 0.7092 MB / 15.45 GB, free: 14 MB / 1.323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01358/49.41, allocations: 6.988 MB / 15.46 GB, free: 8.02 MB / 1.323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01769/49.43, allocations: 9.417 MB / 15.47 GB, free: 14.97 MB / 1.339 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: hex.hexReg[1].ele[1,1].vol2.dynBal.medium.p = 101325.0 (sin_2.p = 101325.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.1037/49.54, allocations: 28.36 MB / 15.49 GB, free: 9.844 MB / 1.354 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.578e-05/49.54, allocations: 16 kB / 15.49 GB, free: 9.828 MB / 1.354 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 1.543/51.08, allocations: 19.04 MB / 15.51 GB, free: 216.3 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 0.005836/51.08, allocations: 29.39 MB / 15.54 GB, free: 186 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002213/51.08, allocations: 45.38 kB / 15.54 GB, free: 186 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001953/51.08, allocations: 93.09 kB / 15.54 GB, free: 186 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01334/51.1, allocations: 2.187 MB / 15.54 GB, free: 186 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008905/51.1, allocations: 1.313 MB / 15.55 GB, free: 184.9 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01973/51.12, allocations: 1.547 MB / 15.55 GB, free: 184.9 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003356/51.12, allocations: 351.2 kB / 15.55 GB, free: 184.9 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/51.12, allocations: 5.812 kB / 15.55 GB, free: 184.9 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03497/51.16, allocations: 16.02 MB / 15.56 GB, free: 184.7 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002931/51.16, allocations: 45.41 kB / 15.56 GB, free: 184.7 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/51.16, allocations: 93.97 kB / 15.56 GB, free: 184.7 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01306/51.17, allocations: 2.166 MB / 15.57 GB, free: 184.7 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002603/51.17, allocations: 115 kB / 15.57 GB, free: 184.7 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02042/51.19, allocations: 1.512 MB / 15.57 GB, free: 184.7 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003629/51.2, allocations: 353.7 kB / 15.57 GB, free: 184.7 MB / 1.354 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: hex.hexReg[1].ele[1,1].vol2.dynBal.medium.p = 101325.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 213 * 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 (1086): * Single equations (assignments): 1083 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006725/51.2, allocations: 359 kB / 15.57 GB, free: 184.6 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007442/51.21, allocations: 1.262 MB / 15.57 GB, free: 184.6 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04806/51.26, allocations: 16.5 MB / 15.59 GB, free: 184.2 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001529/51.26, allocations: 76.81 kB / 15.59 GB, free: 184.2 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.435e-05/51.26, allocations: 1.531 kB / 15.59 GB, free: 184.2 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03272/51.29, allocations: 13.58 MB / 15.6 GB, free: 183.7 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1205/51.41, allocations: 42.71 MB / 15.64 GB, free: 181.2 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.763e-05/51.41, allocations: 17.56 kB / 15.64 GB, free: 181.2 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01219/51.42, allocations: 2.073 MB / 15.64 GB, free: 181.2 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001571/51.42, allocations: 48.78 kB / 15.64 GB, free: 181.2 MB / 1.354 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002385/51.43, allocations: 171.4 kB / 15.64 GB, free: 181.2 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005964/51.43, allocations: 1.243 MB / 15.64 GB, free: 180.1 MB / 1.354 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-05/51.43, allocations: 31.36 kB / 15.64 GB, free: 180.1 MB / 1.354 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04579/51.47, allocations: 30.32 MB / 15.67 GB, free: 172.7 MB / 1.354 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06746/51.54, allocations: 41.91 MB / 15.71 GB, free: 164.9 MB / 1.354 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01724/51.56, allocations: 4.026 MB / 15.72 GB, free: 164.5 MB / 1.354 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008997/51.57, allocations: 135.6 kB / 15.72 GB, free: 164.5 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02024/51.59, allocations: 1.345 MB / 15.72 GB, free: 164.5 MB / 1.354 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003547/51.59, allocations: 472.5 kB / 15.72 GB, free: 164.4 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003298/51.59, allocations: 308.6 kB / 15.72 GB, free: 164.4 MB / 1.354 GB Notification: Performance of sort global known variables: time 0.03207/51.63, allocations: 12.21 MB / 15.73 GB, free: 164.1 MB / 1.354 GB Notification: Performance of remove unused functions: time 0.05646/51.68, allocations: 8.694 MB / 15.74 GB, free: 164.1 MB / 1.354 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 50 (temSen.T,hex.hexReg[1].ele[1,1].vol1.dynBal.U,hex.hexReg[1].ele[1,1].vol2.dynBal.medium.Xi[1],hex.hexReg[1].ele[1,1].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[1].ele[1,2].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[1].ele[1,3].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[2].ele[1,1].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[2].ele[1,2].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[2].ele[1,3].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[3].ele[1,1].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[3].ele[1,2].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[3].ele[1,3].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[4].ele[1,1].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[4].ele[1,2].vol2.dynBal.U,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.medium.Xi[1],hex.hexReg[4].ele[1,3].vol2.dynBal.U,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 (815): * Single equations (assignments): 808 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01082/51.69, allocations: 5.308 MB / 15.75 GB, free: 162 MB / 1.354 GB Notification: Performance of simCode: created initialization part: time 0.0513/51.74, allocations: 24.25 MB / 15.77 GB, free: 161.8 MB / 1.354 GB Notification: Performance of simCode: created event and clocks part: time 4.325e-05/51.74, allocations: 10.53 kB / 15.77 GB, free: 161.8 MB / 1.354 GB Notification: Performance of simCode: created simulation system equations: time 0.01597/51.76, allocations: 7.687 MB / 15.78 GB, free: 161.7 MB / 1.354 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04976/51.81, allocations: 8.775 MB / 15.79 GB, free: 161.6 MB / 1.354 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1357/51.95, allocations: 46.25 MB / 15.83 GB, free: 155.9 MB / 1.354 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04654/51.99, allocations: 15.95 MB / 15.85 GB, free: 154.9 MB / 1.354 GB Notification: Performance of SimCode: time 1.252e-06/51.99, allocations: 0 / 15.85 GB, free: 154.9 MB / 1.354 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe 2>&1)