Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.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.Validation.HeaterCooler_u,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.316/2.316, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001404/0.001404, allocations: 186.4 kB / 490.8 MB, free: 1.965 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.706/1.706, allocations: 221.3 MB / 0.7863 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 91.3 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.8006/0.8018, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/1.158, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.312/6.47, allocations: 1.931 GB / 3.143 GB, free: 401.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/6.47, allocations: 91.89 kB / 3.143 GB, free: 401 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.978/10.45, allocations: 1.053 GB / 4.196 GB, free: 188.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/10.45, allocations: 12 kB / 4.196 GB, free: 188.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00509/10.45, allocations: 0.6574 MB / 4.197 GB, free: 187.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005611/10.46, allocations: 1.45 MB / 4.198 GB, free: 186.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004284/10.46, allocations: 123.6 kB / 4.198 GB, free: 186.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006089/10.46, allocations: 79.84 kB / 4.198 GB, free: 186.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003109/10.46, allocations: 1.028 MB / 4.199 GB, free: 185.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003705/10.47, allocations: 1.222 MB / 4.201 GB, free: 184 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.662e-05/10.47, allocations: 3.938 kB / 4.201 GB, free: 184 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002325/10.47, allocations: 4 kB / 4.201 GB, free: 184 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.809e-05/10.47, allocations: 42.2 kB / 4.201 GB, free: 183.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01228/10.48, allocations: 6.044 MB / 4.207 GB, free: 177.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/10.48, allocations: 0.602 MB / 4.207 GB, free: 177.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007463/10.48, allocations: 486.1 kB / 4.208 GB, free: 176.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007355/10.48, allocations: 489 kB / 4.208 GB, free: 176.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008749/10.48, allocations: 0.5443 MB / 4.209 GB, free: 175.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=87): time 4.018e-06/10.48, allocations: 0 / 4.209 GB, free: 175.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=94): time 0.009925/10.49, allocations: 3.103 MB / 4.212 GB, free: 172.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.165e-05/10.49, allocations: 192.7 kB / 4.212 GB, free: 172.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/10.5, allocations: 0.9135 MB / 4.213 GB, free: 171.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002029/10.5, allocations: 29.7 kB / 4.213 GB, free: 171.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006171/10.5, allocations: 492.8 kB / 4.213 GB, free: 170.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004323/10.5, allocations: 307.4 kB / 4.214 GB, free: 170.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.789e-05/10.5, allocations: 0 / 4.214 GB, free: 170.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000109/10.5, allocations: 345.9 kB / 4.214 GB, free: 170.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006423/10.5, allocations: 373.9 kB / 4.214 GB, free: 169.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007639/10.5, allocations: 0.5861 MB / 4.215 GB, free: 169.1 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.004652/10.5, allocations: 1.409 MB / 4.216 GB, free: 167.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/10.5, allocations: 0 / 4.216 GB, free: 167.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004472/10.51, allocations: 1.598 MB / 4.218 GB, free: 166.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003376/10.51, allocations: 1.248 MB / 4.219 GB, free: 164.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/10.51, allocations: 4 kB / 4.219 GB, free: 164.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/10.51, allocations: 397.5 kB / 4.219 GB, free: 164.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009035/10.51, allocations: 187.2 kB / 4.219 GB, free: 164.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006989/10.52, allocations: 6.166 MB / 4.226 GB, free: 157.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002188/10.52, allocations: 125.1 kB / 4.226 GB, free: 157.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002914/10.52, allocations: 40.05 kB / 4.226 GB, free: 157.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/10.52, allocations: 4 kB / 4.226 GB, free: 157.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004093/10.52, allocations: 1.39 MB / 4.227 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/10.52, allocations: 7.688 kB / 4.227 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009977/10.53, allocations: 388.8 kB / 4.227 GB, free: 155.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008649/10.53, allocations: 181.8 kB / 4.228 GB, free: 155.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007742/10.53, allocations: 7.022 MB / 4.234 GB, free: 148.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/10.54, allocations: 119.8 kB / 4.235 GB, free: 148.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002789/10.54, allocations: 40.05 kB / 4.235 GB, free: 148.1 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.0006226/10.54, allocations: 182.8 kB / 4.235 GB, free: 147.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006109/10.54, allocations: 150.2 kB / 4.235 GB, free: 147.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004203/10.54, allocations: 1.401 MB / 4.236 GB, free: 146.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/10.54, allocations: 8 kB / 4.236 GB, free: 146.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/10.54, allocations: 7.469 kB / 4.236 GB, free: 146.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003032/10.55, allocations: 1.281 MB / 4.238 GB, free: 145 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007956/10.55, allocations: 3.09 MB / 4.241 GB, free: 141.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/10.55, allocations: 7.719 kB / 4.241 GB, free: 141.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/10.55, allocations: 193.3 kB / 4.241 GB, free: 141.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004592/10.55, allocations: 188 kB / 4.241 GB, free: 141.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/10.55, allocations: 15.98 kB / 4.241 GB, free: 141.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002929/10.56, allocations: 2.416 MB / 4.243 GB, free: 139 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/10.56, allocations: 7.375 kB / 4.243 GB, free: 138.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00476/10.56, allocations: 2.354 MB / 4.246 GB, free: 136.4 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006095/10.57, allocations: 3.493 MB / 4.249 GB, free: 132.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/10.57, allocations: 355.2 kB / 4.249 GB, free: 132.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006372/10.57, allocations: 10.97 kB / 4.249 GB, free: 132.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001904/10.57, allocations: 129.9 kB / 4.249 GB, free: 132.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/10.57, allocations: 56.48 kB / 4.25 GB, free: 132.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/10.57, allocations: 39.98 kB / 4.25 GB, free: 132.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001616/10.57, allocations: 0.6992 MB / 4.25 GB, free: 131.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.008173/10.58, allocations: 1.558 MB / 4.252 GB, free: 129.9 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.005105/10.59, allocations: 2.644 MB / 4.254 GB, free: 127.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004364/10.59, allocations: 2.367 MB / 4.257 GB, free: 125 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/10.59, allocations: 4 kB / 4.257 GB, free: 125 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001104/10.59, allocations: 0.6609 MB / 4.257 GB, free: 124.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004333/10.6, allocations: 0.6963 MB / 4.258 GB, free: 123.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008407/10.61, allocations: 2.621 MB / 4.261 GB, free: 121 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001977/10.61, allocations: 1.496 MB / 4.262 GB, free: 119.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.072e-06/10.61, allocations: 0 / 4.262 GB, free: 119.5 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)