Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.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.DryCoilDiscretizedPControl,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.615/1.615, allocations: 289.8 MB / 297.1 MB, free: 6.727 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.001314/0.001315, allocations: 181.3 kB / 366.3 MB, free: 1.992 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.664/1.664, allocations: 205.1 MB / 0.6256 GB, free: 5.816 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.001052/0.001052, allocations: 85.05 kB / 0.7395 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2792/0.2803, allocations: 122.4 MB / 0.8591 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6447/0.925, allocations: 116.3 MB / 0.9727 GB, free: 68.41 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.876/5.801, allocations: 2.38 GB / 3.353 GB, free: 30.57 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/5.801, allocations: 92.08 kB / 3.353 GB, free: 30.53 MB / 0.948 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: 3010 * Number of variables: 3010 Notification: Performance of Generate backend data structure: time 36.16/41.96, allocations: 9.26 GB / 12.61 GB, free: 45.99 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/41.96, allocations: 7.344 kB / 12.61 GB, free: 45.99 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03009/41.99, allocations: 3.593 MB / 12.62 GB, free: 45.03 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07944/42.07, allocations: 29.09 MB / 12.64 GB, free: 42.6 MB / 1.073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001507/42.08, allocations: 373.3 kB / 12.64 GB, free: 42.6 MB / 1.073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007953/42.08, allocations: 0.7175 MB / 12.65 GB, free: 42.59 MB / 1.073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05402/42.14, allocations: 19.14 MB / 12.66 GB, free: 41.21 MB / 1.073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07458/42.21, allocations: 20.24 MB / 12.68 GB, free: 25.61 MB / 1.073 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001382/42.21, allocations: 35.53 kB / 12.68 GB, free: 25.57 MB / 1.073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007769/42.22, allocations: 12 kB / 12.68 GB, free: 25.56 MB / 1.073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006965/42.22, allocations: 0.5579 MB / 12.68 GB, free: 25.05 MB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.586/43.81, allocations: 97.11 MB / 12.78 GB, free: 141.2 MB / 1.104 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01729/43.83, allocations: 9.575 MB / 12.79 GB, free: 141.1 MB / 1.104 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01439/43.84, allocations: 8.541 MB / 12.8 GB, free: 141.1 MB / 1.104 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00175/43.84, allocations: 1.165 MB / 12.8 GB, free: 139.9 MB / 1.104 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0143/43.86, allocations: 7.202 MB / 12.81 GB, free: 139.8 MB / 1.104 GB Notification: Performance of pre-optimization done (n=712): time 1.594e-05/43.86, allocations: 0 / 12.81 GB, free: 139.8 MB / 1.104 GB Notification: Performance of matching and sorting (n=724): time 0.09348/43.95, allocations: 29.83 MB / 12.83 GB, free: 137.9 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000147/43.95, allocations: 254.7 kB / 12.83 GB, free: 137.6 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04464/43.99, allocations: 15.12 MB / 12.85 GB, free: 137.1 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.003515/44, allocations: 39.7 kB / 12.85 GB, free: 137.1 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.01758/44.02, allocations: 4.62 MB / 12.85 GB, free: 135.6 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.01897/44.03, allocations: 2.519 MB / 12.86 GB, free: 134.3 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001267/44.04, allocations: 3.406 kB / 12.86 GB, free: 134.3 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.0009771/44.04, allocations: 0.6583 MB / 12.86 GB, free: 134 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01088/44.05, allocations: 6.326 MB / 12.86 GB, free: 134 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0148/44.06, allocations: 8.667 MB / 12.87 GB, free: 131.9 MB / 1.104 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01626/44.08, allocations: 8.36 MB / 12.88 GB, free: 131.8 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001381/44.08, allocations: 9.562 kB / 12.88 GB, free: 131.8 MB / 1.104 GB Notification: Performance of matching and sorting (n=951) (initialization): time 0.04117/44.12, allocations: 15.89 MB / 12.9 GB, free: 131.1 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 0.004787/44.13, allocations: 20.84 MB / 12.92 GB, free: 109.4 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001422/44.13, allocations: 36.56 kB / 12.92 GB, free: 109.4 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001596/44.13, allocations: 496.2 kB / 12.92 GB, free: 109.4 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01226/44.14, allocations: 1.853 MB / 12.92 GB, free: 109.4 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007508/44.15, allocations: 5.653 MB / 12.92 GB, free: 107.5 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02376/44.17, allocations: 1.618 MB / 12.93 GB, free: 107.5 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003925/44.17, allocations: 302.4 kB / 12.93 GB, free: 107.5 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/44.17, allocations: 5.484 kB / 12.93 GB, free: 107.5 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03583/44.21, allocations: 14.7 MB / 12.94 GB, free: 107.3 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002124/44.21, allocations: 36.2 kB / 12.94 GB, free: 107.3 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/44.21, allocations: 499.8 kB / 12.94 GB, free: 107.3 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0116/44.22, allocations: 1.844 MB / 12.94 GB, free: 107.3 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007344/44.23, allocations: 5.058 MB / 12.95 GB, free: 106 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02404/44.26, allocations: 1.59 MB / 12.95 GB, free: 105.9 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005006/44.26, allocations: 305.4 kB / 12.95 GB, free: 105.9 MB / 1.104 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.007066/44.27, allocations: 312.5 kB / 12.95 GB, free: 105.7 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008264/44.28, allocations: 1.149 MB / 12.95 GB, free: 105.1 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04233/44.32, allocations: 15.08 MB / 12.97 GB, free: 104.7 MB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.613e-05/44.32, allocations: 71.44 kB / 12.97 GB, free: 104.7 MB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.316e-05/44.32, allocations: 3.531 kB / 12.97 GB, free: 104.7 MB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02688/44.35, allocations: 12.5 MB / 12.98 GB, free: 104.2 MB / 1.104 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1085/44.45, allocations: 36.33 MB / 13.01 GB, free: 102.9 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.928e-05/44.45, allocations: 5.969 kB / 13.01 GB, free: 102.9 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01213/44.47, allocations: 1.907 MB / 13.01 GB, free: 102.9 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001645/44.47, allocations: 446.3 kB / 13.02 GB, free: 102.9 MB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002389/44.47, allocations: 158.2 kB / 13.02 GB, free: 102.9 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009172/44.48, allocations: 5.598 MB / 13.02 GB, free: 101 MB / 1.104 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.574e-05/44.48, allocations: 9.938 kB / 13.02 GB, free: 101 MB / 1.104 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05192/44.53, allocations: 25.01 MB / 13.05 GB, free: 98.08 MB / 1.104 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.07926/44.61, allocations: 35.62 MB / 13.08 GB, free: 94.76 MB / 1.104 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01838/44.63, allocations: 4.056 MB / 13.08 GB, free: 92.12 MB / 1.104 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008484/44.64, allocations: 111.6 kB / 13.08 GB, free: 92.06 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02037/44.66, allocations: 1.384 MB / 13.09 GB, free: 91.21 MB / 1.104 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002846/44.66, allocations: 385.8 kB / 13.09 GB, free: 91.04 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002557/44.66, allocations: 268 kB / 13.09 GB, free: 90.87 MB / 1.104 GB Notification: Performance of sort global known variables: time 0.02852/44.69, allocations: 11.87 MB / 13.1 GB, free: 81.25 MB / 1.104 GB Notification: Performance of remove unused functions: time 0.05874/44.75, allocations: 9.254 MB / 13.11 GB, free: 72.07 MB / 1.104 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.01096/44.76, allocations: 5.18 MB / 13.11 GB, free: 67.98 MB / 1.104 GB Notification: Performance of simCode: created initialization part: time 0.04278/44.81, allocations: 22.26 MB / 13.13 GB, free: 48.84 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 2.987e-05/44.81, allocations: 6.781 kB / 13.13 GB, free: 48.83 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.01291/44.82, allocations: 6.926 MB / 13.14 GB, free: 42.89 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05206/44.87, allocations: 8.496 MB / 13.15 GB, free: 37.18 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1433/45.01, allocations: 41.3 MB / 13.19 GB, free: 2.641 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.7998/45.81, allocations: 14.19 MB / 13.2 GB, free: 132.1 MB / 1.104 GB Notification: Performance of SimCode: time 1.753e-06/45.81, allocations: 0 / 13.2 GB, free: 132.1 MB / 1.104 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe 2>&1)