Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.164/2.164, allocations: 390.4 MB / 397.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 184.1 kB / 490.8 MB, free: 1.945 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.724/1.724, allocations: 221.3 MB / 0.7863 GB, free: 13.74 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009439/0.0009438, allocations: 95.06 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.73/0.731, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/1.06, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.59/6.651, allocations: 2.213 GB / 3.425 GB, free: 110.5 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/6.651, allocations: 95.12 kB / 3.425 GB, free: 110.5 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 48.18/54.83, allocations: 11.76 GB / 15.18 GB, free: 68.79 MB / 1.292 GB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/54.83, allocations: 13.28 kB / 15.18 GB, free: 68.79 MB / 1.292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04218/54.88, allocations: 4.122 MB / 15.19 GB, free: 67.75 MB / 1.292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1106/54.99, allocations: 36.36 MB / 15.22 GB, free: 64.93 MB / 1.292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002355/54.99, allocations: 443.5 kB / 15.22 GB, free: 64.92 MB / 1.292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01242/55, allocations: 0.8089 MB / 15.22 GB, free: 64.91 MB / 1.292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06831/55.07, allocations: 22.11 MB / 15.24 GB, free: 64.86 MB / 1.292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.108/55.18, allocations: 23.27 MB / 15.27 GB, free: 60.03 MB / 1.292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001724/55.18, allocations: 35.5 kB / 15.27 GB, free: 60 MB / 1.292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01229/55.19, allocations: 12 kB / 15.27 GB, free: 59.98 MB / 1.292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001315/55.19, allocations: 0.6074 MB / 15.27 GB, free: 59.42 MB / 1.292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.95/57.14, allocations: 104.5 MB / 15.37 GB, free: 201.4 MB / 1.323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01592/57.16, allocations: 9.061 MB / 15.38 GB, free: 201.4 MB / 1.323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01492/57.17, allocations: 9.735 MB / 15.39 GB, free: 201.3 MB / 1.323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002053/57.18, allocations: 1.174 MB / 15.39 GB, free: 200.2 MB / 1.323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01567/57.19, allocations: 8.418 MB / 15.4 GB, free: 199.9 MB / 1.323 GB Notification: Performance of pre-optimization done (n=796): time 1.514e-05/57.19, allocations: 0 / 15.4 GB, free: 199.9 MB / 1.323 GB Notification: Performance of matching and sorting (n=809): time 0.1291/57.32, allocations: 37.3 MB / 15.43 GB, free: 194.6 MB / 1.323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001539/57.32, allocations: 324 kB / 15.43 GB, free: 194.3 MB / 1.323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04324/57.36, allocations: 15.32 MB / 15.45 GB, free: 193.7 MB / 1.323 GB Notification: Performance of collectPreVariables (initialization): time 0.0036/57.37, allocations: 42.23 kB / 15.45 GB, free: 193.7 MB / 1.323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0178/57.39, allocations: 5.361 MB / 15.45 GB, free: 191.9 MB / 1.323 GB Notification: Performance of collectInitialBindings (initialization): time 0.01472/57.4, allocations: 2.811 MB / 15.46 GB, free: 190.5 MB / 1.323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001801/57.4, allocations: 0 / 15.46 GB, free: 190.5 MB / 1.323 GB Notification: Performance of setup shared object (initialization): time 0.00118/57.4, allocations: 0.7059 MB / 15.46 GB, free: 190.2 MB / 1.323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01358/57.42, allocations: 6.98 MB / 15.47 GB, free: 190.2 MB / 1.323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01756/57.44, allocations: 9.422 MB / 15.47 GB, free: 187.8 MB / 1.323 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.1008/57.54, allocations: 28.32 MB / 15.5 GB, free: 187.5 MB / 1.323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-05/57.54, allocations: 14.81 kB / 15.5 GB, free: 187.5 MB / 1.323 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.0439/57.58, allocations: 17.31 MB / 15.52 GB, free: 186.6 MB / 1.323 GB Notification: Performance of prepare postOptimizeDAE: time 0.007093/57.59, allocations: 29.4 MB / 15.55 GB, free: 156.2 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002286/57.59, allocations: 48.03 kB / 15.55 GB, free: 156.2 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/57.59, allocations: 92.62 kB / 15.55 GB, free: 156.2 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01343/57.6, allocations: 2.181 MB / 15.55 GB, free: 156.2 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/57.6, allocations: 1.316 MB / 15.55 GB, free: 155 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02187/57.62, allocations: 1.541 MB / 15.55 GB, free: 155 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003668/57.63, allocations: 357.6 kB / 15.55 GB, free: 155 MB / 1.323 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/57.63, allocations: 3.781 kB / 15.55 GB, free: 155 MB / 1.323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04025/57.67, allocations: 16.01 MB / 15.57 GB, free: 154.8 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/57.67, allocations: 50.3 kB / 15.57 GB, free: 154.8 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001114/57.67, allocations: 94.28 kB / 15.57 GB, free: 154.8 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01298/57.68, allocations: 2.168 MB / 15.57 GB, free: 154.8 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001971/57.68, allocations: 117.8 kB / 15.57 GB, free: 154.8 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02298/57.7, allocations: 1.515 MB / 15.57 GB, free: 154.8 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003917/57.71, allocations: 363 kB / 15.57 GB, free: 154.8 MB / 1.323 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.006063/57.71, allocations: 344.3 kB / 15.57 GB, free: 154.6 MB / 1.323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006827/57.72, allocations: 1.265 MB / 15.57 GB, free: 153.9 MB / 1.323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0431/57.76, allocations: 16.49 MB / 15.59 GB, free: 153.6 MB / 1.323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001196/57.76, allocations: 81.03 kB / 15.59 GB, free: 153.6 MB / 1.323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.57e-05/57.76, allocations: 0.9062 kB / 15.59 GB, free: 153.6 MB / 1.323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03119/57.8, allocations: 13.58 MB / 15.6 GB, free: 153.1 MB / 1.323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.115/57.91, allocations: 42.73 MB / 15.65 GB, free: 150.4 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.814e-05/57.91, allocations: 21.28 kB / 15.65 GB, free: 150.4 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0125/57.92, allocations: 2.071 MB / 15.65 GB, free: 150.4 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001469/57.92, allocations: 48 kB / 15.65 GB, free: 150.4 MB / 1.323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00246/57.93, allocations: 168.5 kB / 15.65 GB, free: 150.4 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005953/57.93, allocations: 1.242 MB / 15.65 GB, free: 149.3 MB / 1.323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-05/57.93, allocations: 32.5 kB / 15.65 GB, free: 149.3 MB / 1.323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04849/57.98, allocations: 30.31 MB / 15.68 GB, free: 141.2 MB / 1.323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05945/58.04, allocations: 41.92 MB / 15.72 GB, free: 132.6 MB / 1.323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02204/58.06, allocations: 4.032 MB / 15.72 GB, free: 131.9 MB / 1.323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01151/58.07, allocations: 129.3 kB / 15.72 GB, free: 131.9 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02077/58.09, allocations: 1.351 MB / 15.73 GB, free: 131.8 MB / 1.323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003311/58.09, allocations: 472.7 kB / 15.73 GB, free: 131.8 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003273/58.1, allocations: 298.5 kB / 15.73 GB, free: 131.8 MB / 1.323 GB Notification: Performance of sort global known variables: time 0.03392/58.13, allocations: 12.21 MB / 15.74 GB, free: 131.5 MB / 1.323 GB Notification: Performance of remove unused functions: time 0.06341/58.19, allocations: 8.698 MB / 15.75 GB, free: 131.5 MB / 1.323 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.01368/58.21, allocations: 5.288 MB / 15.75 GB, free: 129.4 MB / 1.323 GB Notification: Performance of simCode: created initialization part: time 0.0511/58.26, allocations: 24.26 MB / 15.78 GB, free: 119.8 MB / 1.323 GB Notification: Performance of simCode: created event and clocks part: time 6.222e-05/58.26, allocations: 10.78 kB / 15.78 GB, free: 119.7 MB / 1.323 GB Notification: Performance of simCode: created simulation system equations: time 0.01752/58.28, allocations: 7.688 MB / 15.78 GB, free: 113.2 MB / 1.323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05308/58.33, allocations: 8.789 MB / 15.79 GB, free: 107.3 MB / 1.323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1357/58.47, allocations: 46.24 MB / 15.84 GB, free: 68.14 MB / 1.323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.05408/58.52, allocations: 15.95 MB / 15.85 GB, free: 55.65 MB / 1.323 GB Notification: Performance of SimCode: time 1.253e-06/58.52, allocations: 4.062 kB / 15.85 GB, free: 55.65 MB / 1.323 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe 2>&1)