Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.447/1.447, allocations: 285.5 MB / 292.8 MB, free: 9.902 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.0009976/0.0009976, allocations: 181.3 kB / 361.1 MB, free: 400 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.275/1.275, allocations: 205.1 MB / 0.6195 GB, free: 2.891 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009089/0.0009087, allocations: 99.84 kB / 0.7326 GB, free: 1.062 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.495/0.4959, allocations: 121.4 MB / 0.8511 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.6872, allocations: 115.3 MB / 0.9638 GB, free: 56.29 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.64/4.327, allocations: 2.085 GB / 3.049 GB, free: 198 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/4.327, allocations: 91.94 kB / 3.049 GB, free: 197.9 MB / 0.9323 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.132/7.459, allocations: 1.039 GB / 4.088 GB, free: 167.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/7.459, allocations: 6.531 kB / 4.088 GB, free: 167.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004209/7.464, allocations: 0.6644 MB / 4.089 GB, free: 167.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003452/7.467, allocations: 1.463 MB / 4.09 GB, free: 166.7 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003514/7.467, allocations: 122.9 kB / 4.09 GB, free: 166.7 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/7.468, allocations: 75.88 kB / 4.09 GB, free: 166.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001874/7.47, allocations: 1.029 MB / 4.091 GB, free: 166.7 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/7.472, allocations: 1.222 MB / 4.093 GB, free: 166.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/7.472, allocations: 3.094 kB / 4.093 GB, free: 166.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/7.472, allocations: 0 / 4.093 GB, free: 166.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.096e-05/7.472, allocations: 50.28 kB / 4.093 GB, free: 166.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007718/7.479, allocations: 5.962 MB / 4.099 GB, free: 164 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008287/7.48, allocations: 0.6025 MB / 4.099 GB, free: 164 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/7.481, allocations: 496.2 kB / 4.1 GB, free: 164 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005648/7.481, allocations: 477.5 kB / 4.1 GB, free: 163.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006689/7.482, allocations: 0.5394 MB / 4.101 GB, free: 163.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=87): time 3.085e-06/7.482, allocations: 0 / 4.101 GB, free: 163.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.00892/7.491, allocations: 3.169 MB / 4.104 GB, free: 162.8 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/7.491, allocations: 193.1 kB / 4.104 GB, free: 162.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/7.493, allocations: 0.9157 MB / 4.105 GB, free: 162.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001294/7.493, allocations: 28.11 kB / 4.105 GB, free: 162.4 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003652/7.493, allocations: 486.2 kB / 4.105 GB, free: 162.1 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002725/7.493, allocations: 318.2 kB / 4.106 GB, free: 161.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.153e-05/7.494, allocations: 1.875 kB / 4.106 GB, free: 161.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.751e-05/7.494, allocations: 342.7 kB / 4.106 GB, free: 161.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006764/7.494, allocations: 384.6 kB / 4.106 GB, free: 161.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007967/7.495, allocations: 0.6023 MB / 4.107 GB, free: 161.4 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.004266/7.499, allocations: 1.422 MB / 4.108 GB, free: 161.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/7.499, allocations: 0 / 4.108 GB, free: 161.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003976/7.503, allocations: 1.622 MB / 4.11 GB, free: 161.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002064/7.504, allocations: 1.254 MB / 4.111 GB, free: 159.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/7.504, allocations: 5.625 kB / 4.111 GB, free: 159.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009776/7.505, allocations: 415.1 kB / 4.111 GB, free: 159.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007252/7.505, allocations: 173.3 kB / 4.112 GB, free: 159.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005978/7.511, allocations: 6.338 MB / 4.118 GB, free: 155.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/7.513, allocations: 131.6 kB / 4.118 GB, free: 155.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/7.513, allocations: 35.72 kB / 4.118 GB, free: 155.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 7.213e-06/7.513, allocations: 3.906 kB / 4.118 GB, free: 155.6 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003564/7.517, allocations: 1.427 MB / 4.119 GB, free: 155.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/7.517, allocations: 2.656 kB / 4.119 GB, free: 155.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009698/7.518, allocations: 406.2 kB / 4.12 GB, free: 155 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000742/7.518, allocations: 183 kB / 4.12 GB, free: 155 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006578/7.525, allocations: 7.209 MB / 4.127 GB, free: 149 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/7.527, allocations: 122.7 kB / 4.127 GB, free: 149 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.682e-05/7.527, allocations: 39.22 kB / 4.127 GB, free: 149 MB / 0.948 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.0003412/7.527, allocations: 169.7 kB / 4.127 GB, free: 148.8 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002601/7.527, allocations: 154.1 kB / 4.127 GB, free: 148.7 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003699/7.531, allocations: 1.414 MB / 4.129 GB, free: 148.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/7.531, allocations: 9.109 kB / 4.129 GB, free: 148.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/7.531, allocations: 0.9375 kB / 4.129 GB, free: 148.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002906/7.534, allocations: 1.295 MB / 4.13 GB, free: 147.7 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007209/7.541, allocations: 3.124 MB / 4.133 GB, free: 146.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/7.541, allocations: 3.531 kB / 4.133 GB, free: 146.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009907/7.542, allocations: 204.8 kB / 4.133 GB, free: 146.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004283/7.543, allocations: 185.9 kB / 4.133 GB, free: 146.3 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-05/7.543, allocations: 25.52 kB / 4.134 GB, free: 146.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002575/7.545, allocations: 2.4 MB / 4.136 GB, free: 144.3 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/7.545, allocations: 11.5 kB / 4.136 GB, free: 144.3 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004046/7.549, allocations: 2.365 MB / 4.138 GB, free: 143 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004999/7.554, allocations: 3.511 MB / 4.142 GB, free: 140.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008271/7.555, allocations: 353.2 kB / 4.142 GB, free: 140.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003832/7.556, allocations: 19.3 kB / 4.142 GB, free: 140.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/7.557, allocations: 123.4 kB / 4.142 GB, free: 140.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/7.557, allocations: 65.58 kB / 4.142 GB, free: 140.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-05/7.557, allocations: 38.64 kB / 4.142 GB, free: 140.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001159/7.559, allocations: 0.7037 MB / 4.143 GB, free: 140.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0063/7.565, allocations: 1.557 MB / 4.144 GB, free: 139.5 MB / 0.948 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.003201/7.568, allocations: 2.621 MB / 4.147 GB, free: 138.6 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003189/7.571, allocations: 2.403 MB / 4.149 GB, free: 137.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/7.571, allocations: 3.391 kB / 4.149 GB, free: 137.2 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008647/7.572, allocations: 0.6529 MB / 4.15 GB, free: 136.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003427/7.576, allocations: 0.7033 MB / 4.151 GB, free: 136.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00664/7.582, allocations: 2.638 MB / 4.153 GB, free: 135.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001858/7.584, allocations: 1.506 MB / 4.155 GB, free: 135 MB / 0.948 GB Notification: Performance of SimCode: time 5.41e-07/7.584, allocations: 0.8438 kB / 4.155 GB, free: 135 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.fmu > Buildings_maint.8.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1)