Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.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.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",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.162/2.162, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001341/0.001341, allocations: 185.9 kB / 490.8 MB, free: 1.871 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.571/1.571, allocations: 221.3 MB / 0.7863 GB, free: 13.66 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.0009586/0.0009586, allocations: 87.92 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7164/0.7174, allocations: 149.1 MB / 1.072 GB, free: 164.6 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/1.05, allocations: 143 MB / 1.212 GB, free: 21.77 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.152/2.202, allocations: 431.5 MB / 1.633 GB, free: 2.293 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/2.202, allocations: 92.59 kB / 1.633 GB, free: 2.246 MB / 1.073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 2.418/4.62, allocations: 0.6398 GB / 2.273 GB, free: 252.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/4.62, allocations: 7.375 kB / 2.273 GB, free: 252.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004426/4.625, allocations: 0.6178 MB / 2.274 GB, free: 252 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005883/4.631, allocations: 1.663 MB / 2.275 GB, free: 251.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003195/4.631, allocations: 119.1 kB / 2.275 GB, free: 251.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004985/4.632, allocations: 64.06 kB / 2.275 GB, free: 251.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002667/4.634, allocations: 0.9823 MB / 2.276 GB, free: 251.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00202/4.636, allocations: 1.029 MB / 2.277 GB, free: 251.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.176e-05/4.636, allocations: 3.75 kB / 2.277 GB, free: 251.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/4.636, allocations: 2.156 kB / 2.277 GB, free: 251.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.882e-05/4.637, allocations: 33.25 kB / 2.277 GB, free: 251.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008705/4.645, allocations: 5.788 MB / 2.283 GB, free: 248.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/4.646, allocations: 0.6676 MB / 2.284 GB, free: 248.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006231/4.647, allocations: 468.5 kB / 2.284 GB, free: 248.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006534/4.648, allocations: 1.16 MB / 2.285 GB, free: 247.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007784/4.648, allocations: 0.5443 MB / 2.286 GB, free: 247.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=69): time 3.236e-06/4.648, allocations: 3.281 kB / 2.286 GB, free: 247.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=69): time 0.01768/4.666, allocations: 1.759 MB / 2.287 GB, free: 247.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/4.666, allocations: 121.9 kB / 2.288 GB, free: 247.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002661/4.669, allocations: 1.015 MB / 2.289 GB, free: 246.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003521/4.669, allocations: 25.7 kB / 2.289 GB, free: 246.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005112/4.67, allocations: 442.2 kB / 2.289 GB, free: 246.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004339/4.67, allocations: 233 kB / 2.289 GB, free: 246.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.559e-05/4.67, allocations: 0 / 2.289 GB, free: 246.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.637e-05/4.671, allocations: 331 kB / 2.29 GB, free: 246.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/4.672, allocations: 368.5 kB / 2.29 GB, free: 246.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/4.673, allocations: 0.6057 MB / 2.29 GB, free: 246 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001922/4.675, allocations: 436.5 kB / 2.291 GB, free: 245.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/4.675, allocations: 0 / 2.291 GB, free: 245.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.01926/4.694, allocations: 1.862 MB / 2.293 GB, free: 245.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002792/4.694, allocations: 1.16 MB / 2.294 GB, free: 244.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/4.694, allocations: 3.719 kB / 2.294 GB, free: 244.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001559/4.696, allocations: 494.3 kB / 2.294 GB, free: 244.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/4.698, allocations: 196.9 kB / 2.295 GB, free: 244.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0265/4.724, allocations: 3.28 MB / 2.298 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003971/4.728, allocations: 209.2 kB / 2.298 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002926/4.729, allocations: 49 kB / 2.298 GB, free: 243.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/4.729, allocations: 3.938 kB / 2.298 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01984/4.749, allocations: 1.689 MB / 2.3 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/4.749, allocations: 3.656 kB / 2.3 GB, free: 243.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/4.75, allocations: 487.2 kB / 2.3 GB, free: 243.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/4.752, allocations: 200.5 kB / 2.3 GB, free: 243.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02385/4.776, allocations: 3.279 MB / 2.303 GB, free: 242.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00382/4.78, allocations: 201.2 kB / 2.304 GB, free: 242.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/4.78, allocations: 50.77 kB / 2.304 GB, free: 242.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * 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: 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0005042/4.78, allocations: 125.3 kB / 2.304 GB, free: 242 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005368/4.781, allocations: 136.6 kB / 2.304 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01897/4.8, allocations: 1.981 MB / 2.306 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.134e-05/4.8, allocations: 9.562 kB / 2.306 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/4.8, allocations: 0 / 2.306 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01589/4.816, allocations: 1.776 MB / 2.308 GB, free: 241.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01434/4.83, allocations: 3.891 MB / 2.311 GB, free: 240.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/4.83, allocations: 7.672 kB / 2.311 GB, free: 240.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/4.831, allocations: 163.2 kB / 2.312 GB, free: 240.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008752/4.832, allocations: 498.6 kB / 2.312 GB, free: 240.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/4.832, allocations: 19.12 kB / 2.312 GB, free: 240.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0151/4.847, allocations: 3.436 MB / 2.315 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/4.847, allocations: 9.469 kB / 2.315 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01164/4.859, allocations: 2.938 MB / 2.318 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01215/4.871, allocations: 3.987 MB / 2.322 GB, free: 237.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/4.873, allocations: 473.3 kB / 2.323 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/4.873, allocations: 7.875 kB / 2.323 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/4.874, allocations: 169.4 kB / 2.323 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/4.875, allocations: 65.41 kB / 2.323 GB, free: 237.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/4.875, allocations: 50.12 kB / 2.323 GB, free: 237.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.00118/4.876, allocations: 0.7677 MB / 2.324 GB, free: 237.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004742/4.881, allocations: 1.167 MB / 2.325 GB, free: 237.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001569/4.882, allocations: 0.8256 MB / 2.326 GB, free: 236.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005115/4.887, allocations: 1.852 MB / 2.327 GB, free: 236.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/4.887, allocations: 3.969 kB / 2.327 GB, free: 236.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003289/4.891, allocations: 0.8858 MB / 2.328 GB, free: 236.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003136/4.894, allocations: 0.6125 MB / 2.329 GB, free: 236.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006679/4.901, allocations: 2.368 MB / 2.331 GB, free: 235.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/4.902, allocations: 1.405 MB / 2.333 GB, free: 235.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.223e-06/4.902, allocations: 7.125 kB / 2.333 GB, free: 235.2 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1)