Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.374/1.374, allocations: 285.5 MB / 292.8 MB, free: 10.44 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.0009939/0.000994, allocations: 181.3 kB / 361.1 MB, free: 7.086 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.148/1.148, allocations: 205.1 MB / 0.6195 GB, free: 10.3 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.0007563/0.0007562, allocations: 89.36 kB / 0.7325 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2079/0.2087, allocations: 121.4 MB / 0.8511 GB, free: 2.855 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5635/0.7722, allocations: 115.3 MB / 0.9637 GB, free: 78.45 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7606/1.533, allocations: 416.5 MB / 1.37 GB, free: 145.8 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/1.533, allocations: 89.39 kB / 1.371 GB, free: 145.8 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 1.967/3.5, allocations: 0.6253 GB / 1.996 GB, free: 167.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/3.5, allocations: 15.83 kB / 1.996 GB, free: 167.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003474/3.504, allocations: 0.672 MB / 1.996 GB, free: 167.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003092/3.507, allocations: 1.677 MB / 1.998 GB, free: 166.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/3.507, allocations: 107.4 kB / 1.998 GB, free: 166.8 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/3.507, allocations: 67.19 kB / 1.998 GB, free: 166.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001444/3.509, allocations: 0.9479 MB / 1.999 GB, free: 166.8 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/3.51, allocations: 1.005 MB / 2 GB, free: 166.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/3.51, allocations: 0 / 2 GB, free: 166.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.03e-05/3.51, allocations: 3.75 kB / 2 GB, free: 166.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/3.51, allocations: 27 kB / 2 GB, free: 166.7 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006172/3.516, allocations: 5.685 MB / 2.006 GB, free: 164.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009848/3.517, allocations: 0.6567 MB / 2.006 GB, free: 164.1 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005653/3.518, allocations: 451.3 kB / 2.007 GB, free: 164.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005909/3.519, allocations: 1.245 MB / 2.008 GB, free: 162.6 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006441/3.519, allocations: 0.5292 MB / 2.009 GB, free: 162.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=67): time 2.274e-06/3.519, allocations: 0 / 2.009 GB, free: 162.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=67): time 0.00179/3.521, allocations: 0.9429 MB / 2.01 GB, free: 162.4 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/3.521, allocations: 113.8 kB / 2.01 GB, free: 162.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/3.522, allocations: 1.046 MB / 2.011 GB, free: 162.2 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.96e-05/3.522, allocations: 29.42 kB / 2.011 GB, free: 162.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/3.523, allocations: 445.5 kB / 2.011 GB, free: 162 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/3.523, allocations: 219.3 kB / 2.011 GB, free: 161.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/3.523, allocations: 0 / 2.011 GB, free: 161.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.48e-05/3.523, allocations: 336.4 kB / 2.012 GB, free: 161.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004572/3.523, allocations: 360.4 kB / 2.012 GB, free: 161.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005678/3.524, allocations: 0.6038 MB / 2.013 GB, free: 161.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008834/3.525, allocations: 448.2 kB / 2.013 GB, free: 161.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/3.525, allocations: 0 / 2.013 GB, free: 161.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00179/3.527, allocations: 1.042 MB / 2.014 GB, free: 161.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002269/3.527, allocations: 1.17 MB / 2.015 GB, free: 160 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/3.527, allocations: 11.41 kB / 2.015 GB, free: 160 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/3.527, allocations: 7.875 kB / 2.015 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/3.528, allocations: 288.1 kB / 2.015 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/3.528, allocations: 9.125 kB / 2.015 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/3.53, allocations: 222.9 kB / 2.016 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/3.53, allocations: 44.58 kB / 2.016 GB, free: 159.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/3.53, allocations: 6.188 kB / 2.016 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001598/3.532, allocations: 0.8666 MB / 2.017 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/3.532, allocations: 7.688 kB / 2.017 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.945e-06/3.532, allocations: 3.781 kB / 2.017 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/3.533, allocations: 285.9 kB / 2.017 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/3.533, allocations: 14.53 kB / 2.017 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/3.534, allocations: 211.4 kB / 2.017 GB, free: 159.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.16e-05/3.534, allocations: 52.39 kB / 2.017 GB, free: 159.9 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.0002129/3.535, allocations: 128.2 kB / 2.017 GB, free: 159.8 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/3.535, allocations: 145.6 kB / 2.017 GB, free: 159.7 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/3.537, allocations: 1.153 MB / 2.018 GB, free: 159.6 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/3.537, allocations: 10.81 kB / 2.018 GB, free: 159.6 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/3.537, allocations: 0 / 2.018 GB, free: 159.6 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001453/3.539, allocations: 0.9571 MB / 2.019 GB, free: 159.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004437/3.543, allocations: 3.02 MB / 2.022 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/3.543, allocations: 5.625 kB / 2.022 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/3.544, allocations: 256.1 kB / 2.023 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-05/3.544, allocations: 11 kB / 2.023 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.626e-05/3.544, allocations: 19.31 kB / 2.023 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/3.544, allocations: 11.06 kB / 2.023 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/3.544, allocations: 7.75 kB / 2.023 GB, free: 158.7 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002465/3.547, allocations: 2.093 MB / 2.025 GB, free: 157.9 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003136/3.55, allocations: 3.149 MB / 2.028 GB, free: 156.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006429/3.551, allocations: 474.6 kB / 2.028 GB, free: 156.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/3.551, allocations: 7.875 kB / 2.028 GB, free: 156.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/3.552, allocations: 177.9 kB / 2.028 GB, free: 156.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/3.552, allocations: 65.58 kB / 2.028 GB, free: 156.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-05/3.552, allocations: 47.62 kB / 2.029 GB, free: 156.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0009582/3.553, allocations: 0.8029 MB / 2.029 GB, free: 156.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003519/3.557, allocations: 1.066 MB / 2.03 GB, free: 156.3 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.001325/3.558, allocations: 0.812 MB / 2.031 GB, free: 156.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001839/3.56, allocations: 1.388 MB / 2.033 GB, free: 156.1 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/3.56, allocations: 7.094 kB / 2.033 GB, free: 156.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007109/3.561, allocations: 0.505 MB / 2.033 GB, free: 156.1 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002614/3.563, allocations: 0.6054 MB / 2.034 GB, free: 156.1 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003479/3.567, allocations: 2.097 MB / 2.036 GB, free: 155.5 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/3.568, allocations: 1.438 MB / 2.037 GB, free: 154.7 MB / 0.948 GB Notification: Performance of SimCode: time 5.11e-07/3.568, allocations: 0 / 2.037 GB, free: 154.7 MB / 0.948 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)