Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,fileNamePrefix="Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.616/1.616, allocations: 289.8 MB / 297.1 MB, free: 6.723 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.001135/0.001135, allocations: 173.3 kB / 366.3 MB, free: 2.02 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.798/1.798, allocations: 205.1 MB / 0.6256 GB, free: 5.848 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.0009334/0.0009335, allocations: 80.7 kB / 0.7395 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3173/0.3183, allocations: 122.4 MB / 0.8591 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8302/1.149, allocations: 116.3 MB / 0.9726 GB, free: 68.61 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.09/2.238, allocations: 417.4 MB / 1.38 GB, free: 69.3 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/2.238, allocations: 85.2 kB / 1.38 GB, free: 69.26 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.569/4.808, allocations: 0.6247 GB / 2.005 GB, free: 142.1 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/4.808, allocations: 7.875 kB / 2.005 GB, free: 142.1 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004312/4.812, allocations: 0.6755 MB / 2.006 GB, free: 142 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004067/4.816, allocations: 1.64 MB / 2.007 GB, free: 141.6 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000141/4.817, allocations: 112.9 kB / 2.007 GB, free: 141.6 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001689/4.817, allocations: 59.25 kB / 2.007 GB, free: 141.6 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001714/4.818, allocations: 0.9231 MB / 2.008 GB, free: 141.6 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/4.82, allocations: 0.9944 MB / 2.009 GB, free: 141.4 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/4.82, allocations: 7.594 kB / 2.009 GB, free: 141.4 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.703e-05/4.82, allocations: 0 / 2.009 GB, free: 141.4 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-05/4.82, allocations: 39.42 kB / 2.009 GB, free: 141.4 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007978/4.828, allocations: 5.64 MB / 2.015 GB, free: 138.8 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009808/4.829, allocations: 0.6384 MB / 2.016 GB, free: 138.8 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006131/4.83, allocations: 439.2 kB / 2.016 GB, free: 138.8 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007937/4.831, allocations: 1.247 MB / 2.017 GB, free: 137.4 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007659/4.832, allocations: 0.5163 MB / 2.018 GB, free: 137.3 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=67): time 3.486e-06/4.832, allocations: 3.25 kB / 2.018 GB, free: 137.3 MB / 0.9636 GB Notification: Performance of matching and sorting (n=67): time 0.002055/4.834, allocations: 0.8906 MB / 2.019 GB, free: 137.2 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/4.834, allocations: 115.1 kB / 2.019 GB, free: 137 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001423/4.835, allocations: 0.9948 MB / 2.02 GB, free: 136.9 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0001131/4.835, allocations: 29.48 kB / 2.02 GB, free: 136.8 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004925/4.836, allocations: 452.8 kB / 2.02 GB, free: 136.7 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.000373/4.836, allocations: 220.9 kB / 2.02 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.804e-05/4.836, allocations: 0 / 2.02 GB, free: 136.5 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.295e-05/4.836, allocations: 331.4 kB / 2.021 GB, free: 136.2 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005377/4.837, allocations: 349 kB / 2.021 GB, free: 136.2 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006857/4.838, allocations: 0.5948 MB / 2.022 GB, free: 136 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/4.839, allocations: 419.6 kB / 2.022 GB, free: 136 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/4.839, allocations: 0 / 2.022 GB, free: 136 MB / 0.9636 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00214/4.841, allocations: 0.9952 MB / 2.023 GB, free: 135.8 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003614/4.841, allocations: 1.164 MB / 2.024 GB, free: 134.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/4.841, allocations: 0 / 2.024 GB, free: 134.7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.461e-05/4.841, allocations: 7.562 kB / 2.024 GB, free: 134.7 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/4.843, allocations: 293.1 kB / 2.024 GB, free: 134.7 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/4.843, allocations: 12.98 kB / 2.024 GB, free: 134.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/4.845, allocations: 218.1 kB / 2.025 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/4.845, allocations: 49.02 kB / 2.025 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/4.845, allocations: 3.844 kB / 2.025 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001713/4.847, allocations: 0.8264 MB / 2.025 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.138e-06/4.847, allocations: 7.562 kB / 2.025 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/4.847, allocations: 5.312 kB / 2.025 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/4.848, allocations: 282.4 kB / 2.026 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/4.848, allocations: 8.625 kB / 2.026 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001883/4.85, allocations: 218.3 kB / 2.026 GB, free: 134.6 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/4.85, allocations: 46.06 kB / 2.026 GB, free: 134.6 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.0002981/4.85, allocations: 122.6 kB / 2.026 GB, free: 134.5 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003679/4.851, allocations: 142.1 kB / 2.026 GB, free: 134.4 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/4.853, allocations: 1.107 MB / 2.027 GB, free: 134.4 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/4.853, allocations: 13.16 kB / 2.027 GB, free: 134.4 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/4.853, allocations: 0 / 2.027 GB, free: 134.4 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001506/4.855, allocations: 0.9104 MB / 2.028 GB, free: 134.2 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005664/4.861, allocations: 2.938 MB / 2.031 GB, free: 133.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/4.861, allocations: 7.125 kB / 2.031 GB, free: 133.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001303/4.862, allocations: 250.2 kB / 2.031 GB, free: 133.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.86e-05/4.862, allocations: 7.875 kB / 2.031 GB, free: 133.4 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.091e-05/4.862, allocations: 23.86 kB / 2.031 GB, free: 133.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.204e-05/4.862, allocations: 8.5 kB / 2.031 GB, free: 133.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/4.862, allocations: 8.484 kB / 2.031 GB, free: 133.4 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00305/4.865, allocations: 2.023 MB / 2.033 GB, free: 132.7 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003892/4.869, allocations: 3.05 MB / 2.036 GB, free: 131.5 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/4.87, allocations: 477.3 kB / 2.037 GB, free: 131.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005393/4.871, allocations: 7.719 kB / 2.037 GB, free: 131.2 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00207/4.873, allocations: 172.9 kB / 2.037 GB, free: 131.2 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/4.873, allocations: 69.97 kB / 2.037 GB, free: 131.2 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/4.873, allocations: 47.22 kB / 2.037 GB, free: 131.2 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.001634/4.875, allocations: 0.7637 MB / 2.038 GB, free: 131.1 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.00559/4.881, allocations: 1.058 MB / 2.039 GB, free: 131 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.002025/4.883, allocations: 0.7943 MB / 2.04 GB, free: 130.8 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.002591/4.885, allocations: 1.368 MB / 2.041 GB, free: 130.7 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/4.885, allocations: 3.969 kB / 2.041 GB, free: 130.7 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0008979/4.886, allocations: 0.5011 MB / 2.041 GB, free: 130.7 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003719/4.89, allocations: 0.6108 MB / 2.042 GB, free: 130.7 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005821/4.896, allocations: 2.035 MB / 2.044 GB, free: 130.1 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002011/4.898, allocations: 1.427 MB / 2.045 GB, free: 129.4 MB / 0.9636 GB Notification: Performance of SimCode: time 1.342e-06/4.898, allocations: 3.438 kB / 2.045 GB, free: 129.4 MB / 0.9636 GB (rm -f Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_8_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)