Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",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.286/2.286, allocations: 390.4 MB / 397.6 MB, free: 11.22 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.001208/0.001208, allocations: 185.2 kB / 490.8 MB, free: 1.875 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.602/1.602, allocations: 221.4 MB / 0.7863 GB, free: 13.65 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.001066/0.001066, allocations: 90.67 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6895/0.6906, allocations: 149.1 MB / 1.072 GB, free: 182.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.9403, allocations: 143 MB / 1.212 GB, free: 39.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.181/2.121, allocations: 430.9 MB / 1.632 GB, free: 0.5938 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/2.122, allocations: 88.38 kB / 1.633 GB, free: 0.5508 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 2.588/4.71, allocations: 0.64 GB / 2.273 GB, free: 248.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/4.71, allocations: 9 kB / 2.273 GB, free: 248.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004465/4.715, allocations: 0.6248 MB / 2.273 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005004/4.72, allocations: 1.686 MB / 2.275 GB, free: 247.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/4.72, allocations: 109.8 kB / 2.275 GB, free: 247.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004251/4.721, allocations: 66.03 kB / 2.275 GB, free: 247.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002297/4.723, allocations: 0.9992 MB / 2.276 GB, free: 247.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/4.725, allocations: 1.038 MB / 2.277 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.601e-05/4.725, allocations: 0 / 2.277 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/4.725, allocations: 3.188 kB / 2.277 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.043e-05/4.725, allocations: 29.23 kB / 2.277 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008469/4.734, allocations: 5.819 MB / 2.283 GB, free: 245 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/4.735, allocations: 0.6827 MB / 2.283 GB, free: 245 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006476/4.736, allocations: 483.7 kB / 2.284 GB, free: 245 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006576/4.736, allocations: 1.16 MB / 2.285 GB, free: 243.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007557/4.737, allocations: 0.5574 MB / 2.285 GB, free: 243.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=68): time 2.504e-06/4.737, allocations: 0 / 2.285 GB, free: 243.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=68): time 0.01015/4.747, allocations: 1.812 MB / 2.287 GB, free: 243.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/4.747, allocations: 115 kB / 2.287 GB, free: 243.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/4.75, allocations: 1.057 MB / 2.288 GB, free: 243.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002697/4.75, allocations: 28.86 kB / 2.288 GB, free: 243.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004344/4.75, allocations: 449.7 kB / 2.289 GB, free: 242.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003737/4.751, allocations: 220 kB / 2.289 GB, free: 242.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.571e-05/4.751, allocations: 7.156 kB / 2.289 GB, free: 242.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.964e-05/4.751, allocations: 330.7 kB / 2.289 GB, free: 242.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000605/4.751, allocations: 383.5 kB / 2.29 GB, free: 242.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007239/4.752, allocations: 0.611 MB / 2.29 GB, free: 242.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/4.753, allocations: 461.5 kB / 2.291 GB, free: 242.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/4.753, allocations: 0 / 2.291 GB, free: 242.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.009679/4.763, allocations: 1.791 MB / 2.293 GB, free: 242.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005658/4.764, allocations: 1.17 MB / 2.294 GB, free: 240.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.57e-05/4.764, allocations: 3.844 kB / 2.294 GB, free: 240.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/4.765, allocations: 0.5163 MB / 2.294 GB, free: 240.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/4.766, allocations: 202.6 kB / 2.294 GB, free: 240.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003475/4.77, allocations: 1.104 MB / 2.295 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002848/4.773, allocations: 213.7 kB / 2.296 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004599/4.773, allocations: 47.56 kB / 2.296 GB, free: 240.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/4.773, allocations: 3.781 kB / 2.296 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01057/4.784, allocations: 1.618 MB / 2.297 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.743e-05/4.784, allocations: 3.5 kB / 2.297 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/4.785, allocations: 0.5237 MB / 2.298 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/4.786, allocations: 192.3 kB / 2.298 GB, free: 240.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003059/4.789, allocations: 1.111 MB / 2.299 GB, free: 239.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002599/4.792, allocations: 205.1 kB / 2.299 GB, free: 239.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003185/4.792, allocations: 44.52 kB / 2.299 GB, free: 239.8 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 (80): * Single equations (assignments): 78 * 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.0005313/4.793, allocations: 130.7 kB / 2.299 GB, free: 239.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007154/4.794, allocations: 145.4 kB / 2.3 GB, free: 239.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/4.805, allocations: 2.029 MB / 2.302 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.01e-05/4.805, allocations: 14.75 kB / 2.302 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/4.805, allocations: 0 / 2.302 GB, free: 239.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009927/4.815, allocations: 1.82 MB / 2.303 GB, free: 239.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007105/4.822, allocations: 3.232 MB / 2.307 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/4.822, allocations: 3.875 kB / 2.307 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000694/4.823, allocations: 165.2 kB / 2.307 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000852/4.824, allocations: 0.5194 MB / 2.307 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/4.824, allocations: 22.08 kB / 2.307 GB, free: 238.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00425/4.828, allocations: 1.31 MB / 2.308 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.346e-06/4.828, allocations: 11.44 kB / 2.308 GB, free: 238 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003887/4.832, allocations: 2.278 MB / 2.311 GB, free: 237.2 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004652/4.837, allocations: 3.358 MB / 2.314 GB, free: 236.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/4.838, allocations: 481.5 kB / 2.314 GB, free: 235.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005338/4.838, allocations: 11.42 kB / 2.314 GB, free: 235.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/4.84, allocations: 166 kB / 2.315 GB, free: 235.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/4.84, allocations: 65.61 kB / 2.315 GB, free: 235.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/4.841, allocations: 55.33 kB / 2.315 GB, free: 235.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001546/4.842, allocations: 0.8026 MB / 2.316 GB, free: 235.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005435/4.848, allocations: 1.095 MB / 2.317 GB, free: 235.6 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 (66): * Single equations (assignments): 57 * 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.001955/4.85, allocations: 0.83 MB / 2.317 GB, free: 235.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005252/4.855, allocations: 1.666 MB / 2.319 GB, free: 235.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/4.855, allocations: 0 / 2.319 GB, free: 235.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003389/4.858, allocations: 0.7905 MB / 2.32 GB, free: 235.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00415/4.862, allocations: 0.61 MB / 2.32 GB, free: 235.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/4.873, allocations: 2.323 MB / 2.323 GB, free: 234.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00217/4.875, allocations: 1.425 MB / 2.324 GB, free: 233.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.813e-06/4.875, allocations: 0 / 2.324 GB, free: 233.9 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)