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: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.621/1.621, allocations: 289.8 MB / 297.1 MB, free: 6.637 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.001646/0.001645, allocations: 177.3 kB / 366.3 MB, free: 1.938 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.666/1.666, allocations: 205.1 MB / 0.6256 GB, free: 5.797 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.0009563/0.000956, allocations: 88.7 kB / 0.7395 GB, free: 39.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3293/0.3303, allocations: 122.4 MB / 0.8591 GB, free: 13.23 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.838/1.168, allocations: 116.3 MB / 0.9726 GB, free: 68.34 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.088/2.256, allocations: 417.4 MB / 1.38 GB, free: 66.86 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/2.256, allocations: 96.81 kB / 1.38 GB, free: 66.81 MB / 0.823 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.661/4.917, allocations: 0.6253 GB / 2.006 GB, free: 142.8 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/4.918, allocations: 9.562 kB / 2.006 GB, free: 142.8 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003985/4.922, allocations: 0.6821 MB / 2.006 GB, free: 142.7 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004458/4.926, allocations: 1.659 MB / 2.008 GB, free: 142.4 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/4.926, allocations: 107.2 kB / 2.008 GB, free: 142.3 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/4.926, allocations: 65.16 kB / 2.008 GB, free: 142.3 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001726/4.928, allocations: 0.9523 MB / 2.009 GB, free: 142.3 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/4.93, allocations: 1.001 MB / 2.01 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/4.93, allocations: 5.594 kB / 2.01 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.289e-05/4.93, allocations: 0 / 2.01 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-05/4.93, allocations: 28.89 kB / 2.01 GB, free: 142.2 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008403/4.938, allocations: 5.703 MB / 2.016 GB, free: 139.6 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/4.94, allocations: 0.6568 MB / 2.016 GB, free: 139.5 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006746/4.94, allocations: 453 kB / 2.017 GB, free: 139.5 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008653/4.941, allocations: 1.242 MB / 2.018 GB, free: 138.1 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007955/4.942, allocations: 0.5318 MB / 2.018 GB, free: 138 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=67): time 3.627e-06/4.942, allocations: 0 / 2.018 GB, free: 138 MB / 0.9636 GB Notification: Performance of matching and sorting (n=67): time 0.00221/4.944, allocations: 0.9372 MB / 2.019 GB, free: 137.9 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.572e-05/4.944, allocations: 116.9 kB / 2.019 GB, free: 137.8 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/4.946, allocations: 1.045 MB / 2.02 GB, free: 137.6 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.988e-05/4.946, allocations: 32.83 kB / 2.021 GB, free: 137.6 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003604/4.946, allocations: 444.8 kB / 2.021 GB, free: 137.4 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.000251/4.946, allocations: 218.7 kB / 2.021 GB, free: 137.3 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.412e-05/4.946, allocations: 0 / 2.021 GB, free: 137.3 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.858e-05/4.947, allocations: 335.8 kB / 2.021 GB, free: 137 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/4.947, allocations: 361 kB / 2.022 GB, free: 137 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006945/4.948, allocations: 0.6045 MB / 2.022 GB, free: 136.7 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/4.949, allocations: 444.5 kB / 2.023 GB, free: 136.7 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/4.949, allocations: 0 / 2.023 GB, free: 136.7 MB / 0.9636 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002095/4.951, allocations: 1.05 MB / 2.024 GB, free: 136.6 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002631/4.951, allocations: 1.165 MB / 2.025 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/4.951, allocations: 3.625 kB / 2.025 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/4.951, allocations: 7.875 kB / 2.025 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/4.953, allocations: 290.6 kB / 2.025 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/4.953, allocations: 7.844 kB / 2.025 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/4.955, allocations: 214.1 kB / 2.025 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/4.955, allocations: 59.36 kB / 2.026 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/4.955, allocations: 3.375 kB / 2.026 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001767/4.957, allocations: 0.8582 MB / 2.026 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/4.957, allocations: 10.02 kB / 2.026 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/4.957, allocations: 6.406 kB / 2.026 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/4.958, allocations: 290.2 kB / 2.027 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/4.958, allocations: 14.75 kB / 2.027 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/4.96, allocations: 210.8 kB / 2.027 GB, free: 135.4 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/4.96, allocations: 48.09 kB / 2.027 GB, free: 135.4 MB / 0.9636 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.0002958/4.96, allocations: 132.8 kB / 2.027 GB, free: 135.2 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002514/4.96, allocations: 140.9 kB / 2.027 GB, free: 135.2 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/4.963, allocations: 1.162 MB / 2.028 GB, free: 135.1 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/4.963, allocations: 6.656 kB / 2.028 GB, free: 135.1 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/4.963, allocations: 3.312 kB / 2.028 GB, free: 135.1 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001558/4.965, allocations: 0.9523 MB / 2.029 GB, free: 134.9 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004981/4.97, allocations: 3.018 MB / 2.032 GB, free: 134.1 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/4.97, allocations: 7.156 kB / 2.032 GB, free: 134.1 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/4.971, allocations: 252.9 kB / 2.032 GB, free: 134.1 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.258e-05/4.971, allocations: 7.875 kB / 2.032 GB, free: 134.1 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.481e-05/4.971, allocations: 21.33 kB / 2.032 GB, free: 134.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/4.971, allocations: 18.47 kB / 2.033 GB, free: 134.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/4.971, allocations: 11.09 kB / 2.033 GB, free: 134.1 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003114/4.974, allocations: 2.086 MB / 2.035 GB, free: 133.4 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003925/4.978, allocations: 3.145 MB / 2.038 GB, free: 132.2 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/4.979, allocations: 474.4 kB / 2.038 GB, free: 132 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002837/4.98, allocations: 3.875 kB / 2.038 GB, free: 132 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/4.981, allocations: 175.6 kB / 2.038 GB, free: 131.9 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/4.981, allocations: 67.81 kB / 2.038 GB, free: 131.9 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/4.981, allocations: 55.41 kB / 2.038 GB, free: 131.9 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.001253/4.983, allocations: 0.7929 MB / 2.039 GB, free: 131.8 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.004534/4.987, allocations: 1.074 MB / 2.04 GB, free: 131.7 MB / 0.9636 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.001836/4.989, allocations: 0.8138 MB / 2.041 GB, free: 131.5 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.002457/4.992, allocations: 1.394 MB / 2.042 GB, free: 131.4 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/4.992, allocations: 3 kB / 2.042 GB, free: 131.4 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0008709/4.992, allocations: 0.5021 MB / 2.043 GB, free: 131.4 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003594/4.996, allocations: 0.619 MB / 2.043 GB, free: 131.4 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004463/5.001, allocations: 2.093 MB / 2.045 GB, free: 130.8 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/5.002, allocations: 1.434 MB / 2.047 GB, free: 130.1 MB / 0.9636 GB Notification: Performance of SimCode: time 1.483e-06/5.002, allocations: 3.812 kB / 2.047 GB, free: 130.1 MB / 0.9636 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.fmu > Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1)