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.ChillerSwitch.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.ChillerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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.258/1.258, allocations: 249.4 MB / 256.7 MB, free: 7 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.001087/0.001087, allocations: 189.3 kB / 316 MB, free: 3.547 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.146/1.146, allocations: 205.2 MB / 0.5667 GB, free: 15.62 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.0008397/0.0008397, allocations: 85.45 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3269/0.3278, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.4894, allocations: 106.3 MB / 0.8847 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5192/1.009, allocations: 133.4 MB / 1.015 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/1.009, allocations: 94.36 kB / 1.015 GB, free: 5.152 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.004135/1.013, allocations: 1.568 MB / 1.017 GB, free: 3.75 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/1.013, allocations: 8 kB / 1.017 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.326e-05/1.013, allocations: 15.8 kB / 1.017 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/1.013, allocations: 174.9 kB / 1.017 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/1.013, allocations: 0 / 1.017 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/1.013, allocations: 4 kB / 1.017 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.721e-05/1.013, allocations: 30.06 kB / 1.017 GB, free: 3.492 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/1.014, allocations: 78.2 kB / 1.017 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.022e-06/1.014, allocations: 0 / 1.017 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/1.014, allocations: 0 / 1.017 GB, free: 3.414 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/1.014, allocations: 4 kB / 1.017 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004275/1.014, allocations: 313.3 kB / 1.017 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.082e-05/1.014, allocations: 33.64 kB / 1.017 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.63e-05/1.014, allocations: 23.53 kB / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/1.014, allocations: 0 / 1.017 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.726e-05/1.014, allocations: 38.64 kB / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/1.014, allocations: 0 / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001638/1.014, allocations: 64.59 kB / 1.017 GB, free: 2.934 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/1.014, allocations: 77.11 kB / 1.017 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.943e-05/1.014, allocations: 112.3 kB / 1.017 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/1.014, allocations: 25.8 kB / 1.018 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.764e-05/1.015, allocations: 99.23 kB / 1.018 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/1.015, allocations: 17.69 kB / 1.018 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-06/1.015, allocations: 0 / 1.018 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.268e-05/1.015, allocations: 321.6 kB / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.68e-05/1.015, allocations: 14.56 kB / 1.018 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.928e-05/1.015, allocations: 28.39 kB / 1.018 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.02e-05/1.015, allocations: 14.38 kB / 1.018 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/1.015, allocations: 0 / 1.018 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001031/1.015, allocations: 63.97 kB / 1.018 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/1.015, allocations: 8 kB / 1.018 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/1.015, allocations: 4.062 kB / 1.018 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/1.015, allocations: 4.031 kB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/1.015, allocations: 11.98 kB / 1.018 GB, free: 2.137 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/1.015, allocations: 3.984 kB / 1.018 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.575e-05/1.015, allocations: 19.92 kB / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/1.015, allocations: 4 kB / 1.018 GB, free: 2.109 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: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 6.209e-05/1.015, allocations: 105 kB / 1.018 GB, free: 2 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/1.015, allocations: 7.906 kB / 1.018 GB, free: 1.992 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/1.015, allocations: 11.41 kB / 1.018 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/1.015, allocations: 4 kB / 1.018 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/1.015, allocations: 0 / 1.018 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/1.015, allocations: 3.984 kB / 1.018 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/1.015, allocations: 163.3 kB / 1.018 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/1.015, allocations: 0 / 1.018 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.614e-05/1.016, allocations: 15.98 kB / 1.018 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/1.016, allocations: 0 / 1.018 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/1.016, allocations: 3.938 kB / 1.018 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/1.016, allocations: 4 kB / 1.018 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.016, allocations: 3.906 kB / 1.018 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001239/1.016, allocations: 167.5 kB / 1.019 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002002/1.016, allocations: 0.5205 MB / 1.019 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/1.016, allocations: 88.95 kB / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.299e-05/1.016, allocations: 0 / 1.019 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/1.016, allocations: 19.98 kB / 1.019 GB, free: 0.9453 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/1.016, allocations: 15.34 kB / 1.019 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/1.016, allocations: 0 / 1.019 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.491e-05/1.016, allocations: 97.83 kB / 1.019 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000753/1.017, allocations: 15.91 kB / 1.019 GB, free: 0.832 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 9.424e-05/1.017, allocations: 99.23 kB / 1.019 GB, free: 0.7227 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001002/1.017, allocations: 37.45 kB / 1.019 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/1.017, allocations: 0 / 1.019 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.641e-05/1.017, allocations: 23.42 kB / 1.019 GB, free: 0.6797 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000148/1.017, allocations: 3.312 kB / 1.019 GB, free: 0.6797 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002819/1.018, allocations: 94.7 kB / 1.02 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/1.018, allocations: 0.7107 MB / 1.02 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/1.018, allocations: 0 / 1.02 GB, free: 15.84 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)