Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.251/1.251, allocations: 249.4 MB / 256.7 MB, free: 7.051 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.0009858/0.000986, allocations: 185.2 kB / 316 MB, free: 3.57 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.197/1.197, allocations: 205.1 MB / 0.5667 GB, free: 15.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009183/0.0009184, allocations: 91.33 kB / 0.671 GB, free: 4.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3654/0.3663, allocations: 112.4 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.5388, allocations: 106.3 MB / 0.8847 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.835/4.374, allocations: 2.205 GB / 3.089 GB, free: 176 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/4.375, allocations: 89.95 kB / 3.089 GB, free: 176 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 2.98/7.355, allocations: 1.009 GB / 4.098 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/7.355, allocations: 14.88 kB / 4.098 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004009/7.359, allocations: 0.6436 MB / 4.099 GB, free: 121 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003965/7.363, allocations: 1.468 MB / 4.1 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003884/7.363, allocations: 127.2 kB / 4.1 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000206/7.363, allocations: 74.88 kB / 4.101 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002023/7.365, allocations: 1.026 MB / 4.102 GB, free: 119.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/7.367, allocations: 1.232 MB / 4.103 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/7.367, allocations: 0 / 4.103 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/7.368, allocations: 6.219 kB / 4.103 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.806e-05/7.368, allocations: 41.98 kB / 4.103 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009284/7.377, allocations: 5.961 MB / 4.109 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009271/7.378, allocations: 0.6076 MB / 4.109 GB, free: 115.3 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005533/7.378, allocations: 483 kB / 4.11 GB, free: 115.1 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000553/7.379, allocations: 487.3 kB / 4.11 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007127/7.38, allocations: 0.5434 MB / 4.111 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=87): time 3.066e-06/7.38, allocations: 3.938 kB / 4.111 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95): time 0.008429/7.388, allocations: 3.142 MB / 4.114 GB, free: 113 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/7.388, allocations: 197 kB / 4.114 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/7.39, allocations: 0.9182 MB / 4.115 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 9.026e-05/7.39, allocations: 31.5 kB / 4.115 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003786/7.39, allocations: 493.8 kB / 4.115 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002471/7.39, allocations: 311.1 kB / 4.116 GB, free: 111.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/7.39, allocations: 5.062 kB / 4.116 GB, free: 111.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.996e-05/7.391, allocations: 342.2 kB / 4.116 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005768/7.391, allocations: 386.8 kB / 4.116 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006925/7.392, allocations: 0.601 MB / 4.117 GB, free: 110.9 MB / 0.8855 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.004077/7.396, allocations: 1.423 MB / 4.118 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/7.396, allocations: 1.188 kB / 4.118 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003952/7.4, allocations: 1.614 MB / 4.12 GB, free: 109.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002055/7.4, allocations: 1.244 MB / 4.121 GB, free: 108.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/7.4, allocations: 3.031 kB / 4.121 GB, free: 108.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009843/7.401, allocations: 412.8 kB / 4.121 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/7.402, allocations: 180.9 kB / 4.122 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006033/7.408, allocations: 6.332 MB / 4.128 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/7.41, allocations: 123.5 kB / 4.128 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/7.41, allocations: 41.23 kB / 4.128 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.278e-06/7.41, allocations: 2.875 kB / 4.128 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003738/7.414, allocations: 1.412 MB / 4.129 GB, free: 101.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/7.414, allocations: 7.156 kB / 4.129 GB, free: 101.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/7.415, allocations: 411.3 kB / 4.13 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007607/7.415, allocations: 175.8 kB / 4.13 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006685/7.422, allocations: 7.192 MB / 4.137 GB, free: 94.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/7.424, allocations: 130.6 kB / 4.137 GB, free: 94.89 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/7.424, allocations: 43.89 kB / 4.137 GB, free: 94.88 MB / 0.8855 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.0003997/7.424, allocations: 176.7 kB / 4.137 GB, free: 94.71 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002907/7.425, allocations: 150.1 kB / 4.137 GB, free: 94.64 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003673/7.428, allocations: 1.416 MB / 4.139 GB, free: 93.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/7.428, allocations: 8.844 kB / 4.139 GB, free: 93.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/7.428, allocations: 0 / 4.139 GB, free: 93.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002794/7.431, allocations: 1.286 MB / 4.14 GB, free: 93.21 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006162/7.437, allocations: 3.115 MB / 4.143 GB, free: 91.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/7.437, allocations: 3.625 kB / 4.143 GB, free: 91.21 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009637/7.438, allocations: 199.3 kB / 4.143 GB, free: 91.16 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004092/7.439, allocations: 190.3 kB / 4.144 GB, free: 91.09 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.497e-05/7.439, allocations: 20.3 kB / 4.144 GB, free: 91.08 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002399/7.441, allocations: 2.401 MB / 4.146 GB, free: 88.94 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/7.441, allocations: 4.5 kB / 4.146 GB, free: 88.94 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004085/7.445, allocations: 2.371 MB / 4.148 GB, free: 87.39 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005313/7.451, allocations: 3.501 MB / 4.152 GB, free: 85.01 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009354/7.452, allocations: 356.8 kB / 4.152 GB, free: 84.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/7.452, allocations: 17.81 kB / 4.152 GB, free: 84.72 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/7.453, allocations: 129 kB / 4.152 GB, free: 84.67 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/7.453, allocations: 65.3 kB / 4.152 GB, free: 84.63 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-05/7.454, allocations: 39.23 kB / 4.152 GB, free: 84.62 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001165/7.455, allocations: 0.7076 MB / 4.153 GB, free: 84.24 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.005784/7.461, allocations: 1.533 MB / 4.154 GB, free: 83.46 MB / 0.8855 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.003287/7.464, allocations: 2.635 MB / 4.157 GB, free: 81.74 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002979/7.467, allocations: 2.394 MB / 4.159 GB, free: 79.27 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/7.467, allocations: 0 / 4.159 GB, free: 79.27 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007527/7.468, allocations: 0.6627 MB / 4.16 GB, free: 78.59 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003299/7.471, allocations: 0.6867 MB / 4.161 GB, free: 77.91 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005463/7.476, allocations: 2.644 MB / 4.163 GB, free: 75.21 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009897/7.477, allocations: 1.508 MB / 4.165 GB, free: 73.68 MB / 0.8855 GB Notification: Performance of SimCode: time 5.81e-07/7.477, allocations: 0 / 4.165 GB, free: 73.68 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)