Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.236/2.236, allocations: 284.8 MB / 292.1 MB, free: 10.78 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.001703/0.001703, allocations: 173.3 kB / 360.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.714/1.714, allocations: 205.1 MB / 0.6187 GB, free: 13.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001313/0.001313, allocations: 92.94 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2764/0.2778, allocations: 121.4 MB / 0.8502 GB, free: 3.922 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6724/0.9502, allocations: 115.2 MB / 0.9627 GB, free: 78.54 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.031/1.981, allocations: 416.1 MB / 1.369 GB, free: 147.6 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/1.981, allocations: 84.44 kB / 1.369 GB, free: 147.5 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 2.946/4.927, allocations: 0.6253 GB / 1.994 GB, free: 168.9 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/4.927, allocations: 11.66 kB / 1.994 GB, free: 168.9 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007014/4.934, allocations: 0.6807 MB / 1.995 GB, free: 168.8 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005812/4.94, allocations: 1.667 MB / 1.997 GB, free: 168.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/4.941, allocations: 108 kB / 1.997 GB, free: 168.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00027/4.941, allocations: 74.14 kB / 1.997 GB, free: 168.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002955/4.944, allocations: 0.9405 MB / 1.998 GB, free: 168.4 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002711/4.947, allocations: 1.008 MB / 1.999 GB, free: 168.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.587e-05/4.947, allocations: 4.906 kB / 1.999 GB, free: 168.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001566/4.947, allocations: 2.969 kB / 1.999 GB, free: 168.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.124e-05/4.947, allocations: 24.84 kB / 1.999 GB, free: 168.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/4.959, allocations: 5.692 MB / 2.004 GB, free: 165.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/4.962, allocations: 0.6634 MB / 2.005 GB, free: 165.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/4.963, allocations: 445.2 kB / 2.005 GB, free: 165.6 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009865/4.964, allocations: 1.24 MB / 2.007 GB, free: 164.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/4.965, allocations: 0.5343 MB / 2.007 GB, free: 164.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=67): time 3.948e-06/4.965, allocations: 3.281 kB / 2.007 GB, free: 164.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=67): time 0.003622/4.969, allocations: 0.94 MB / 2.008 GB, free: 164 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/4.969, allocations: 116.7 kB / 2.008 GB, free: 163.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002436/4.971, allocations: 1.046 MB / 2.009 GB, free: 163.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003173/4.972, allocations: 31.39 kB / 2.009 GB, free: 163.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004836/4.972, allocations: 450.9 kB / 2.01 GB, free: 163.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000422/4.973, allocations: 219.1 kB / 2.01 GB, free: 163.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.099e-05/4.973, allocations: 0 / 2.01 GB, free: 163.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.626e-05/4.973, allocations: 331.2 kB / 2.01 GB, free: 163.1 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009802/4.974, allocations: 361.3 kB / 2.011 GB, free: 163.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/4.975, allocations: 0.6023 MB / 2.011 GB, free: 162.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001781/4.977, allocations: 454.8 kB / 2.012 GB, free: 162.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/4.977, allocations: 0 / 2.012 GB, free: 162.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003612/4.98, allocations: 1.036 MB / 2.013 GB, free: 162.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002663/4.981, allocations: 1.167 MB / 2.014 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/4.981, allocations: 3.812 kB / 2.014 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.612e-05/4.981, allocations: 14.62 kB / 2.014 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002693/4.984, allocations: 290.8 kB / 2.014 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/4.984, allocations: 10.22 kB / 2.014 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00335/4.987, allocations: 213.4 kB / 2.014 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002211/4.987, allocations: 50.64 kB / 2.014 GB, free: 161.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/4.987, allocations: 3.938 kB / 2.014 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003144/4.99, allocations: 0.8651 MB / 2.015 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/4.99, allocations: 0 / 2.015 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/4.99, allocations: 9.578 kB / 2.015 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002607/4.993, allocations: 295.5 kB / 2.015 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/4.993, allocations: 10.72 kB / 2.015 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00323/4.996, allocations: 206.2 kB / 2.016 GB, free: 161.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002106/4.997, allocations: 50.06 kB / 2.016 GB, free: 161.4 MB / 0.948 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 (87): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003618/4.997, allocations: 133 kB / 2.016 GB, free: 161.3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004348/4.997, allocations: 144.6 kB / 2.016 GB, free: 161.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004154/5.002, allocations: 1.149 MB / 2.017 GB, free: 161.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.032e-05/5.002, allocations: 7.844 kB / 2.017 GB, free: 161.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/5.002, allocations: 0 / 2.017 GB, free: 161.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002806/5.005, allocations: 0.9596 MB / 2.018 GB, free: 161 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008564/5.013, allocations: 3.016 MB / 2.021 GB, free: 160.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.389e-05/5.013, allocations: 7.703 kB / 2.021 GB, free: 160.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002385/5.016, allocations: 254.2 kB / 2.021 GB, free: 160.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.596e-05/5.016, allocations: 10.28 kB / 2.021 GB, free: 160.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/5.016, allocations: 22.33 kB / 2.021 GB, free: 160.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-05/5.016, allocations: 10.97 kB / 2.021 GB, free: 160.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/5.016, allocations: 9.062 kB / 2.021 GB, free: 160.2 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005163/5.021, allocations: 2.094 MB / 2.023 GB, free: 159.5 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006734/5.028, allocations: 3.145 MB / 2.026 GB, free: 158.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/5.029, allocations: 468.3 kB / 2.027 GB, free: 158.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003891/5.03, allocations: 7.531 kB / 2.027 GB, free: 158.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002858/5.033, allocations: 175.6 kB / 2.027 GB, free: 158.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/5.033, allocations: 66.92 kB / 2.027 GB, free: 158.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/5.033, allocations: 51.19 kB / 2.027 GB, free: 158.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001856/5.035, allocations: 0.7954 MB / 2.028 GB, free: 158 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.006663/5.042, allocations: 1.067 MB / 2.029 GB, free: 157.9 MB / 0.948 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 (73): * Single equations (assignments): 65 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00213/5.044, allocations: 0.8258 MB / 2.03 GB, free: 157.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003741/5.048, allocations: 1.384 MB / 2.031 GB, free: 157.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/5.048, allocations: 3.938 kB / 2.031 GB, free: 157.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.00156/5.049, allocations: 0.5053 MB / 2.032 GB, free: 157.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006101/5.055, allocations: 0.6107 MB / 2.032 GB, free: 157.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006706/5.062, allocations: 2.089 MB / 2.034 GB, free: 157 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001944/5.064, allocations: 1.441 MB / 2.036 GB, free: 156.3 MB / 0.948 GB Notification: Performance of SimCode: time 1.182e-06/5.064, allocations: 2.812 kB / 2.036 GB, free: 156.3 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_8.0.0_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)