Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.366/1.366, allocations: 289.8 MB / 297.1 MB, free: 6.676 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.001031/0.001031, allocations: 177.3 kB / 366.3 MB, free: 2.027 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.076/1.076, allocations: 205.1 MB / 0.6256 GB, free: 5.965 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.0008045/0.0008045, allocations: 90.7 kB / 0.7395 GB, free: 39.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1895/0.1903, allocations: 122.4 MB / 0.8591 GB, free: 13.33 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4398/0.6301, allocations: 116.3 MB / 0.9727 GB, free: 68.31 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1436/0.7737, allocations: 139.6 MB / 1.109 GB, free: 8.945 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.774, allocations: 88.66 kB / 1.109 GB, free: 8.859 MB / 0.7136 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.004252/0.7783, allocations: 1.569 MB / 1.111 GB, free: 7.262 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.7783, allocations: 8 kB / 1.111 GB, free: 7.254 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.321e-05/0.7784, allocations: 7.906 kB / 1.111 GB, free: 7.246 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.7785, allocations: 186.9 kB / 1.111 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.7785, allocations: 0 / 1.111 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.7785, allocations: 4 kB / 1.111 GB, free: 7.02 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.956e-05/0.7786, allocations: 31.94 kB / 1.111 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.7788, allocations: 75.3 kB / 1.111 GB, free: 6.902 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.7788, allocations: 3.984 kB / 1.111 GB, free: 6.898 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.7788, allocations: 4 kB / 1.111 GB, free: 6.895 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.7788, allocations: 1.875 kB / 1.111 GB, free: 6.895 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004129/0.7792, allocations: 305.2 kB / 1.111 GB, free: 6.559 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.668e-05/0.7793, allocations: 34.58 kB / 1.111 GB, free: 6.516 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.813e-05/0.7793, allocations: 20.86 kB / 1.111 GB, free: 6.492 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.7794, allocations: 4 kB / 1.111 GB, free: 6.488 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.7794, allocations: 34.56 kB / 1.111 GB, free: 6.445 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 2.344e-06/0.7794, allocations: 96 / 1.111 GB, free: 6.445 MB / 0.7136 GB Notification: Performance of matching and sorting (n=4): time 0.000168/0.7796, allocations: 61.62 kB / 1.111 GB, free: 6.379 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.7796, allocations: 77.11 kB / 1.111 GB, free: 6.285 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.761e-05/0.7797, allocations: 118.2 kB / 1.112 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.7797, allocations: 25.7 kB / 1.112 GB, free: 6.129 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.975e-05/0.7798, allocations: 96.06 kB / 1.112 GB, free: 6.031 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.7798, allocations: 19.81 kB / 1.112 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-06/0.7798, allocations: 0 / 1.112 GB, free: 6.012 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.78, allocations: 314.8 kB / 1.112 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.308e-05/0.78, allocations: 16 kB / 1.112 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.715e-05/0.78, allocations: 25.72 kB / 1.112 GB, free: 5.648 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.258e-05/0.7801, allocations: 18.58 kB / 1.112 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.7801, allocations: 0 / 1.112 GB, free: 5.633 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000117/0.7802, allocations: 69.53 kB / 1.112 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.7802, allocations: 14.56 kB / 1.112 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.7802, allocations: 0 / 1.112 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.7803, allocations: 0 / 1.112 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.7804, allocations: 8 kB / 1.112 GB, free: 5.539 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.842e-06/0.7804, allocations: 3.984 kB / 1.112 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.89e-05/0.7805, allocations: 23.84 kB / 1.112 GB, free: 5.512 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.7805, allocations: 8.172 kB / 1.112 GB, free: 5.504 MB / 0.7136 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.481e-05/0.7806, allocations: 105 kB / 1.112 GB, free: 5.395 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/0.7806, allocations: 7.906 kB / 1.112 GB, free: 5.387 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.33e-05/0.7806, allocations: 8.125 kB / 1.112 GB, free: 5.367 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.7806, allocations: 4 kB / 1.112 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.7806, allocations: 0 / 1.112 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.7807, allocations: 0 / 1.112 GB, free: 5.363 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.7808, allocations: 170.1 kB / 1.112 GB, free: 5.16 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.7808, allocations: 4 kB / 1.112 GB, free: 5.156 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-05/0.7809, allocations: 11.98 kB / 1.112 GB, free: 5.145 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.7809, allocations: 0 / 1.112 GB, free: 5.145 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.7809, allocations: 4 kB / 1.112 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.7809, allocations: 3.938 kB / 1.112 GB, free: 5.137 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.7809, allocations: 0 / 1.112 GB, free: 5.137 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001351/0.7811, allocations: 159.5 kB / 1.113 GB, free: 4.965 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002383/0.7813, allocations: 0.5271 MB / 1.113 GB, free: 4.418 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/0.7814, allocations: 88.95 kB / 1.113 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.7814, allocations: 144 / 1.113 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.7815, allocations: 19.98 kB / 1.113 GB, free: 4.293 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.584e-05/0.7816, allocations: 11.97 kB / 1.113 GB, free: 4.281 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.7816, allocations: 3.984 kB / 1.113 GB, free: 4.277 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.152e-05/0.7817, allocations: 102.7 kB / 1.113 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0007979/0.7825, allocations: 12 kB / 1.113 GB, free: 4.168 MB / 0.7136 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 0.0001029/0.7826, allocations: 95.25 kB / 1.113 GB, free: 4.062 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001035/0.7827, allocations: 35.98 kB / 1.113 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.7827, allocations: 4 kB / 1.113 GB, free: 4.023 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.643e-05/0.7827, allocations: 20 kB / 1.114 GB, free: 4.004 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.7829, allocations: 3.906 kB / 1.114 GB, free: 4 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002826/0.7832, allocations: 99.61 kB / 1.114 GB, free: 3.875 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/0.7835, allocations: 0.7071 MB / 1.114 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of SimCode: time 2.6e-07/0.7835, allocations: 0 / 1.114 GB, free: 3.145 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)