Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricEIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.191/1.191, allocations: 249.4 MB / 256.7 MB, free: 15.83 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009756/0.0009756, allocations: 186.1 kB / 316 MB, free: 7.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.299/1.299, allocations: 205.1 MB / 0.5667 GB, free: 23.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008277/0.0008283, allocations: 93 kB / 0.671 GB, free: 0.9102 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2075/0.2084, allocations: 112.5 MB / 0.7808 GB, free: 352 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.411/0.6194, allocations: 106.3 MB / 0.8846 GB, free: 76.28 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7133/1.333, allocations: 408.8 MB / 1.284 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/1.333, allocations: 85.89 kB / 1.284 GB, free: 13.48 MB / 0.8073 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.811/3.144, allocations: 0.6073 GB / 1.891 GB, free: 144.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/3.144, allocations: 8 kB / 1.891 GB, free: 144.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00376/3.148, allocations: 0.6772 MB / 1.892 GB, free: 144 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003873/3.152, allocations: 1.651 MB / 1.894 GB, free: 142.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/3.152, allocations: 101.4 kB / 1.894 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002844/3.152, allocations: 71.19 kB / 1.894 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001683/3.154, allocations: 0.9252 MB / 1.895 GB, free: 141.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/3.156, allocations: 0.9862 MB / 1.896 GB, free: 140.2 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.195e-05/3.156, allocations: 4 kB / 1.896 GB, free: 140.2 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/3.156, allocations: 0 / 1.896 GB, free: 140.2 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.271e-05/3.156, allocations: 24 kB / 1.896 GB, free: 140.2 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006831/3.163, allocations: 5.635 MB / 1.901 GB, free: 134.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008475/3.164, allocations: 0.635 MB / 1.902 GB, free: 133.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005534/3.164, allocations: 445.8 kB / 1.902 GB, free: 133.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006097/3.165, allocations: 1.235 MB / 1.903 GB, free: 131.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006326/3.166, allocations: 0.5144 MB / 1.904 GB, free: 131.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=67): time 2.374e-06/3.166, allocations: 3.406 kB / 1.904 GB, free: 131.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=67): time 0.001694/3.167, allocations: 0.8887 MB / 1.905 GB, free: 130.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/3.167, allocations: 115.4 kB / 1.905 GB, free: 130.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/3.168, allocations: 0.9981 MB / 1.906 GB, free: 129.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 9.168e-05/3.169, allocations: 33.64 kB / 1.906 GB, free: 129.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002531/3.169, allocations: 452.7 kB / 1.906 GB, free: 128.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/3.169, allocations: 220 kB / 1.907 GB, free: 128.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.197e-05/3.169, allocations: 0 / 1.907 GB, free: 128.5 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.791e-05/3.169, allocations: 337.9 kB / 1.907 GB, free: 128.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/3.17, allocations: 345.5 kB / 1.907 GB, free: 127.8 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005622/3.17, allocations: 0.6006 MB / 1.908 GB, free: 127.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008135/3.171, allocations: 416.9 kB / 1.908 GB, free: 126.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/3.171, allocations: 0 / 1.908 GB, free: 126.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001687/3.173, allocations: 0.9932 MB / 1.909 GB, free: 125.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001854/3.173, allocations: 1.165 MB / 1.91 GB, free: 124.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/3.173, allocations: 0 / 1.91 GB, free: 124.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/3.173, allocations: 8 kB / 1.91 GB, free: 124.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/3.174, allocations: 288.7 kB / 1.911 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/3.174, allocations: 4 kB / 1.911 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/3.176, allocations: 227 kB / 1.911 GB, free: 124 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/3.176, allocations: 47.97 kB / 1.911 GB, free: 124 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/3.176, allocations: 4 kB / 1.911 GB, free: 124 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00146/3.177, allocations: 0.8218 MB / 1.912 GB, free: 123.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/3.177, allocations: 7.188 kB / 1.912 GB, free: 123.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.346e-06/3.178, allocations: 7.984 kB / 1.912 GB, free: 123.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/3.179, allocations: 286.8 kB / 1.912 GB, free: 122.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/3.179, allocations: 7.938 kB / 1.912 GB, free: 122.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/3.18, allocations: 216.6 kB / 1.912 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.975e-05/3.18, allocations: 51.06 kB / 1.912 GB, free: 122.6 MB / 0.8698 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.0002154/3.181, allocations: 124.5 kB / 1.912 GB, free: 122.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/3.181, allocations: 134.3 kB / 1.912 GB, free: 122.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/3.183, allocations: 1.116 MB / 1.914 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/3.183, allocations: 8 kB / 1.914 GB, free: 121.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/3.183, allocations: 0 / 1.914 GB, free: 121.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001325/3.184, allocations: 0.916 MB / 1.914 GB, free: 120.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004078/3.188, allocations: 2.94 MB / 1.917 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/3.188, allocations: 4 kB / 1.917 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/3.19, allocations: 252.8 kB / 1.918 GB, free: 117 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/3.19, allocations: 8 kB / 1.918 GB, free: 117 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-05/3.19, allocations: 23.89 kB / 1.918 GB, free: 117 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/3.19, allocations: 11.94 kB / 1.918 GB, free: 117 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/3.19, allocations: 11.92 kB / 1.918 GB, free: 117 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002263/3.192, allocations: 2.019 MB / 1.92 GB, free: 114.7 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003032/3.195, allocations: 3.054 MB / 1.923 GB, free: 111.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006151/3.196, allocations: 456.1 kB / 1.923 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000248/3.196, allocations: 19.33 kB / 1.923 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/3.197, allocations: 168.2 kB / 1.923 GB, free: 110.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/3.197, allocations: 71.56 kB / 1.923 GB, free: 110.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.915e-05/3.197, allocations: 43.97 kB / 1.923 GB, free: 110.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0008876/3.198, allocations: 0.7648 MB / 1.924 GB, free: 110 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004189/3.203, allocations: 1.053 MB / 1.925 GB, free: 108.9 MB / 0.8698 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.001355/3.204, allocations: 0.8049 MB / 1.926 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001976/3.206, allocations: 1.374 MB / 1.927 GB, free: 106.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/3.206, allocations: 0 / 1.927 GB, free: 106.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007581/3.207, allocations: 0.501 MB / 1.928 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002832/3.21, allocations: 0.6118 MB / 1.928 GB, free: 105.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/3.213, allocations: 2.03 MB / 1.93 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001078/3.214, allocations: 1.415 MB / 1.932 GB, free: 102.3 MB / 0.8698 GB Notification: Performance of SimCode: time 5.91e-07/3.214, allocations: 0 / 1.932 GB, free: 102.3 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricEIR_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Chillers_Examples_ElectricEIR.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1)