Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",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.268/1.268, allocations: 249.4 MB / 256.7 MB, free: 6.996 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 193.2 kB / 316 MB, free: 3.426 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.295/1.295, allocations: 205.1 MB / 0.5667 GB, free: 15.65 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.0009017/0.0009018, allocations: 71.41 kB / 0.671 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3674/0.3684, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1926/0.561, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5461/1.107, allocations: 133.5 MB / 1.015 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/1.107, allocations: 87.22 kB / 1.015 GB, free: 4.434 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.004737/1.112, allocations: 1.638 MB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/1.112, allocations: 11.94 kB / 1.017 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/1.112, allocations: 11.81 kB / 1.017 GB, free: 2.934 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/1.112, allocations: 198.7 kB / 1.017 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/1.112, allocations: 0 / 1.017 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/1.112, allocations: 4 kB / 1.017 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001348/1.113, allocations: 34 kB / 1.017 GB, free: 2.68 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/1.113, allocations: 72.72 kB / 1.017 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/1.113, allocations: 0 / 1.017 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/1.113, allocations: 3.188 kB / 1.017 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/1.113, allocations: 1.031 kB / 1.017 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005065/1.113, allocations: 319 kB / 1.017 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.84e-05/1.113, allocations: 56.97 kB / 1.017 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.924e-05/1.113, allocations: 38.56 kB / 1.017 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/1.113, allocations: 0 / 1.017 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001145/1.114, allocations: 75.56 kB / 1.018 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/1.114, allocations: 0 / 1.018 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001998/1.114, allocations: 79.52 kB / 1.018 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/1.114, allocations: 81.11 kB / 1.018 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.509e-05/1.114, allocations: 115.4 kB / 1.018 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/1.114, allocations: 29.7 kB / 1.018 GB, free: 1.805 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.277e-05/1.114, allocations: 91.55 kB / 1.018 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/1.114, allocations: 22.86 kB / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/1.114, allocations: 0 / 1.018 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001062/1.114, allocations: 321.8 kB / 1.018 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.18e-05/1.114, allocations: 27.81 kB / 1.018 GB, free: 1.355 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.757e-05/1.114, allocations: 31.75 kB / 1.018 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.425e-05/1.114, allocations: 19.86 kB / 1.018 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/1.114, allocations: 0 / 1.018 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001577/1.115, allocations: 103.9 kB / 1.018 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/1.115, allocations: 4 kB / 1.018 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/1.115, allocations: 4.078 kB / 1.018 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/1.115, allocations: 3.938 kB / 1.018 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/1.115, allocations: 23.98 kB / 1.018 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/1.115, allocations: 7.969 kB / 1.018 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/1.115, allocations: 15.98 kB / 1.018 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/1.115, allocations: 4 kB / 1.019 GB, free: 1.168 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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 9.915e-05/1.115, allocations: 141.2 kB / 1.019 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.846e-05/1.115, allocations: 11.03 kB / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.589e-05/1.115, allocations: 12.36 kB / 1.019 GB, free: 1 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/1.115, allocations: 0 / 1.019 GB, free: 1 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/1.115, allocations: 0 / 1.019 GB, free: 1 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/1.115, allocations: 0 / 1.019 GB, free: 1 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002646/1.115, allocations: 326.7 kB / 1.019 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/1.115, allocations: 0 / 1.019 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/1.115, allocations: 21.67 kB / 1.019 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/1.115, allocations: 4 kB / 1.019 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/1.115, allocations: 3.906 kB / 1.019 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/1.115, allocations: 0 / 1.019 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1.116, allocations: 0 / 1.019 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001843/1.116, allocations: 191.5 kB / 1.019 GB, free: 456 kB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003188/1.116, allocations: 0.5476 MB / 1.02 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/1.116, allocations: 85.02 kB / 1.02 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/1.116, allocations: 3.984 kB / 1.02 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/1.116, allocations: 23.98 kB / 1.02 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.761e-05/1.116, allocations: 22.91 kB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/1.116, allocations: 4 kB / 1.02 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.128e-05/1.116, allocations: 94.33 kB / 1.02 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008581/1.117, allocations: 27.84 kB / 1.02 GB, free: 15.63 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0001344/1.117, allocations: 103.2 kB / 1.02 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001879/1.118, allocations: 127.3 kB / 1.02 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/1.118, allocations: 0 / 1.02 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.872e-05/1.118, allocations: 63.5 kB / 1.02 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/1.118, allocations: 7.25 kB / 1.02 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003882/1.118, allocations: 132.3 kB / 1.02 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/1.119, allocations: 0.718 MB / 1.021 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of SimCode: time 2.21e-07/1.119, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)