Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") [: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.1.4-maint.8.1.x/package.mo): time 1.563/1.563, allocations: 289.8 MB / 297.1 MB, free: 6.641 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.001214/0.001214, allocations: 173.3 kB / 366.3 MB, free: 1.965 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.564/1.564, allocations: 205.1 MB / 0.6256 GB, free: 5.789 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.0009188/0.0009189, allocations: 90.05 kB / 0.7396 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.057e-06/9.077e-06, allocations: 4 kB / 0.859 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7373/0.7373, allocations: 116.3 MB / 0.9726 GB, free: 68.75 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.061/1.799, allocations: 417.4 MB / 1.38 GB, free: 67.02 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/1.799, allocations: 93.02 kB / 1.38 GB, free: 66.97 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.574/4.373, allocations: 0.6235 GB / 2.004 GB, free: 179.8 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003186/4.373, allocations: 45.78 kB / 2.004 GB, free: 179.8 MB / 0.948 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 0.006378/4.38, allocations: 1.794 MB / 2.006 GB, free: 179.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/4.38, allocations: 14.41 kB / 2.006 GB, free: 179.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004357/4.384, allocations: 0.6759 MB / 2.006 GB, free: 179.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004176/4.389, allocations: 1.663 MB / 2.008 GB, free: 178.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/4.389, allocations: 107.5 kB / 2.008 GB, free: 178.7 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/4.389, allocations: 73.34 kB / 2.008 GB, free: 178.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001669/4.391, allocations: 0.9366 MB / 2.009 GB, free: 178.7 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/4.392, allocations: 1.008 MB / 2.01 GB, free: 178.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/4.392, allocations: 1.125 kB / 2.01 GB, free: 178.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.186e-05/4.392, allocations: 3.938 kB / 2.01 GB, free: 178.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.753e-05/4.392, allocations: 27.59 kB / 2.01 GB, free: 178.6 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007486/4.4, allocations: 5.71 MB / 2.016 GB, free: 175.9 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/4.401, allocations: 0.6526 MB / 2.016 GB, free: 175.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006175/4.402, allocations: 460.6 kB / 2.017 GB, free: 175.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007137/4.402, allocations: 1.237 MB / 2.018 GB, free: 174.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000716/4.403, allocations: 0.5313 MB / 2.018 GB, free: 174.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=67): time 3.617e-06/4.403, allocations: 0 / 2.018 GB, free: 174.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=67): time 0.002117/4.405, allocations: 0.9415 MB / 2.019 GB, free: 174.3 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/4.405, allocations: 111.3 kB / 2.019 GB, free: 174.2 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/4.406, allocations: 1.04 MB / 2.02 GB, free: 174 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.49e-05/4.407, allocations: 35.36 kB / 2.02 GB, free: 174 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003647/4.407, allocations: 448.6 kB / 2.021 GB, free: 173.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/4.407, allocations: 221.3 kB / 2.021 GB, free: 173.7 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.135e-05/4.407, allocations: 0 / 2.021 GB, free: 173.7 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.647e-05/4.407, allocations: 333.3 kB / 2.021 GB, free: 173.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004931/4.408, allocations: 354.1 kB / 2.022 GB, free: 173.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006211/4.408, allocations: 0.606 MB / 2.022 GB, free: 173.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009528/4.409, allocations: 452.9 kB / 2.023 GB, free: 173.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/4.409, allocations: 3.5 kB / 2.023 GB, free: 173.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001863/4.411, allocations: 1.043 MB / 2.024 GB, free: 173 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002903/4.412, allocations: 1.166 MB / 2.025 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/4.412, allocations: 7.375 kB / 2.025 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.628e-05/4.412, allocations: 7.812 kB / 2.025 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/4.413, allocations: 294.4 kB / 2.025 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/4.413, allocations: 7.188 kB / 2.025 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/4.415, allocations: 214.9 kB / 2.025 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/4.415, allocations: 51.45 kB / 2.025 GB, free: 171.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/4.415, allocations: 7.125 kB / 2.025 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001653/4.417, allocations: 0.8616 MB / 2.026 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/4.417, allocations: 3.969 kB / 2.026 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/4.417, allocations: 10 kB / 2.026 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/4.418, allocations: 285.8 kB / 2.027 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/4.418, allocations: 13.69 kB / 2.027 GB, free: 171.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/4.42, allocations: 208.9 kB / 2.027 GB, free: 171.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/4.42, allocations: 46.7 kB / 2.027 GB, free: 171.7 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.0002682/4.42, allocations: 131.5 kB / 2.027 GB, free: 171.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/4.42, allocations: 143.8 kB / 2.027 GB, free: 171.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002369/4.423, allocations: 1.165 MB / 2.028 GB, free: 171.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/4.423, allocations: 11.08 kB / 2.028 GB, free: 171.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/4.423, allocations: 0 / 2.028 GB, free: 171.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001495/4.424, allocations: 0.9547 MB / 2.029 GB, free: 171.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004948/4.429, allocations: 3.015 MB / 2.032 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/4.429, allocations: 6.469 kB / 2.032 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/4.43, allocations: 255.9 kB / 2.032 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.198e-05/4.43, allocations: 10.19 kB / 2.032 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.497e-05/4.43, allocations: 23.55 kB / 2.032 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.907e-06/4.43, allocations: 7.781 kB / 2.032 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/4.43, allocations: 15.12 kB / 2.032 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002658/4.433, allocations: 2.088 MB / 2.034 GB, free: 169.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007615/4.434, allocations: 476.8 kB / 2.035 GB, free: 169.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/4.434, allocations: 14.66 kB / 2.035 GB, free: 169.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/4.435, allocations: 168.8 kB / 2.035 GB, free: 169.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/4.436, allocations: 63.45 kB / 2.035 GB, free: 169.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/4.436, allocations: 53.91 kB / 2.035 GB, free: 169.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001054/4.437, allocations: 0.7955 MB / 2.036 GB, free: 169.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002478/4.439, allocations: 0.8372 MB / 2.037 GB, free: 169.2 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.001542/4.441, allocations: 0.8056 MB / 2.038 GB, free: 169 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002234/4.443, allocations: 1.395 MB / 2.039 GB, free: 169 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/4.443, allocations: 0 / 2.039 GB, free: 169 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000787/4.444, allocations: 0.5129 MB / 2.039 GB, free: 169 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00286/4.447, allocations: 0.6188 MB / 2.04 GB, free: 168.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/4.451, allocations: 2.082 MB / 2.042 GB, free: 168.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001342/4.453, allocations: 1.438 MB / 2.043 GB, free: 167.6 MB / 0.948 GB Notification: Performance of SimCode: time 1.723e-06/4.453, allocations: 0 / 2.043 GB, free: 167.6 MB / 0.948 GB Notification: Performance of Templates: time 0.05928/4.512, allocations: 35.83 MB / 2.078 GB, free: 166.7 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)