Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Validation.WetCoilDiscretizedInitializationPerfectGases.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.WetCoilDiscretizedInitializationPerfectGases,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_HeatExchangers_Validation_WetCoilDiscretizedInitializationPerfectGases",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 7.0.1/package.mo): time 2.194/2.194, allocations: 248.6 MB / 255.9 MB, free: 7.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002262/0.002262, allocations: 181.2 kB / 315.1 MB, free: 4.301 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.932/1.932, allocations: 205.1 MB / 0.5658 GB, free: 388 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001351/0.001351, allocations: 89.58 kB / 0.67 GB, free: 5.602 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.473/0.4744, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.6874, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.276/6.963, allocations: 2.481 GB / 3.364 GB, free: 230.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004167/6.964, allocations: 93.38 kB / 3.364 GB, free: 230.4 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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: 5549 * Number of variables: 5549 Notification: Performance of Generate backend data structure: time 103.1/110.1, allocations: 19.14 GB / 22.5 GB, free: 51.04 MB / 1.323 GB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/110.1, allocations: 8.25 kB / 22.5 GB, free: 51.04 MB / 1.323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06641/110.1, allocations: 6.235 MB / 22.51 GB, free: 49.41 MB / 1.323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2212/110.3, allocations: 55.16 MB / 22.56 GB, free: 45.73 MB / 1.323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002398/110.4, allocations: 0.6757 MB / 22.56 GB, free: 45.73 MB / 1.323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01584/110.4, allocations: 1.283 MB / 22.57 GB, free: 45.72 MB / 1.323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1298/110.5, allocations: 34.46 MB / 22.6 GB, free: 45.64 MB / 1.323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1635/110.7, allocations: 36.16 MB / 22.63 GB, free: 43.99 MB / 1.323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.002139/110.7, allocations: 41.5 kB / 22.63 GB, free: 43.98 MB / 1.323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01438/110.7, allocations: 19.72 kB / 22.63 GB, free: 43.98 MB / 1.323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001615/110.7, allocations: 0.9728 MB / 22.64 GB, free: 43.94 MB / 1.323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4709/111.2, allocations: 164.1 MB / 22.8 GB, free: 496 kB / 1.37 GB Notification: Performance of preOpt comSubExp (simulation): time 2.359/113.5, allocations: 17.49 MB / 22.81 GB, free: 108.1 MB / 1.37 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03747/113.5, allocations: 14.37 MB / 22.83 GB, free: 108 MB / 1.37 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004655/113.6, allocations: 2.859 MB / 22.83 GB, free: 105.1 MB / 1.37 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003111/113.6, allocations: 186.1 kB / 22.83 GB, free: 105.1 MB / 1.37 GB Notification: Performance of pre-optimization done (n=1205): time 1.78e-05/113.6, allocations: 0 / 22.83 GB, free: 105.1 MB / 1.37 GB Notification: Performance of matching and sorting (n=1271): time 0.2464/113.8, allocations: 58.06 MB / 22.89 GB, free: 102.4 MB / 1.37 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/113.8, allocations: 185.1 kB / 22.89 GB, free: 102.3 MB / 1.37 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07766/113.9, allocations: 23.24 MB / 22.91 GB, free: 101.5 MB / 1.37 GB Notification: Performance of collectPreVariables (initialization): time 0.005542/113.9, allocations: 45.92 kB / 22.91 GB, free: 101.5 MB / 1.37 GB Notification: Performance of collectInitialEqns (initialization): time 0.0183/113.9, allocations: 8.121 MB / 22.92 GB, free: 98.39 MB / 1.37 GB Notification: Performance of collectInitialBindings (initialization): time 0.02518/113.9, allocations: 4.284 MB / 22.92 GB, free: 95.55 MB / 1.37 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004849/113.9, allocations: 1.969 kB / 22.92 GB, free: 95.55 MB / 1.37 GB Notification: Performance of setup shared object (initialization): time 0.002361/113.9, allocations: 0.9199 MB / 22.92 GB, free: 95.22 MB / 1.37 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03093/114, allocations: 10.93 MB / 22.93 GB, free: 95.19 MB / 1.37 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04511/114, allocations: 15.03 MB / 22.95 GB, free: 91.33 MB / 1.37 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04226/114.1, allocations: 14.54 MB / 22.96 GB, free: 91.17 MB / 1.37 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001913/114.1, allocations: 20.91 kB / 22.96 GB, free: 91.17 MB / 1.37 GB Notification: Performance of matching and sorting (n=1657) (initialization): time 0.1192/114.2, allocations: 32.46 MB / 22.99 GB, free: 89.64 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 0.009922/114.2, allocations: 52.33 MB / 23.04 GB, free: 36.48 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004928/114.2, allocations: 66.75 kB / 23.04 GB, free: 36.48 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07269/114.3, allocations: 11.19 MB / 23.06 GB, free: 36.34 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02635/114.3, allocations: 2.57 MB / 23.06 GB, free: 36.34 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08041/114.4, allocations: 29.7 MB / 23.09 GB, free: 30.74 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04773/114.4, allocations: 2.411 MB / 23.09 GB, free: 30.6 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006142/114.4, allocations: 0.5537 MB / 23.09 GB, free: 30.6 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/114.4, allocations: 4.062 kB / 23.09 GB, free: 30.6 MB / 1.37 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1059/114.5, allocations: 30.46 MB / 23.12 GB, free: 30.08 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000433/114.5, allocations: 68.53 kB / 23.12 GB, free: 30.08 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07226/114.6, allocations: 11.19 MB / 23.13 GB, free: 29.94 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02557/114.6, allocations: 2.555 MB / 23.13 GB, free: 29.94 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08038/114.7, allocations: 29.1 MB / 23.16 GB, free: 24.91 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04583/114.7, allocations: 2.364 MB / 23.16 GB, free: 24.78 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00613/114.8, allocations: 0.5544 MB / 23.16 GB, free: 24.78 MB / 1.37 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 310 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1233): * Single equations (assignments): 1227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 3 {(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 2} * Non-linear torn systems: 2 {24 208,24 148} Notification: Performance of prepare postOptimizeDAE: time 0.01157/114.8, allocations: 375.4 kB / 23.16 GB, free: 24.63 MB / 1.37 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01275/114.8, allocations: 1.953 MB / 23.17 GB, free: 23.62 MB / 1.37 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1155/114.9, allocations: 28.33 MB / 23.19 GB, free: 21.79 MB / 1.37 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002646/114.9, allocations: 132 kB / 23.19 GB, free: 21.67 MB / 1.37 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.508e-05/114.9, allocations: 4 kB / 23.19 GB, free: 21.66 MB / 1.37 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.07304/115, allocations: 23.21 MB / 23.22 GB, free: 7.93 MB / 1.37 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2953/115.3, allocations: 68.92 MB / 23.28 GB, free: 4.297 MB / 1.401 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001724/115.3, allocations: 19.88 kB / 23.28 GB, free: 4.281 MB / 1.401 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03211/115.3, allocations: 2.844 MB / 23.29 GB, free: 2.102 MB / 1.401 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03024/115.3, allocations: 4.266 MB / 23.29 GB, free: 15.21 MB / 1.417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004715/115.3, allocations: 229.2 kB / 23.29 GB, free: 15.04 MB / 1.417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0429/115.4, allocations: 17.33 MB / 23.31 GB, free: 15.5 MB / 1.433 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.09e-05/115.4, allocations: 24.06 kB / 23.31 GB, free: 15.48 MB / 1.433 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 1.315/116.7, allocations: 51.61 MB / 23.36 GB, free: 152.6 MB / 1.433 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1655/116.9, allocations: 69.41 MB / 23.43 GB, free: 142.5 MB / 1.433 GB Notification: Performance of postOpt removeConstants (simulation): time 0.03255/116.9, allocations: 6.386 MB / 23.43 GB, free: 142.1 MB / 1.433 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01438/116.9, allocations: 156.4 kB / 23.43 GB, free: 142.1 MB / 1.433 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.04328/116.9, allocations: 2.172 MB / 23.44 GB, free: 142.1 MB / 1.433 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005456/116.9, allocations: 0.6629 MB / 23.44 GB, free: 142.1 MB / 1.433 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005598/117, allocations: 450.4 kB / 23.44 GB, free: 142.1 MB / 1.433 GB Notification: Performance of sort global known variables: time 0.06162/117, allocations: 18.55 MB / 23.45 GB, free: 141.6 MB / 1.433 GB Notification: Performance of remove unused functions: time 0.1272/117.1, allocations: 16.48 MB / 23.47 GB, free: 141.6 MB / 1.433 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 70 * Number of states: 50 (hexFixIni.hexReg[1].ele[1,1].vol1.dynBal.U,hexFixIni.hexReg[1].ele[1,1].vol2.dynBal.U,hexFixIni.hexReg[1].ele[1,1].vol2.dynBal.mXi[1],hexFixIni.hexReg[1].ele[1,1].mas.T,hexFixIni.hexReg[1].ele[1,2].vol1.dynBal.U,hexFixIni.hexReg[1].ele[1,2].vol2.dynBal.U,hexFixIni.hexReg[1].ele[1,2].vol2.dynBal.mXi[1],hexFixIni.hexReg[1].ele[1,2].mas.T,hexFixIni.hexReg[1].ele[1,3].vol1.dynBal.U,hexFixIni.hexReg[1].ele[1,3].vol2.dynBal.U,hexFixIni.hexReg[1].ele[1,3].vol2.dynBal.mXi[1],hexFixIni.hexReg[1].ele[1,3].mas.T,hexFixIni.hexReg[2].ele[1,1].vol1.dynBal.U,hexFixIni.hexReg[2].ele[1,1].vol2.dynBal.U,hexFixIni.hexReg[2].ele[1,1].vol2.dynBal.mXi[1],hexFixIni.hexReg[2].ele[1,1].mas.T,hexFixIni.hexReg[2].ele[1,2].vol1.dynBal.U,hexFixIni.hexReg[2].ele[1,2].vol2.dynBal.U,hexFixIni.hexReg[2].ele[1,2].vol2.dynBal.mXi[1],hexFixIni.hexReg[2].ele[1,2].mas.T,hexFixIni.hexReg[2].ele[1,3].vol1.dynBal.U,hexFixIni.hexReg[2].ele[1,3].vol2.dynBal.U,hexFixIni.hexReg[2].ele[1,3].vol2.dynBal.m,hexFixIni.hexReg[2].ele[1,3].vol2.dynBal.mXi[1],hexFixIni.hexReg[2].ele[1,3].mas.T,hexSteStaIni.port_b1.h_outflow,hexSteStaIni.hexReg[1].ele[1,1].vol2.dynBal.medium.X[2],hexSteStaIni.hexReg[1].ele[1,1].vol2.dynBal.medium.dT,hexSteStaIni.hexReg[1].ele[1,1].mas.T,hexSteStaIni.hexReg[1].ele[1,2].port_b1.h_outflow,hexSteStaIni.hexReg[1].ele[1,2].vol2.dynBal.medium.X[2],hexSteStaIni.hexReg[1].ele[1,2].vol2.dynBal.medium.dT,hexSteStaIni.hexReg[1].ele[1,2].mas.T,hexSteStaIni.hexReg[1].ele[1,3].vol2.dynBal.medium.X[2],hexSteStaIni.hexReg[1].ele[1,3].vol2.dynBal.medium.dT,hexSteStaIni.hexReg[1].ele[1,3].mas.T,hexSteStaIni.hexReg[1].port_a1[1].h_outflow,hexSteStaIni.hexReg[1].port_b1[1].h_outflow,hexSteStaIni.hexReg[2].ele[1,1].vol2.dynBal.medium.X[2],hexSteStaIni.hexReg[2].ele[1,1].vol2.dynBal.medium.dT,hexSteStaIni.hexReg[2].ele[1,1].mas.T,hexSteStaIni.hexReg[2].ele[1,2].port_b1.h_outflow,hexSteStaIni.hexReg[2].ele[1,2].vol2.dynBal.medium.X[2],hexSteStaIni.hexReg[2].ele[1,2].vol2.dynBal.medium.dT,hexSteStaIni.hexReg[2].ele[1,2].mas.T,hexSteStaIni.hexReg[2].ele[1,3].vol2.dynBal.medium.X[2],hexSteStaIni.hexReg[2].ele[1,3].vol2.dynBal.medium.dT,hexSteStaIni.hexReg[2].ele[1,3].vol2.dynBal.m,hexSteStaIni.hexReg[2].ele[1,3].mas.T,hexSteStaIni.hexReg[2].port_b1[1].h_outflow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1104): * Single equations (assignments): 1086 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 12,(1,100.0%) 12,(1,100.0%) 2} * Non-linear torn systems: 1 {24 148} Notification: Performance of Backend phase and start with SimCode phase: time 0.04044/117.2, allocations: 18.57 MB / 23.49 GB, free: 130.1 MB / 1.433 GB Notification: Performance of simCode: created initialization part: time 0.1267/117.3, allocations: 40.86 MB / 23.53 GB, free: 129 MB / 1.433 GB Notification: Performance of simCode: created event and clocks part: time 4.277e-05/117.3, allocations: 11.41 kB / 23.53 GB, free: 129 MB / 1.433 GB Notification: Performance of simCode: created simulation system equations: time 0.03955/117.3, allocations: 12.64 MB / 23.54 GB, free: 128.6 MB / 1.433 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1263/117.5, allocations: 13.6 MB / 23.55 GB, free: 128.5 MB / 1.433 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3104/117.8, allocations: 69.15 MB / 23.62 GB, free: 120 MB / 1.433 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1272/117.9, allocations: 24.45 MB / 23.65 GB, free: 118.5 MB / 1.433 GB Notification: Performance of SimCode: time 1.924e-06/117.9, allocations: 3.062 kB / 23.65 GB, free: 118.5 MB / 1.433 GB