Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.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.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_y",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.076/2.076, allocations: 390.4 MB / 397.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 188.4 kB / 490.8 MB, free: 11.13 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.551/1.551, allocations: 221.4 MB / 0.7863 GB, free: 13.51 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 101.1 kB / 0.9264 GB, free: 4.48 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.4031/0.4043, allocations: 149.1 MB / 1.072 GB, free: 15.43 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.116/1.52, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.007/2.527, allocations: 430.5 MB / 1.632 GB, free: 241.3 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/2.527, allocations: 88.58 kB / 1.632 GB, free: 241.2 MB / 1.026 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 2.064/4.591, allocations: 0.5688 GB / 2.201 GB, free: 163.7 MB / 1.12 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/4.591, allocations: 8 kB / 2.201 GB, free: 163.6 MB / 1.12 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001493/4.592, allocations: 251.3 kB / 2.201 GB, free: 163.4 MB / 1.12 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004732/4.597, allocations: 1.731 MB / 2.203 GB, free: 161.6 MB / 1.12 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.002e-05/4.597, allocations: 31.98 kB / 2.203 GB, free: 161.6 MB / 1.12 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003909/4.597, allocations: 67.91 kB / 2.203 GB, free: 161.5 MB / 1.12 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002297/4.6, allocations: 0.703 MB / 2.204 GB, free: 160.8 MB / 1.12 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002369/4.602, allocations: 0.8739 MB / 2.205 GB, free: 159.9 MB / 1.12 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.196e-05/4.602, allocations: 7.938 kB / 2.205 GB, free: 159.9 MB / 1.12 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001513/4.602, allocations: 4 kB / 2.205 GB, free: 159.9 MB / 1.12 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.298e-05/4.602, allocations: 41.98 kB / 2.205 GB, free: 159.9 MB / 1.12 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01101/4.613, allocations: 5.055 MB / 2.21 GB, free: 154.6 MB / 1.12 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/4.615, allocations: 469.5 kB / 2.21 GB, free: 154.2 MB / 1.12 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004304/4.615, allocations: 258.2 kB / 2.21 GB, free: 153.9 MB / 1.12 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005574/4.616, allocations: 0.826 MB / 2.211 GB, free: 152.9 MB / 1.12 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/4.616, allocations: 41.06 kB / 2.211 GB, free: 152.9 MB / 1.12 GB Notification: Performance of pre-optimization done (n=59): time 3.636e-06/4.616, allocations: 0 / 2.211 GB, free: 152.9 MB / 1.12 GB Notification: Performance of matching and sorting (n=59): time 0.004789/4.62, allocations: 1.042 MB / 2.212 GB, free: 151.8 MB / 1.12 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/4.621, allocations: 55.91 kB / 2.212 GB, free: 151.8 MB / 1.12 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001832/4.622, allocations: 0.8873 MB / 2.213 GB, free: 150.9 MB / 1.12 GB Notification: Performance of collectPreVariables (initialization): time 0.0001172/4.622, allocations: 29.7 kB / 2.213 GB, free: 150.8 MB / 1.12 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003388/4.623, allocations: 455.6 kB / 2.213 GB, free: 150.4 MB / 1.12 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/4.623, allocations: 193.1 kB / 2.214 GB, free: 150.2 MB / 1.12 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-05/4.623, allocations: 0 / 2.214 GB, free: 150.2 MB / 1.12 GB Notification: Performance of setup shared object (initialization): time 0.0001031/4.623, allocations: 338 kB / 2.214 GB, free: 149.8 MB / 1.12 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003998/4.624, allocations: 193.2 kB / 2.214 GB, free: 149.6 MB / 1.12 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/4.624, allocations: 418.8 kB / 2.215 GB, free: 149.1 MB / 1.12 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008137/4.625, allocations: 282.1 kB / 2.215 GB, free: 148.9 MB / 1.12 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/4.625, allocations: 0 / 2.215 GB, free: 148.9 MB / 1.12 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004918/4.63, allocations: 1.178 MB / 2.216 GB, free: 147.7 MB / 1.12 GB Notification: Performance of prepare postOptimizeDAE: time 0.000362/4.63, allocations: 1.414 MB / 2.217 GB, free: 146.2 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/4.63, allocations: 4 kB / 2.217 GB, free: 146.2 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004764/4.631, allocations: 108.8 kB / 2.217 GB, free: 146.1 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000739/4.632, allocations: 163.8 kB / 2.218 GB, free: 145.9 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001505/4.633, allocations: 0.7942 MB / 2.218 GB, free: 145.1 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/4.635, allocations: 131.2 kB / 2.218 GB, free: 145 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/4.635, allocations: 35.98 kB / 2.219 GB, free: 144.9 MB / 1.12 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/4.635, allocations: 4 kB / 2.219 GB, free: 144.9 MB / 1.12 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005022/4.64, allocations: 1.022 MB / 2.22 GB, free: 143.9 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/4.64, allocations: 4 kB / 2.22 GB, free: 143.9 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003928/4.641, allocations: 105 kB / 2.22 GB, free: 143.8 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007159/4.641, allocations: 163.7 kB / 2.22 GB, free: 143.6 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/4.643, allocations: 0.7944 MB / 2.221 GB, free: 142.8 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/4.644, allocations: 115.4 kB / 2.221 GB, free: 142.7 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/4.645, allocations: 35.98 kB / 2.221 GB, free: 142.6 MB / 1.12 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaPum.COP:VARIABLE(min = 0.0 unit = "1" ) "Coefficient of performance" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003345/4.645, allocations: 124.9 kB / 2.221 GB, free: 142.5 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004621/4.645, allocations: 120.5 kB / 2.221 GB, free: 142.4 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005144/4.651, allocations: 1.176 MB / 2.222 GB, free: 141.2 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/4.651, allocations: 15.89 kB / 2.222 GB, free: 141.2 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/4.651, allocations: 0 / 2.222 GB, free: 141.2 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004245/4.655, allocations: 1.073 MB / 2.223 GB, free: 140.1 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008177/4.663, allocations: 2.378 MB / 2.225 GB, free: 137.7 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/4.663, allocations: 0 / 2.225 GB, free: 137.7 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006631/4.664, allocations: 124.2 kB / 2.226 GB, free: 137.5 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003829/4.664, allocations: 100.8 kB / 2.226 GB, free: 137.4 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.04e-05/4.664, allocations: 15.98 kB / 2.226 GB, free: 137.4 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004538/4.669, allocations: 2.124 MB / 2.228 GB, free: 135.2 MB / 1.12 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.295e-06/4.669, allocations: 0 / 2.228 GB, free: 135.2 MB / 1.12 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005604/4.675, allocations: 1.743 MB / 2.229 GB, free: 133.3 MB / 1.12 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006103/4.681, allocations: 2.485 MB / 2.232 GB, free: 130.7 MB / 1.12 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/4.682, allocations: 299.5 kB / 2.232 GB, free: 130.4 MB / 1.12 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005039/4.682, allocations: 11.89 kB / 2.232 GB, free: 130.4 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001361/4.684, allocations: 71.92 kB / 2.232 GB, free: 130.3 MB / 1.12 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/4.684, allocations: 48.23 kB / 2.232 GB, free: 130.3 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.413e-05/4.684, allocations: 37.91 kB / 2.232 GB, free: 130.2 MB / 1.12 GB Notification: Performance of sort global known variables: time 0.001349/4.685, allocations: 0.6776 MB / 2.233 GB, free: 129.6 MB / 1.12 GB Notification: Performance of remove unused functions: time 0.005678/4.691, allocations: 1.029 MB / 2.234 GB, free: 128.5 MB / 1.12 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001972/4.693, allocations: 0.7817 MB / 2.235 GB, free: 127.8 MB / 1.12 GB Notification: Performance of simCode: created initialization part: time 0.003181/4.696, allocations: 1.057 MB / 2.236 GB, free: 126.8 MB / 1.12 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/4.696, allocations: 0 / 2.236 GB, free: 126.8 MB / 1.12 GB Notification: Performance of simCode: created simulation system equations: time 0.001363/4.698, allocations: 492.2 kB / 2.236 GB, free: 126.3 MB / 1.12 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003442/4.701, allocations: 0.541 MB / 2.237 GB, free: 125.7 MB / 1.12 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00578/4.707, allocations: 1.753 MB / 2.239 GB, free: 123.9 MB / 1.12 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/4.708, allocations: 1.313 MB / 2.24 GB, free: 122.6 MB / 1.12 GB Notification: Performance of SimCode: time 1.152e-06/4.708, allocations: 4 kB / 2.24 GB, free: 122.6 MB / 1.12 GB (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_HeatPumps_Examples_Carnot_y.fmu > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)