Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.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,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR",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 1.997/1.997, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001203/0.001203, allocations: 181.2 kB / 490.8 MB, free: 1.934 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.342/1.342, allocations: 221.3 MB / 0.7863 GB, free: 13.72 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.0009379/0.000938, allocations: 88.67 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5949/0.5958, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.8636, allocations: 143 MB / 1.212 GB, free: 40.03 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.92, allocations: 430.9 MB / 1.632 GB, free: 0.7344 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/1.921, allocations: 89.69 kB / 1.633 GB, free: 0.6914 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.714/4.635, allocations: 0.6394 GB / 2.272 GB, free: 249.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/4.635, allocations: 11.58 kB / 2.272 GB, free: 249.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004509/4.64, allocations: 0.6091 MB / 2.273 GB, free: 249 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006741/4.646, allocations: 1.672 MB / 2.274 GB, free: 248.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/4.647, allocations: 115.8 kB / 2.274 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006034/4.647, allocations: 58.28 kB / 2.274 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002784/4.65, allocations: 0.9843 MB / 2.275 GB, free: 248.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002121/4.652, allocations: 1.024 MB / 2.276 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.516e-05/4.652, allocations: 1.125 kB / 2.276 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/4.652, allocations: 3.312 kB / 2.276 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.808e-05/4.653, allocations: 27.06 kB / 2.276 GB, free: 248.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01238/4.665, allocations: 5.76 MB / 2.282 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/4.666, allocations: 0.6579 MB / 2.283 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008691/4.667, allocations: 467.7 kB / 2.283 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001245/4.669, allocations: 1.158 MB / 2.284 GB, free: 244.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/4.67, allocations: 0.5493 MB / 2.285 GB, free: 244.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=68): time 3.657e-06/4.67, allocations: 0 / 2.285 GB, free: 244.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=68): time 0.01097/4.681, allocations: 1.754 MB / 2.286 GB, free: 244.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.754e-05/4.681, allocations: 119.8 kB / 2.287 GB, free: 244.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001852/4.683, allocations: 1.008 MB / 2.288 GB, free: 244 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003206/4.683, allocations: 29.64 kB / 2.288 GB, free: 244 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000487/4.683, allocations: 440.5 kB / 2.288 GB, free: 243.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003673/4.684, allocations: 231.2 kB / 2.288 GB, free: 243.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.488e-05/4.684, allocations: 0 / 2.288 GB, free: 243.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001066/4.684, allocations: 334.4 kB / 2.289 GB, free: 243.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006841/4.685, allocations: 364.8 kB / 2.289 GB, free: 243.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000796/4.685, allocations: 0.6067 MB / 2.289 GB, free: 243.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/4.687, allocations: 428.8 kB / 2.29 GB, free: 243.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/4.687, allocations: 0 / 2.29 GB, free: 243.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.01061/4.697, allocations: 1.86 MB / 2.292 GB, free: 242.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000432/4.698, allocations: 1.166 MB / 2.293 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/4.698, allocations: 6 kB / 2.293 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/4.699, allocations: 495.6 kB / 2.293 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009372/4.7, allocations: 191.2 kB / 2.293 GB, free: 241.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0138/4.714, allocations: 3.308 MB / 2.297 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002472/4.716, allocations: 213.6 kB / 2.297 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/4.716, allocations: 50.44 kB / 2.297 GB, free: 240.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/4.716, allocations: 9.844 kB / 2.297 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01005/4.726, allocations: 1.684 MB / 2.299 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/4.726, allocations: 3.906 kB / 2.299 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008182/4.727, allocations: 493.6 kB / 2.299 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008708/4.728, allocations: 196.2 kB / 2.299 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/4.742, allocations: 3.307 MB / 2.303 GB, free: 239.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002306/4.744, allocations: 206.3 kB / 2.303 GB, free: 239.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/4.744, allocations: 49 kB / 2.303 GB, free: 239.2 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.0003942/4.744, allocations: 124 kB / 2.303 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003132/4.745, allocations: 138.6 kB / 2.303 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01058/4.755, allocations: 1.975 MB / 2.305 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.976e-05/4.755, allocations: 7.812 kB / 2.305 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/4.755, allocations: 3.875 kB / 2.305 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01002/4.765, allocations: 1.78 MB / 2.307 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/4.78, allocations: 3.881 MB / 2.31 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/4.78, allocations: 7.484 kB / 2.31 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008349/4.781, allocations: 165.3 kB / 2.311 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000855/4.782, allocations: 487.8 kB / 2.311 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/4.782, allocations: 25.94 kB / 2.311 GB, free: 237.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01511/4.797, allocations: 3.466 MB / 2.315 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/4.797, allocations: 9.688 kB / 2.315 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01215/4.809, allocations: 2.923 MB / 2.317 GB, free: 235.9 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01289/4.822, allocations: 3.989 MB / 2.321 GB, free: 234.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001235/4.823, allocations: 467.3 kB / 2.322 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/4.824, allocations: 13.7 kB / 2.322 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/4.825, allocations: 164.5 kB / 2.322 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/4.825, allocations: 68.12 kB / 2.322 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/4.825, allocations: 47.75 kB / 2.322 GB, free: 234.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001141/4.827, allocations: 0.7696 MB / 2.323 GB, free: 234.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004636/4.831, allocations: 1.162 MB / 2.324 GB, free: 234.3 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.001632/4.833, allocations: 0.8122 MB / 2.325 GB, free: 234.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005445/4.838, allocations: 1.852 MB / 2.326 GB, free: 233.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/4.838, allocations: 0 / 2.326 GB, free: 233.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003452/4.842, allocations: 0.8826 MB / 2.327 GB, free: 233.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003518/4.845, allocations: 0.6053 MB / 2.328 GB, free: 233.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006415/4.852, allocations: 2.375 MB / 2.33 GB, free: 233 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/4.853, allocations: 1.406 MB / 2.332 GB, free: 232.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.453e-06/4.853, allocations: 0 / 2.332 GB, free: 232.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)