Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.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.DryCoilDiscretized,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized",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.133/2.133, allocations: 390.4 MB / 397.7 MB, free: 10.65 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.001202/0.001203, allocations: 175.9 kB / 490.8 MB, free: 11.18 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.615/1.615, allocations: 221.4 MB / 0.7863 GB, free: 13.56 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.00122/0.001221, allocations: 100.8 kB / 0.9264 GB, free: 4.523 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.4115/0.4128, allocations: 149.1 MB / 1.072 GB, free: 15.47 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.444, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.54/6.984, allocations: 2.196 GB / 3.408 GB, free: 381.5 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/6.984, allocations: 92.94 kB / 3.408 GB, free: 381.4 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: 1600 * Number of variables: 1600 Notification: Performance of Generate backend data structure: time 22.26/29.24, allocations: 5.504 GB / 8.911 GB, free: 113.7 MB / 1.26 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/29.24, allocations: 9.641 kB / 8.911 GB, free: 113.7 MB / 1.26 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01656/29.26, allocations: 1.857 MB / 8.913 GB, free: 113.2 MB / 1.26 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0444/29.3, allocations: 15.35 MB / 8.928 GB, free: 112 MB / 1.26 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006125/29.3, allocations: 203.1 kB / 8.928 GB, free: 112 MB / 1.26 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004559/29.31, allocations: 372.7 kB / 8.929 GB, free: 112 MB / 1.26 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02865/29.34, allocations: 10.08 MB / 8.939 GB, free: 112 MB / 1.26 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04031/29.38, allocations: 10.66 MB / 8.949 GB, free: 111.4 MB / 1.26 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000614/29.38, allocations: 17.66 kB / 8.949 GB, free: 111.4 MB / 1.26 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003916/29.38, allocations: 9.562 kB / 8.949 GB, free: 111.4 MB / 1.26 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004084/29.38, allocations: 300.2 kB / 8.949 GB, free: 111.4 MB / 1.26 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1141/29.5, allocations: 52.88 MB / 9.001 GB, free: 92.09 MB / 1.26 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007537/29.51, allocations: 4.26 MB / 9.005 GB, free: 92.07 MB / 1.26 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007237/29.51, allocations: 4.49 MB / 9.01 GB, free: 92.02 MB / 1.26 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001461/29.51, allocations: 1.017 MB / 9.011 GB, free: 90.99 MB / 1.26 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001145/29.51, allocations: 83.56 kB / 9.011 GB, free: 90.95 MB / 1.26 GB Notification: Performance of pre-optimization done (n=369): time 9.408e-06/29.51, allocations: 1.312 kB / 9.011 GB, free: 90.95 MB / 1.26 GB Notification: Performance of matching and sorting (n=375): time 0.04482/29.56, allocations: 15.9 MB / 9.026 GB, free: 88.99 MB / 1.26 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/29.56, allocations: 92.39 kB / 9.026 GB, free: 88.93 MB / 1.26 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01551/29.57, allocations: 7.844 MB / 9.034 GB, free: 88.57 MB / 1.26 GB Notification: Performance of collectPreVariables (initialization): time 0.001539/29.58, allocations: 31.23 kB / 9.034 GB, free: 88.54 MB / 1.26 GB Notification: Performance of collectInitialEqns (initialization): time 0.003252/29.58, allocations: 2.359 MB / 9.036 GB, free: 87.36 MB / 1.26 GB Notification: Performance of collectInitialBindings (initialization): time 0.005695/29.59, allocations: 1.274 MB / 9.038 GB, free: 86.52 MB / 1.26 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/29.59, allocations: 3.844 kB / 9.038 GB, free: 86.52 MB / 1.26 GB Notification: Performance of setup shared object (initialization): time 0.0005346/29.59, allocations: 495.2 kB / 9.038 GB, free: 86.21 MB / 1.26 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005503/29.59, allocations: 3.327 MB / 9.041 GB, free: 86.2 MB / 1.26 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006829/29.6, allocations: 4.363 MB / 9.046 GB, free: 85.26 MB / 1.26 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007098/29.61, allocations: 4.364 MB / 9.05 GB, free: 85.21 MB / 1.26 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-05/29.61, allocations: 9.062 kB / 9.05 GB, free: 85.21 MB / 1.26 GB Notification: Performance of matching and sorting (n=490) (initialization): time 0.01842/29.62, allocations: 8.376 MB / 9.058 GB, free: 84.78 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 0.002269/29.63, allocations: 9.105 MB / 9.067 GB, free: 75.25 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.205e-05/29.63, allocations: 18.59 kB / 9.067 GB, free: 75.25 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007934/29.63, allocations: 227.2 kB / 9.067 GB, free: 75.25 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005977/29.63, allocations: 1.029 MB / 9.068 GB, free: 75.25 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003488/29.64, allocations: 2.629 MB / 9.071 GB, free: 74.04 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01376/29.65, allocations: 0.9093 MB / 9.072 GB, free: 73.98 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00208/29.65, allocations: 168.6 kB / 9.072 GB, free: 73.98 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/29.65, allocations: 3.688 kB / 9.072 GB, free: 73.98 MB / 1.26 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01833/29.67, allocations: 7.734 MB / 9.079 GB, free: 73.89 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-05/29.67, allocations: 18.84 kB / 9.079 GB, free: 73.89 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007661/29.67, allocations: 228.7 kB / 9.08 GB, free: 73.88 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005743/29.68, allocations: 1.021 MB / 9.08 GB, free: 73.88 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003271/29.68, allocations: 2.623 MB / 9.083 GB, free: 72.68 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01163/29.69, allocations: 0.8995 MB / 9.084 GB, free: 72.63 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001681/29.7, allocations: 168.1 kB / 9.084 GB, free: 72.63 MB / 1.26 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (482): * Single equations (assignments): 481 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003044/29.7, allocations: 185 kB / 9.084 GB, free: 72.51 MB / 1.26 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00386/29.7, allocations: 0.61 MB / 9.085 GB, free: 72.2 MB / 1.26 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0196/29.72, allocations: 7.969 MB / 9.093 GB, free: 71.99 MB / 1.26 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.726e-05/29.72, allocations: 36.47 kB / 9.093 GB, free: 71.99 MB / 1.26 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.791e-05/29.72, allocations: 2.562 kB / 9.093 GB, free: 71.99 MB / 1.26 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01176/29.73, allocations: 6.694 MB / 9.099 GB, free: 71.46 MB / 1.26 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05073/29.78, allocations: 19.25 MB / 9.118 GB, free: 70.38 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.843e-05/29.78, allocations: 2.906 kB / 9.118 GB, free: 70.38 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00586/29.79, allocations: 1.002 MB / 9.119 GB, free: 70.38 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006719/29.79, allocations: 202.2 kB / 9.119 GB, free: 70.38 MB / 1.26 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00105/29.79, allocations: 83.89 kB / 9.119 GB, free: 70.38 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003107/29.8, allocations: 2.596 MB / 9.122 GB, free: 69.18 MB / 1.26 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/29.8, allocations: 9.562 kB / 9.122 GB, free: 69.17 MB / 1.26 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02056/29.82, allocations: 12.32 MB / 9.134 GB, free: 66.64 MB / 1.26 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02887/29.84, allocations: 18.1 MB / 9.152 GB, free: 59.24 MB / 1.26 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008611/29.85, allocations: 2.127 MB / 9.154 GB, free: 57.27 MB / 1.26 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003775/29.86, allocations: 55.16 kB / 9.154 GB, free: 57.23 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009802/29.87, allocations: 0.7652 MB / 9.154 GB, free: 56.76 MB / 1.26 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/29.87, allocations: 201.3 kB / 9.155 GB, free: 56.64 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00118/29.87, allocations: 141.8 kB / 9.155 GB, free: 56.53 MB / 1.26 GB Notification: Performance of sort global known variables: time 0.01389/29.88, allocations: 6.168 MB / 9.161 GB, free: 51.3 MB / 1.26 GB Notification: Performance of remove unused functions: time 0.03274/29.92, allocations: 5.452 MB / 9.166 GB, free: 45.88 MB / 1.26 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 25 (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].vol2.dynBal.m,hex.hexReg[2].ele[1,3].mas.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (378): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00921/29.93, allocations: 4.671 MB / 9.171 GB, free: 42.17 MB / 1.26 GB Notification: Performance of simCode: created initialization part: time 0.02126/29.95, allocations: 11.7 MB / 9.182 GB, free: 32.09 MB / 1.26 GB Notification: Performance of simCode: created event and clocks part: time 2.749e-05/29.95, allocations: 6 kB / 9.182 GB, free: 32.08 MB / 1.26 GB Notification: Performance of simCode: created simulation system equations: time 0.007922/29.95, allocations: 3.575 MB / 9.186 GB, free: 29.01 MB / 1.26 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02731/29.98, allocations: 4.388 MB / 9.19 GB, free: 26.07 MB / 1.26 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06719/30.05, allocations: 21.48 MB / 9.211 GB, free: 8.293 MB / 1.26 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01791/30.07, allocations: 7.784 MB / 9.218 GB, free: 2.121 MB / 1.26 GB Notification: Performance of SimCode: time 2.745e-06/30.07, allocations: 2.125 kB / 9.218 GB, free: 2.121 MB / 1.26 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized_fmu --startTime=0 --stopTime=360 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe 2>&1)