Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.023/2.023, allocations: 387.2 MB / 394.5 MB, free: 13.31 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.001201/0.001201, allocations: 177.2 kB / 487 MB, free: 0.7227 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 221.3 MB / 0.7819 GB, free: 6.746 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009643/0.0009642, allocations: 86.48 kB / 0.9213 GB, free: 43.65 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3284/0.3294, allocations: 148.5 MB / 1.066 GB, free: 7.441 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8293/1.159, allocations: 142.3 MB / 1.205 GB, free: 72.68 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.887/6.046, allocations: 2.195 GB / 3.401 GB, free: 327.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/6.046, allocations: 87.95 kB / 3.401 GB, free: 327.8 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.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: 1600 * Number of variables: 1600 Notification: Performance of Generate backend data structure: time 19.5/25.55, allocations: 5.504 GB / 8.904 GB, free: 91.78 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/25.55, allocations: 7.562 kB / 8.904 GB, free: 91.78 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01483/25.56, allocations: 1.862 MB / 8.906 GB, free: 91.29 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04045/25.6, allocations: 15.34 MB / 8.921 GB, free: 90.09 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004618/25.6, allocations: 199.5 kB / 8.921 GB, free: 90.09 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003841/25.61, allocations: 382.8 kB / 8.922 GB, free: 90.09 MB / 1.245 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02767/25.64, allocations: 10.08 MB / 8.932 GB, free: 90.06 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03529/25.67, allocations: 10.66 MB / 8.942 GB, free: 89.49 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008184/25.67, allocations: 21.97 kB / 8.942 GB, free: 89.48 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003716/25.68, allocations: 7.812 kB / 8.942 GB, free: 89.48 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003766/25.68, allocations: 300.8 kB / 8.942 GB, free: 89.47 MB / 1.245 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08639/25.76, allocations: 52.88 MB / 8.994 GB, free: 70.18 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006254/25.77, allocations: 4.266 MB / 8.998 GB, free: 70.15 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005982/25.77, allocations: 4.476 MB / 9.002 GB, free: 70.11 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001101/25.78, allocations: 1.018 MB / 9.003 GB, free: 69.07 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.896e-05/25.78, allocations: 84.05 kB / 9.004 GB, free: 69.03 MB / 1.245 GB Notification: Performance of pre-optimization done (n=369): time 5.59e-06/25.78, allocations: 0 / 9.004 GB, free: 69.03 MB / 1.245 GB Notification: Performance of matching and sorting (n=375): time 0.04154/25.82, allocations: 15.9 MB / 9.019 GB, free: 67.08 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/25.82, allocations: 93.2 kB / 9.019 GB, free: 67.01 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01792/25.84, allocations: 7.842 MB / 9.027 GB, free: 66.66 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.001431/25.84, allocations: 32.02 kB / 9.027 GB, free: 66.62 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.004615/25.84, allocations: 2.367 MB / 9.029 GB, free: 65.45 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.00558/25.85, allocations: 1.275 MB / 9.03 GB, free: 64.6 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004656/25.85, allocations: 2.531 kB / 9.03 GB, free: 64.6 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.000507/25.85, allocations: 495.1 kB / 9.031 GB, free: 64.29 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004438/25.85, allocations: 3.325 MB / 9.034 GB, free: 64.28 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00491/25.86, allocations: 4.366 MB / 9.038 GB, free: 63.34 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005972/25.86, allocations: 4.368 MB / 9.043 GB, free: 63.29 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.602e-05/25.86, allocations: 6.719 kB / 9.043 GB, free: 63.29 MB / 1.245 GB Notification: Performance of matching and sorting (n=490) (initialization): time 0.0161/25.88, allocations: 8.369 MB / 9.051 GB, free: 62.86 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.00193/25.88, allocations: 9.105 MB / 9.06 GB, free: 53.33 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.172e-05/25.88, allocations: 20.61 kB / 9.06 GB, free: 53.33 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007243/25.88, allocations: 231.1 kB / 9.06 GB, free: 53.32 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005634/25.89, allocations: 1.027 MB / 9.061 GB, free: 53.32 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003137/25.89, allocations: 2.624 MB / 9.064 GB, free: 52.12 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01119/25.9, allocations: 0.9067 MB / 9.064 GB, free: 52.06 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001756/25.9, allocations: 164.8 kB / 9.065 GB, free: 52.06 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/25.9, allocations: 3.438 kB / 9.065 GB, free: 52.06 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01802/25.92, allocations: 7.733 MB / 9.072 GB, free: 51.97 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/25.92, allocations: 17.59 kB / 9.072 GB, free: 51.97 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008171/25.92, allocations: 235.4 kB / 9.072 GB, free: 51.96 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00614/25.93, allocations: 1.029 MB / 9.073 GB, free: 51.96 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003293/25.93, allocations: 2.629 MB / 9.076 GB, free: 50.76 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01106/25.94, allocations: 0.8956 MB / 9.077 GB, free: 50.71 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001599/25.95, allocations: 168.5 kB / 9.077 GB, free: 50.71 MB / 1.245 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.003286/25.95, allocations: 180.5 kB / 9.077 GB, free: 50.6 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003722/25.95, allocations: 0.6113 MB / 9.078 GB, free: 50.28 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01924/25.97, allocations: 7.963 MB / 9.086 GB, free: 50.08 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.999e-05/25.97, allocations: 41.09 kB / 9.086 GB, free: 50.08 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.733e-05/25.97, allocations: 2.469 kB / 9.086 GB, free: 50.08 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01217/25.98, allocations: 6.696 MB / 9.092 GB, free: 48.35 MB / 1.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04928/26.03, allocations: 19.24 MB / 9.111 GB, free: 38.8 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.062e-05/26.03, allocations: 4 kB / 9.111 GB, free: 38.8 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006112/26.04, allocations: 1.01 MB / 9.112 GB, free: 38.03 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006989/26.04, allocations: 202.9 kB / 9.112 GB, free: 37.87 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001039/26.04, allocations: 80.3 kB / 9.112 GB, free: 37.81 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003014/26.04, allocations: 2.607 MB / 9.115 GB, free: 35.38 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.869e-06/26.04, allocations: 6.438 kB / 9.115 GB, free: 35.37 MB / 1.245 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02065/26.06, allocations: 12.33 MB / 9.127 GB, free: 24.44 MB / 1.245 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02409/26.09, allocations: 18.09 MB / 9.144 GB, free: 8.484 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00791/26.1, allocations: 2.133 MB / 9.146 GB, free: 6.516 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003763/26.1, allocations: 59.53 kB / 9.147 GB, free: 6.469 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0102/26.11, allocations: 0.7615 MB / 9.147 GB, free: 6.004 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009907/26.11, allocations: 197 kB / 9.147 GB, free: 5.887 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009444/26.11, allocations: 142.7 kB / 9.148 GB, free: 5.77 MB / 1.245 GB Notification: Performance of sort global known variables: time 0.0137/26.13, allocations: 6.164 MB / 9.154 GB, free: 0.543 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.02999/26.16, allocations: 5.509 MB / 9.159 GB, free: 11.2 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.008004/26.16, allocations: 4.647 MB / 9.164 GB, free: 7.461 MB / 1.26 GB Notification: Performance of simCode: created initialization part: time 0.03133/26.2, allocations: 12.54 MB / 9.176 GB, free: 15.4 MB / 1.276 GB Notification: Performance of simCode: created event and clocks part: time 2.101e-05/26.2, allocations: 4 kB / 9.176 GB, free: 15.39 MB / 1.276 GB Notification: Performance of simCode: created simulation system equations: time 0.007044/26.2, allocations: 3.568 MB / 9.179 GB, free: 12.33 MB / 1.276 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02544/26.23, allocations: 4.408 MB / 9.184 GB, free: 9.363 MB / 1.276 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06162/26.29, allocations: 21.48 MB / 9.205 GB, free: 7.574 MB / 1.292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01175/26.3, allocations: 7.793 MB / 9.212 GB, free: 1.402 MB / 1.292 GB Notification: Performance of SimCode: time 9.01e-07/26.3, allocations: 0 / 9.212 GB, free: 1.402 MB / 1.292 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized_fmu --startTime=0 --stopTime=360 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_DryCoilDiscretized.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilDiscretized.pipe 2>&1)