Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.554/1.554, allocations: 289.8 MB / 297.1 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 185.2 kB / 366.3 MB, free: 1.961 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.1 MB / 0.6256 GB, free: 7.426 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009752/0.000975, allocations: 86.56 kB / 0.7395 GB, free: 39.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.299/0.3, allocations: 122.4 MB / 0.8591 GB, free: 13.47 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7258/1.026, allocations: 116.3 MB / 0.9726 GB, free: 76.14 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.251/6.277, allocations: 2.386 GB / 3.359 GB, free: 101.6 MB / 0.9636 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/6.277, allocations: 91.19 kB / 3.359 GB, free: 101.5 MB / 0.9636 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.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 45.84/52.12, allocations: 11.53 GB / 14.89 GB, free: 42.69 MB / 1.089 GB Notification: Performance of prepare preOptimizeDAE: time 6.585e-05/52.12, allocations: 12 kB / 14.89 GB, free: 42.68 MB / 1.089 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03746/52.16, allocations: 4.114 MB / 14.89 GB, free: 39.49 MB / 1.089 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1054/52.26, allocations: 35.86 MB / 14.93 GB, free: 4.484 MB / 1.089 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001307/52.26, allocations: 440 kB / 14.93 GB, free: 4.055 MB / 1.089 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009952/52.27, allocations: 0.8209 MB / 14.93 GB, free: 3.234 MB / 1.089 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 1.518/53.79, allocations: 22.07 MB / 14.95 GB, free: 148.1 MB / 1.104 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1004/53.89, allocations: 23.22 MB / 14.98 GB, free: 147.1 MB / 1.104 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001694/53.89, allocations: 33 kB / 14.98 GB, free: 147.1 MB / 1.104 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0111/53.9, allocations: 12.62 kB / 14.98 GB, free: 147.1 MB / 1.104 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001374/53.91, allocations: 0.6126 MB / 14.98 GB, free: 147.1 MB / 1.104 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2302/54.14, allocations: 101.9 MB / 15.08 GB, free: 116.3 MB / 1.104 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/54.16, allocations: 9.047 MB / 15.08 GB, free: 116.3 MB / 1.104 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01676/54.17, allocations: 9.715 MB / 15.09 GB, free: 116.1 MB / 1.104 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001741/54.18, allocations: 1.172 MB / 15.09 GB, free: 115 MB / 1.104 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01653/54.19, allocations: 8.385 MB / 15.1 GB, free: 114.8 MB / 1.104 GB Notification: Performance of pre-optimization done (n=796): time 1.62e-05/54.19, allocations: 0 / 15.1 GB, free: 114.8 MB / 1.104 GB Notification: Performance of matching and sorting (n=809): time 0.1199/54.31, allocations: 37.16 MB / 15.14 GB, free: 107.8 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001696/54.31, allocations: 319 kB / 15.14 GB, free: 107.5 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03728/54.35, allocations: 15.18 MB / 15.15 GB, free: 106.9 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.003696/54.35, allocations: 43.39 kB / 15.15 GB, free: 106.9 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.015/54.37, allocations: 5.368 MB / 15.16 GB, free: 105.1 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.01416/54.38, allocations: 2.804 MB / 15.16 GB, free: 103.3 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003556/54.39, allocations: 0 / 15.16 GB, free: 103.3 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.001657/54.39, allocations: 0.7136 MB / 15.16 GB, free: 103 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0133/54.4, allocations: 6.952 MB / 15.17 GB, free: 103 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0159/54.42, allocations: 9.693 MB / 15.18 GB, free: 100.4 MB / 1.104 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.1005/54.52, allocations: 27.93 MB / 15.21 GB, free: 100.1 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.934e-05/54.52, allocations: 13.56 kB / 15.21 GB, free: 100.1 MB / 1.104 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.04269/54.56, allocations: 17.25 MB / 15.22 GB, free: 99.23 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 0.006689/54.57, allocations: 29.31 MB / 15.25 GB, free: 68.75 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002825/54.57, allocations: 48.16 kB / 15.25 GB, free: 68.75 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002201/54.57, allocations: 95.81 kB / 15.25 GB, free: 68.75 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01354/54.58, allocations: 2.184 MB / 15.25 GB, free: 68.75 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009214/54.58, allocations: 1.317 MB / 15.26 GB, free: 67.58 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02132/54.6, allocations: 1.481 MB / 15.26 GB, free: 67.48 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003683/54.61, allocations: 351.3 kB / 15.26 GB, free: 67.48 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/54.61, allocations: 5.844 kB / 15.26 GB, free: 67.48 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03984/54.65, allocations: 15.95 MB / 15.27 GB, free: 67.32 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002026/54.65, allocations: 49.02 kB / 15.27 GB, free: 67.32 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001155/54.65, allocations: 97.16 kB / 15.27 GB, free: 67.32 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01253/54.66, allocations: 2.167 MB / 15.28 GB, free: 67.32 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002344/54.66, allocations: 116.3 kB / 15.28 GB, free: 67.32 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02179/54.68, allocations: 1.455 MB / 15.28 GB, free: 67.23 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003828/54.69, allocations: 353.7 kB / 15.28 GB, free: 67.23 MB / 1.104 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.006536/54.69, allocations: 351.8 kB / 15.28 GB, free: 67.06 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007632/54.7, allocations: 1.254 MB / 15.28 GB, free: 66.41 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04862/54.75, allocations: 16.44 MB / 15.29 GB, free: 66.06 MB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001413/54.75, allocations: 79.31 kB / 15.29 GB, free: 66.06 MB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-05/54.75, allocations: 0 / 15.29 GB, free: 66.06 MB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03697/54.79, allocations: 13.53 MB / 15.31 GB, free: 65.54 MB / 1.104 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1286/54.91, allocations: 42.56 MB / 15.35 GB, free: 36.78 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.183e-05/54.91, allocations: 19.91 kB / 15.35 GB, free: 36.76 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01386/54.93, allocations: 2.122 MB / 15.35 GB, free: 35.14 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002291/54.93, allocations: 45.53 kB / 15.35 GB, free: 35.09 MB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003697/54.93, allocations: 166.5 kB / 15.35 GB, free: 34.96 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009971/54.93, allocations: 1.24 MB / 15.35 GB, free: 33.7 MB / 1.104 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.771e-05/54.93, allocations: 32.06 kB / 15.35 GB, free: 33.68 MB / 1.104 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05648/54.99, allocations: 31.55 MB / 15.38 GB, free: 4.785 MB / 1.104 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 1.63/56.62, allocations: 43.19 MB / 15.43 GB, free: 142.4 MB / 1.104 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01794/56.64, allocations: 4.016 MB / 15.43 GB, free: 142.3 MB / 1.104 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009076/56.65, allocations: 125.5 kB / 15.43 GB, free: 142.3 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02312/56.67, allocations: 1.347 MB / 15.43 GB, free: 142.3 MB / 1.104 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003906/56.68, allocations: 470.3 kB / 15.43 GB, free: 142.3 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003037/56.68, allocations: 306.2 kB / 15.43 GB, free: 142.3 MB / 1.104 GB Notification: Performance of sort global known variables: time 0.03726/56.72, allocations: 12.09 MB / 15.44 GB, free: 141.9 MB / 1.104 GB Notification: Performance of remove unused functions: time 0.06315/56.78, allocations: 8.705 MB / 15.45 GB, free: 141.9 MB / 1.104 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.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.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 (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.0123/56.79, allocations: 5.284 MB / 15.46 GB, free: 139.9 MB / 1.104 GB Notification: Performance of simCode: created initialization part: time 0.0488/56.84, allocations: 24.17 MB / 15.48 GB, free: 139.6 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 4.053e-05/56.84, allocations: 14.56 kB / 15.48 GB, free: 139.6 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.01929/56.86, allocations: 7.665 MB / 15.49 GB, free: 139.6 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05681/56.92, allocations: 8.833 MB / 15.5 GB, free: 139.4 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1293/57.05, allocations: 45.89 MB / 15.54 GB, free: 133.8 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04606/57.09, allocations: 15.89 MB / 15.56 GB, free: 132.8 MB / 1.104 GB Notification: Performance of SimCode: time 1.643e-06/57.09, allocations: 0 / 15.56 GB, free: 132.8 MB / 1.104 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_WetCoilDiscretizedPControl.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WetCoilDiscretizedPControl.pipe 2>&1)