Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.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.DryCoilDiscretizedPControl,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.109/2.109, allocations: 390.4 MB / 397.7 MB, free: 10.7 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.001181/0.001181, allocations: 180.1 kB / 490.8 MB, free: 11.21 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.551/1.551, allocations: 221.4 MB / 0.7863 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009722/0.0009722, allocations: 81.5 kB / 0.9264 GB, free: 20.98 MB / 0.6042 GB Notification: Performance of FrontEnd - loaded program: time 0.3856/0.3866, allocations: 149.1 MB / 1.072 GB, free: 15.96 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9587/1.345, allocations: 143 MB / 1.212 GB, free: 53.34 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.531/6.876, allocations: 2.207 GB / 3.419 GB, free: 295.4 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/6.877, allocations: 92.89 kB / 3.419 GB, free: 295.3 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: 3010 * Number of variables: 3010 Notification: Performance of Generate backend data structure: time 38.05/44.92, allocations: 9.407 GB / 12.83 GB, free: 84.54 MB / 1.292 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/44.92, allocations: 10.28 kB / 12.83 GB, free: 84.54 MB / 1.292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03677/44.96, allocations: 3.587 MB / 12.83 GB, free: 83.6 MB / 1.292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09195/45.05, allocations: 29.55 MB / 12.86 GB, free: 81.54 MB / 1.292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001129/45.05, allocations: 378.2 kB / 12.86 GB, free: 81.54 MB / 1.292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008087/45.06, allocations: 0.6946 MB / 12.86 GB, free: 81.54 MB / 1.292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05248/45.11, allocations: 19.18 MB / 12.88 GB, free: 81.49 MB / 1.292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07579/45.19, allocations: 20.28 MB / 12.9 GB, free: 80.55 MB / 1.292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001376/45.19, allocations: 37.3 kB / 12.9 GB, free: 80.55 MB / 1.292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007838/45.2, allocations: 15.22 kB / 12.9 GB, free: 80.55 MB / 1.292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009911/45.2, allocations: 0.5463 MB / 12.9 GB, free: 80.52 MB / 1.292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2092/45.41, allocations: 99.71 MB / 13 GB, free: 45.15 MB / 1.292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01827/45.43, allocations: 8.018 MB / 13 GB, free: 45.11 MB / 1.292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01902/45.45, allocations: 8.563 MB / 13.01 GB, free: 45.04 MB / 1.292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002122/45.45, allocations: 1.159 MB / 13.01 GB, free: 43.9 MB / 1.292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01692/45.46, allocations: 7.24 MB / 13.02 GB, free: 43.72 MB / 1.292 GB Notification: Performance of pre-optimization done (n=712): time 1.343e-05/45.46, allocations: 0 / 13.02 GB, free: 43.72 MB / 1.292 GB Notification: Performance of matching and sorting (n=724): time 0.1131/45.58, allocations: 29.94 MB / 13.05 GB, free: 32.87 MB / 1.292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/45.58, allocations: 261.6 kB / 13.05 GB, free: 32.57 MB / 1.292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03997/45.62, allocations: 15.25 MB / 13.07 GB, free: 19.66 MB / 1.292 GB Notification: Performance of collectPreVariables (initialization): time 0.003233/45.62, allocations: 37.7 kB / 13.07 GB, free: 19.61 MB / 1.292 GB Notification: Performance of collectInitialEqns (initialization): time 0.01451/45.64, allocations: 4.612 MB / 13.07 GB, free: 15.64 MB / 1.292 GB Notification: Performance of collectInitialBindings (initialization): time 0.02284/45.66, allocations: 2.518 MB / 13.07 GB, free: 13.3 MB / 1.292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002787/45.66, allocations: 0 / 13.07 GB, free: 13.3 MB / 1.292 GB Notification: Performance of setup shared object (initialization): time 0.001447/45.66, allocations: 0.6619 MB / 13.07 GB, free: 12.73 MB / 1.292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01099/45.67, allocations: 6.354 MB / 13.08 GB, free: 7.301 MB / 1.292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01481/45.69, allocations: 8.333 MB / 13.09 GB, free: 15.46 MB / 1.307 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02038/45.71, allocations: 8.347 MB / 13.1 GB, free: 8.664 MB / 1.307 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000146/45.71, allocations: 12 kB / 13.1 GB, free: 8.652 MB / 1.307 GB Notification: Performance of matching and sorting (n=951) (initialization): time 0.06997/45.78, allocations: 17.67 MB / 13.11 GB, free: 15.24 MB / 1.323 GB Notification: Performance of prepare postOptimizeDAE: time 0.01248/45.79, allocations: 20.84 MB / 13.13 GB, free: 9.395 MB / 1.339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003081/45.79, allocations: 35.56 kB / 13.13 GB, free: 9.363 MB / 1.339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001963/45.79, allocations: 498.1 kB / 13.13 GB, free: 8.953 MB / 1.339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01256/45.81, allocations: 1.872 MB / 13.14 GB, free: 7.504 MB / 1.339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00931/45.82, allocations: 5.649 MB / 13.14 GB, free: 2.402 MB / 1.339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02262/45.84, allocations: 1.667 MB / 13.14 GB, free: 1.363 MB / 1.339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003582/45.84, allocations: 302.7 kB / 13.14 GB, free: 1.09 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/45.84, allocations: 4 kB / 13.14 GB, free: 1.086 MB / 1.339 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.587/47.43, allocations: 16.53 MB / 13.16 GB, free: 197.4 MB / 1.339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001473/47.43, allocations: 36.03 kB / 13.16 GB, free: 197.4 MB / 1.339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/47.43, allocations: 499.1 kB / 13.16 GB, free: 197.4 MB / 1.339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01038/47.44, allocations: 1.853 MB / 13.16 GB, free: 197.4 MB / 1.339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007132/47.45, allocations: 5.056 MB / 13.17 GB, free: 196.2 MB / 1.339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02693/47.48, allocations: 1.646 MB / 13.17 GB, free: 196.2 MB / 1.339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004356/47.48, allocations: 299.2 kB / 13.17 GB, free: 196.2 MB / 1.339 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.007918/47.49, allocations: 308.3 kB / 13.17 GB, free: 196 MB / 1.339 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009601/47.5, allocations: 1.158 MB / 13.17 GB, free: 196 MB / 1.339 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05177/47.55, allocations: 15.15 MB / 13.18 GB, free: 195.7 MB / 1.339 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000158/47.55, allocations: 78.36 kB / 13.18 GB, free: 195.7 MB / 1.339 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-05/47.55, allocations: 2.906 kB / 13.18 GB, free: 195.7 MB / 1.339 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03898/47.59, allocations: 12.55 MB / 13.2 GB, free: 195.1 MB / 1.339 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1375/47.73, allocations: 36.5 MB / 13.23 GB, free: 193.9 MB / 1.339 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001132/47.73, allocations: 7.188 kB / 13.23 GB, free: 193.9 MB / 1.339 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01298/47.74, allocations: 1.864 MB / 13.23 GB, free: 193.9 MB / 1.339 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001901/47.74, allocations: 447.1 kB / 13.23 GB, free: 193.9 MB / 1.339 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004139/47.75, allocations: 150.5 kB / 13.23 GB, free: 193.9 MB / 1.339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01084/47.76, allocations: 5.596 MB / 13.24 GB, free: 192.1 MB / 1.339 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.816e-05/47.76, allocations: 11.66 kB / 13.24 GB, free: 192.1 MB / 1.339 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06042/47.82, allocations: 23.83 MB / 13.26 GB, free: 189.8 MB / 1.339 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.07712/47.89, allocations: 34.43 MB / 13.3 GB, free: 187 MB / 1.339 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02137/47.92, allocations: 4.073 MB / 13.3 GB, free: 186.5 MB / 1.339 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01035/47.93, allocations: 114.2 kB / 13.3 GB, free: 186.5 MB / 1.339 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02322/47.95, allocations: 1.387 MB / 13.3 GB, free: 186.5 MB / 1.339 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004/47.95, allocations: 393.4 kB / 13.3 GB, free: 186.5 MB / 1.339 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003622/47.96, allocations: 269.1 kB / 13.3 GB, free: 186.5 MB / 1.339 GB Notification: Performance of sort global known variables: time 0.03619/47.99, allocations: 11.99 MB / 13.31 GB, free: 186.1 MB / 1.339 GB Notification: Performance of remove unused functions: time 0.07033/48.06, allocations: 9.245 MB / 13.32 GB, free: 186.1 MB / 1.339 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.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].vol2.dynBal.m,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.0141/48.08, allocations: 5.198 MB / 13.33 GB, free: 184.1 MB / 1.339 GB Notification: Performance of simCode: created initialization part: time 0.04963/48.13, allocations: 22.34 MB / 13.35 GB, free: 183.7 MB / 1.339 GB Notification: Performance of simCode: created event and clocks part: time 3.804e-05/48.13, allocations: 12.53 kB / 13.35 GB, free: 183.7 MB / 1.339 GB Notification: Performance of simCode: created simulation system equations: time 0.01483/48.14, allocations: 6.939 MB / 13.36 GB, free: 183.5 MB / 1.339 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05564/48.2, allocations: 8.451 MB / 13.37 GB, free: 183.4 MB / 1.339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.16/48.36, allocations: 41.63 MB / 13.41 GB, free: 178.6 MB / 1.339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.05313/48.41, allocations: 14.22 MB / 13.42 GB, free: 177.6 MB / 1.339 GB Notification: Performance of SimCode: time 1.282e-06/48.41, allocations: 0 / 13.42 GB, free: 177.6 MB / 1.339 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe 2>&1)