Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.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.Validation.HeaterCooler_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u",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.076/2.076, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 173.3 kB / 487 MB, free: 5.375 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.519/1.519, allocations: 221.3 MB / 0.7819 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 99.98 kB / 0.9213 GB, free: 2.695 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.7069/0.708, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/1.023, allocations: 142.3 MB / 1.205 GB, free: 26.18 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.765/5.788, allocations: 1.931 GB / 3.136 GB, free: 376.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/5.789, allocations: 91.86 kB / 3.136 GB, free: 376.1 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 3.891/9.68, allocations: 1.053 GB / 4.189 GB, free: 172.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/9.68, allocations: 11.98 kB / 4.189 GB, free: 172.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004984/9.685, allocations: 0.657 MB / 4.19 GB, free: 171.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004678/9.69, allocations: 1.469 MB / 4.191 GB, free: 170.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004134/9.69, allocations: 118.2 kB / 4.191 GB, free: 170 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005304/9.691, allocations: 79.89 kB / 4.191 GB, free: 169.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002712/9.694, allocations: 1.024 MB / 4.192 GB, free: 168.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002965/9.697, allocations: 1.223 MB / 4.193 GB, free: 167.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.573e-05/9.697, allocations: 4 kB / 4.193 GB, free: 167.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001867/9.697, allocations: 4 kB / 4.193 GB, free: 167.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-05/9.697, allocations: 46.22 kB / 4.194 GB, free: 167.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01066/9.708, allocations: 6.044 MB / 4.199 GB, free: 161.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009462/9.709, allocations: 0.6027 MB / 4.2 GB, free: 160.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006472/9.709, allocations: 492.1 kB / 4.2 GB, free: 160.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006335/9.71, allocations: 478 kB / 4.201 GB, free: 159.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007626/9.711, allocations: 0.5436 MB / 4.201 GB, free: 159.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=87): time 4.489e-06/9.711, allocations: 4 kB / 4.201 GB, free: 159.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=94): time 0.009351/9.72, allocations: 3.104 MB / 4.204 GB, free: 155.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/9.72, allocations: 196.7 kB / 4.205 GB, free: 155.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/9.722, allocations: 0.9174 MB / 4.206 GB, free: 154.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001533/9.722, allocations: 25.7 kB / 4.206 GB, free: 154.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000491/9.723, allocations: 489.6 kB / 4.206 GB, free: 154.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003622/9.723, allocations: 303.4 kB / 4.206 GB, free: 154 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/9.723, allocations: 0 / 4.206 GB, free: 154 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001183/9.723, allocations: 345.9 kB / 4.207 GB, free: 153.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005965/9.724, allocations: 377.9 kB / 4.207 GB, free: 153.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000737/9.725, allocations: 0.5853 MB / 4.208 GB, free: 152.6 MB / 1.151 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.004455/9.729, allocations: 1.414 MB / 4.209 GB, free: 151.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/9.729, allocations: 4 kB / 4.209 GB, free: 151.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004052/9.733, allocations: 1.577 MB / 4.211 GB, free: 149.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002864/9.733, allocations: 1.25 MB / 4.212 GB, free: 148.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/9.734, allocations: 4 kB / 4.212 GB, free: 148.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009934/9.735, allocations: 399 kB / 4.212 GB, free: 147.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00083/9.735, allocations: 183.8 kB / 4.212 GB, free: 147.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006203/9.742, allocations: 6.16 MB / 4.218 GB, free: 141.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001971/9.744, allocations: 127.8 kB / 4.218 GB, free: 141 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002609/9.744, allocations: 44.05 kB / 4.219 GB, free: 141 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/9.744, allocations: 4 kB / 4.219 GB, free: 141 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003741/9.748, allocations: 1.386 MB / 4.22 GB, free: 139.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/9.748, allocations: 7.938 kB / 4.22 GB, free: 139.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009456/9.749, allocations: 392.7 kB / 4.22 GB, free: 139.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008175/9.749, allocations: 187.7 kB / 4.22 GB, free: 139 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006813/9.756, allocations: 7.022 MB / 4.227 GB, free: 131.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/9.758, allocations: 138.5 kB / 4.227 GB, free: 131.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002343/9.759, allocations: 39.98 kB / 4.227 GB, free: 131.4 MB / 1.151 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 10,1 2,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005274/9.759, allocations: 162.5 kB / 4.228 GB, free: 131.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005322/9.76, allocations: 150.2 kB / 4.228 GB, free: 131.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003749/9.763, allocations: 1.397 MB / 4.229 GB, free: 129.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/9.763, allocations: 15.94 kB / 4.229 GB, free: 129.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/9.763, allocations: 4 kB / 4.229 GB, free: 129.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00278/9.766, allocations: 1.275 MB / 4.23 GB, free: 128.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007062/9.773, allocations: 3.088 MB / 4.233 GB, free: 125.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/9.773, allocations: 4 kB / 4.233 GB, free: 125.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/9.774, allocations: 200.2 kB / 4.234 GB, free: 124.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004367/9.775, allocations: 185.2 kB / 4.234 GB, free: 124.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-05/9.775, allocations: 19.98 kB / 4.234 GB, free: 124.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/9.777, allocations: 2.409 MB / 4.236 GB, free: 122.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/9.778, allocations: 7.938 kB / 4.236 GB, free: 122.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00416/9.782, allocations: 2.363 MB / 4.238 GB, free: 119.6 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005549/9.787, allocations: 3.485 MB / 4.242 GB, free: 116 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/9.789, allocations: 347.2 kB / 4.242 GB, free: 115.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006554/9.789, allocations: 12 kB / 4.242 GB, free: 115.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001985/9.791, allocations: 135.7 kB / 4.242 GB, free: 115.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/9.792, allocations: 60.42 kB / 4.242 GB, free: 115.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/9.792, allocations: 39.98 kB / 4.242 GB, free: 115.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001646/9.793, allocations: 0.6992 MB / 4.243 GB, free: 114.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.008869/9.802, allocations: 1.554 MB / 4.245 GB, free: 113.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.X[2],heaDyn.vol.dynBal.medium.dT,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.006268/9.809, allocations: 2.648 MB / 4.247 GB, free: 110.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004645/9.813, allocations: 2.369 MB / 4.25 GB, free: 108.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.475e-05/9.813, allocations: 4 kB / 4.25 GB, free: 108.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001142/9.814, allocations: 0.6475 MB / 4.25 GB, free: 107.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004492/9.819, allocations: 0.6885 MB / 4.251 GB, free: 106.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007385/9.826, allocations: 2.633 MB / 4.253 GB, free: 104.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/9.828, allocations: 1.508 MB / 4.255 GB, free: 102.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.142e-06/9.828, allocations: 3.938 kB / 4.255 GB, free: 102.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)