Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.656/1.656, allocations: 289.8 MB / 297.1 MB, free: 6.613 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001516/0.001516, allocations: 169.3 kB / 366.3 MB, free: 1.945 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.798/1.798, allocations: 205.1 MB / 0.6256 GB, free: 5.781 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009741/0.0009742, allocations: 96.33 kB / 0.7396 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3144/0.3155, allocations: 122.4 MB / 0.8591 GB, free: 13.22 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7435/1.059, allocations: 116.3 MB / 0.9726 GB, free: 68.22 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.353/6.412, allocations: 2.086 GB / 3.059 GB, free: 355.1 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/6.412, allocations: 89.39 kB / 3.059 GB, free: 355.1 MB / 0.948 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.24/9.652, allocations: 1.039 GB / 4.098 GB, free: 24.25 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/9.652, allocations: 11.98 kB / 4.098 GB, free: 24.23 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005036/9.658, allocations: 0.6609 MB / 4.099 GB, free: 23.57 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005132/9.663, allocations: 1.47 MB / 4.1 GB, free: 22.05 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000418/9.663, allocations: 118.2 kB / 4.1 GB, free: 21.93 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005692/9.664, allocations: 79.91 kB / 4.1 GB, free: 21.85 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002943/9.667, allocations: 1.02 MB / 4.101 GB, free: 20.83 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003387/9.67, allocations: 1.219 MB / 4.102 GB, free: 19.54 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.46e-05/9.67, allocations: 3.938 kB / 4.102 GB, free: 19.53 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002905/9.67, allocations: 4 kB / 4.102 GB, free: 19.53 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.405e-05/9.671, allocations: 50.2 kB / 4.103 GB, free: 19.48 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01148/9.682, allocations: 5.958 MB / 4.108 GB, free: 13.24 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/9.683, allocations: 0.6073 MB / 4.109 GB, free: 12.63 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006352/9.684, allocations: 484.1 kB / 4.109 GB, free: 12.16 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006816/9.685, allocations: 482.1 kB / 4.11 GB, free: 11.59 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007625/9.685, allocations: 0.5475 MB / 4.11 GB, free: 11.03 MB / 0.948 GB Notification: Performance of pre-optimization done (n=87): time 4.869e-06/9.685, allocations: 0 / 4.11 GB, free: 11.03 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.0109/9.696, allocations: 3.17 MB / 4.114 GB, free: 7.793 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/9.696, allocations: 192.7 kB / 4.114 GB, free: 7.562 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/9.7, allocations: 0.9172 MB / 4.115 GB, free: 6.637 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003991/9.7, allocations: 25.7 kB / 4.115 GB, free: 6.605 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007582/9.701, allocations: 489.6 kB / 4.115 GB, free: 6.121 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006418/9.701, allocations: 315.3 kB / 4.115 GB, free: 5.809 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/9.702, allocations: 0 / 4.115 GB, free: 5.809 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001351/9.702, allocations: 345.8 kB / 4.116 GB, free: 5.465 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008268/9.703, allocations: 389.9 kB / 4.116 GB, free: 5.086 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/9.704, allocations: 0.599 MB / 4.117 GB, free: 4.402 MB / 0.948 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.005225/9.709, allocations: 1.426 MB / 4.118 GB, free: 2.953 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/9.709, allocations: 0 / 4.118 GB, free: 2.953 MB / 0.948 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004812/9.714, allocations: 1.616 MB / 4.12 GB, free: 1.32 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003438/9.714, allocations: 1.251 MB / 4.121 GB, free: 0 / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.153e-05/9.714, allocations: 4.047 kB / 4.121 GB, free: 15.99 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/9.715, allocations: 419 kB / 4.121 GB, free: 15.57 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009439/9.716, allocations: 171.8 kB / 4.121 GB, free: 15.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009444/9.726, allocations: 6.346 MB / 4.128 GB, free: 8.68 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002102/9.728, allocations: 127.8 kB / 4.128 GB, free: 8.555 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003031/9.728, allocations: 40.05 kB / 4.128 GB, free: 8.516 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/9.728, allocations: 6.5 kB / 4.128 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004783/9.733, allocations: 1.425 MB / 4.129 GB, free: 7.07 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/9.733, allocations: 0 / 4.129 GB, free: 7.07 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/9.734, allocations: 411.5 kB / 4.13 GB, free: 6.656 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009673/9.735, allocations: 175.7 kB / 4.13 GB, free: 6.484 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.463/10.2, allocations: 7.203 MB / 4.137 GB, free: 228.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/10.2, allocations: 119.5 kB / 4.137 GB, free: 228.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/10.2, allocations: 47.22 kB / 4.137 GB, free: 228.5 MB / 0.9636 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 (87): * Single equations (assignments): 82 * 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 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003666/10.2, allocations: 162.3 kB / 4.137 GB, free: 228.4 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002156/10.2, allocations: 153.8 kB / 4.137 GB, free: 228.4 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003401/10.2, allocations: 1.417 MB / 4.139 GB, free: 228.3 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/10.2, allocations: 11.75 kB / 4.139 GB, free: 228.3 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/10.2, allocations: 0 / 4.139 GB, free: 228.3 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002702/10.21, allocations: 1.293 MB / 4.14 GB, free: 228.1 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006055/10.21, allocations: 3.114 MB / 4.143 GB, free: 227.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/10.21, allocations: 6 kB / 4.143 GB, free: 227.7 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/10.21, allocations: 197 kB / 4.143 GB, free: 227.7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004301/10.21, allocations: 193.6 kB / 4.143 GB, free: 227.7 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.65e-05/10.21, allocations: 19.16 kB / 4.143 GB, free: 227.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/10.22, allocations: 2.417 MB / 4.146 GB, free: 226 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/10.22, allocations: 10.66 kB / 4.146 GB, free: 226 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004067/10.22, allocations: 2.358 MB / 4.148 GB, free: 225.3 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00523/10.23, allocations: 3.509 MB / 4.151 GB, free: 224.4 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/10.23, allocations: 358.9 kB / 4.152 GB, free: 224.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002462/10.23, allocations: 18.42 kB / 4.152 GB, free: 224.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/10.23, allocations: 139.1 kB / 4.152 GB, free: 224.2 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/10.23, allocations: 51.64 kB / 4.152 GB, free: 224.2 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.635e-05/10.23, allocations: 44.55 kB / 4.152 GB, free: 224.2 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.001107/10.23, allocations: 0.696 MB / 4.153 GB, free: 224.1 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.00633/10.24, allocations: 1.557 MB / 4.154 GB, free: 224.1 MB / 0.9636 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 (82): * Single equations (assignments): 79 * 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.003356/10.24, allocations: 2.636 MB / 4.157 GB, free: 223.3 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.00345/10.24, allocations: 2.39 MB / 4.159 GB, free: 222.5 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/10.24, allocations: 3.906 kB / 4.159 GB, free: 222.5 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0008426/10.24, allocations: 0.6606 MB / 4.16 GB, free: 222.4 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003749/10.25, allocations: 0.6907 MB / 4.16 GB, free: 222.4 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006251/10.25, allocations: 2.64 MB / 4.163 GB, free: 221.7 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001139/10.26, allocations: 1.5 MB / 4.164 GB, free: 221 MB / 0.9636 GB Notification: Performance of SimCode: time 1.022e-06/10.26, allocations: 3.219 kB / 4.164 GB, free: 221 MB / 0.9636 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)