Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.529/2.529, allocations: 284.8 MB / 292.1 MB, free: 10.75 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.001647/0.001647, allocations: 181.3 kB / 360.3 MB, free: 7.551 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.877/1.877, allocations: 205.1 MB / 0.6187 GB, free: 13.3 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.001277/0.001276, allocations: 96.95 kB / 0.7317 GB, free: 45.14 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2991/0.3004, allocations: 121.4 MB / 0.8502 GB, free: 3.961 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6213/0.9218, allocations: 115.2 MB / 0.9627 GB, free: 78.57 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.553/6.475, allocations: 2.379 GB / 3.342 GB, free: 98.86 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002943/6.475, allocations: 92.92 kB / 3.342 GB, free: 98.81 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 45.65/52.13, allocations: 9.26 GB / 12.6 GB, free: 51.52 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/52.13, allocations: 8.438 kB / 12.6 GB, free: 51.52 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04894/52.18, allocations: 3.576 MB / 12.61 GB, free: 50.6 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1146/52.29, allocations: 29.11 MB / 12.63 GB, free: 48.53 MB / 1.073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001045/52.29, allocations: 373.9 kB / 12.63 GB, free: 48.53 MB / 1.073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009076/52.3, allocations: 0.7095 MB / 12.63 GB, free: 48.53 MB / 1.073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07075/52.37, allocations: 19.15 MB / 12.65 GB, free: 48.48 MB / 1.073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08627/52.46, allocations: 20.24 MB / 12.67 GB, free: 47.54 MB / 1.073 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001163/52.46, allocations: 31.34 kB / 12.67 GB, free: 47.53 MB / 1.073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007253/52.47, allocations: 15.19 kB / 12.67 GB, free: 47.53 MB / 1.073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008544/52.47, allocations: 0.5551 MB / 12.67 GB, free: 47.51 MB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.254/52.72, allocations: 97.09 MB / 12.77 GB, free: 10.01 MB / 1.089 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02938/52.75, allocations: 9.577 MB / 12.78 GB, free: 1.906 MB / 1.089 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.05335/52.8, allocations: 9.787 MB / 12.79 GB, free: 13.47 MB / 1.104 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002601/52.81, allocations: 1.164 MB / 12.79 GB, free: 12.15 MB / 1.104 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02738/52.83, allocations: 7.2 MB / 12.8 GB, free: 6.449 MB / 1.104 GB Notification: Performance of pre-optimization done (n=712): time 2.217e-05/52.84, allocations: 0 / 12.8 GB, free: 6.449 MB / 1.104 GB Notification: Performance of matching and sorting (n=724): time 1.435/54.27, allocations: 29.84 MB / 12.82 GB, free: 172.9 MB / 1.104 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/54.27, allocations: 258.9 kB / 12.82 GB, free: 172.7 MB / 1.104 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04758/54.32, allocations: 15.11 MB / 12.84 GB, free: 172.2 MB / 1.104 GB Notification: Performance of collectPreVariables (initialization): time 0.002995/54.32, allocations: 36.08 kB / 12.84 GB, free: 172.1 MB / 1.104 GB Notification: Performance of collectInitialEqns (initialization): time 0.01567/54.34, allocations: 4.635 MB / 12.84 GB, free: 170.7 MB / 1.104 GB Notification: Performance of collectInitialBindings (initialization): time 0.02514/54.36, allocations: 2.517 MB / 12.85 GB, free: 169.2 MB / 1.104 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002545/54.36, allocations: 0 / 12.85 GB, free: 169.2 MB / 1.104 GB Notification: Performance of setup shared object (initialization): time 0.00138/54.37, allocations: 0.6559 MB / 12.85 GB, free: 168.9 MB / 1.104 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01885/54.39, allocations: 6.323 MB / 12.85 GB, free: 168.8 MB / 1.104 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02114/54.41, allocations: 8.673 MB / 12.86 GB, free: 166.8 MB / 1.104 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02306/54.43, allocations: 8.352 MB / 12.87 GB, free: 166.7 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/54.43, allocations: 13.75 kB / 12.87 GB, free: 166.7 MB / 1.104 GB Notification: Performance of matching and sorting (n=951) (initialization): time 0.05733/54.49, allocations: 15.89 MB / 12.89 GB, free: 165.9 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 0.005097/54.49, allocations: 20.85 MB / 12.91 GB, free: 144.3 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002966/54.49, allocations: 38.09 kB / 12.91 GB, free: 144.3 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002398/54.49, allocations: 492.6 kB / 12.91 GB, free: 144.2 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01878/54.51, allocations: 1.863 MB / 12.91 GB, free: 144.2 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01351/54.53, allocations: 5.651 MB / 12.91 GB, free: 142.4 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03194/54.56, allocations: 1.623 MB / 12.92 GB, free: 142.3 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00307/54.56, allocations: 300.9 kB / 12.92 GB, free: 142.3 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/54.56, allocations: 3.469 kB / 12.92 GB, free: 142.3 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04643/54.61, allocations: 14.71 MB / 12.93 GB, free: 142.1 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001862/54.61, allocations: 32.38 kB / 12.93 GB, free: 142.1 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/54.61, allocations: 493.3 kB / 12.93 GB, free: 142.1 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01847/54.63, allocations: 1.847 MB / 12.93 GB, free: 142.1 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/54.64, allocations: 5.06 MB / 12.94 GB, free: 140.8 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03168/54.67, allocations: 1.591 MB / 12.94 GB, free: 140.7 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003229/54.68, allocations: 299.4 kB / 12.94 GB, free: 140.7 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.005876/54.68, allocations: 315.9 kB / 12.94 GB, free: 140.5 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007124/54.69, allocations: 1.145 MB / 12.94 GB, free: 139.9 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05379/54.74, allocations: 15.09 MB / 12.96 GB, free: 139.5 MB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001204/54.74, allocations: 68.25 kB / 12.96 GB, free: 139.5 MB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.884e-05/54.74, allocations: 5.562 kB / 12.96 GB, free: 139.5 MB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05302/54.8, allocations: 12.49 MB / 12.97 GB, free: 139 MB / 1.104 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1303/54.93, allocations: 36.34 MB / 13 GB, free: 137.7 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.826e-05/54.93, allocations: 3.938 kB / 13 GB, free: 137.7 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02121/54.95, allocations: 1.901 MB / 13 GB, free: 137.7 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002343/54.95, allocations: 455.1 kB / 13.01 GB, free: 137.7 MB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002802/54.95, allocations: 147 kB / 13.01 GB, free: 137.7 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01165/54.97, allocations: 5.599 MB / 13.01 GB, free: 135.8 MB / 1.104 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.197e-05/54.97, allocations: 5.531 kB / 13.01 GB, free: 135.8 MB / 1.104 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07649/55.04, allocations: 25.02 MB / 13.04 GB, free: 132.9 MB / 1.104 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0962/55.14, allocations: 35.61 MB / 13.07 GB, free: 129.6 MB / 1.104 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0216/55.16, allocations: 4.058 MB / 13.07 GB, free: 128.9 MB / 1.104 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007993/55.17, allocations: 117.3 kB / 13.07 GB, free: 128.9 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02723/55.2, allocations: 1.379 MB / 13.08 GB, free: 128.8 MB / 1.104 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003029/55.2, allocations: 390.5 kB / 13.08 GB, free: 128.8 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00271/55.2, allocations: 270.5 kB / 13.08 GB, free: 128.8 MB / 1.104 GB Notification: Performance of sort global known variables: time 0.03822/55.24, allocations: 11.87 MB / 13.09 GB, free: 128.5 MB / 1.104 GB Notification: Performance of remove unused functions: time 0.06968/55.31, allocations: 9.252 MB / 13.1 GB, free: 128.5 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.01317/55.32, allocations: 5.19 MB / 13.1 GB, free: 126.3 MB / 1.104 GB Notification: Performance of simCode: created initialization part: time 0.06141/55.38, allocations: 22.25 MB / 13.12 GB, free: 113.1 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 5.088e-05/55.38, allocations: 10.78 kB / 13.12 GB, free: 113.1 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 0.01883/55.4, allocations: 6.927 MB / 13.13 GB, free: 109 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.07777/55.48, allocations: 8.495 MB / 13.14 GB, free: 104.3 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.162/55.64, allocations: 41.3 MB / 13.18 GB, free: 73.05 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04703/55.69, allocations: 14.17 MB / 13.19 GB, free: 61.94 MB / 1.104 GB Notification: Performance of SimCode: time 2.014e-06/55.69, allocations: 1.75 kB / 13.19 GB, free: 61.94 MB / 1.104 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretizedPControl.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretizedPControl.pipe 2>&1)