Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.295/1.295, allocations: 285.5 MB / 292.8 MB, free: 14.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009482/0.0009482, allocations: 189.2 kB / 361.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9927/0.9927, allocations: 205.1 MB / 0.6195 GB, free: 3 MB / 462.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007658/0.0007658, allocations: 92.25 kB / 0.7326 GB, free: 53.66 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.1626/0.1634, allocations: 121.5 MB / 0.8512 GB, free: 9.594 MB / 0.5919 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.3329, allocations: 115.3 MB / 0.9638 GB, free: 6.113 MB / 0.7012 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3867/0.7196, allocations: 138.6 MB / 1.099 GB, free: 12.47 MB / 0.7012 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.7199, allocations: 91.94 kB / 1.099 GB, free: 12.38 MB / 0.7012 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.00368/0.7236, allocations: 1.57 MB / 1.101 GB, free: 10.82 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 2.979e-05/0.7236, allocations: 8 kB / 1.101 GB, free: 10.81 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.155e-05/0.7237, allocations: 7.906 kB / 1.101 GB, free: 10.8 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.068e-05/0.7238, allocations: 182.2 kB / 1.101 GB, free: 10.59 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.186e-06/0.7238, allocations: 1 kB / 1.101 GB, free: 10.59 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.091e-05/0.7238, allocations: 4 kB / 1.101 GB, free: 10.59 MB / 0.7012 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.723e-05/0.7239, allocations: 34.2 kB / 1.101 GB, free: 10.55 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.724, allocations: 75.3 kB / 1.101 GB, free: 10.47 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-06/0.724, allocations: 1 kB / 1.101 GB, free: 10.47 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.724, allocations: 0 / 1.101 GB, free: 10.47 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.724, allocations: 0 / 1.101 GB, free: 10.47 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000318/0.7243, allocations: 304.5 kB / 1.101 GB, free: 10.14 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 5.811e-05/0.7244, allocations: 44.81 kB / 1.101 GB, free: 10.09 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.117e-05/0.7245, allocations: 21.64 kB / 1.101 GB, free: 10.07 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.7245, allocations: 0.7812 kB / 1.101 GB, free: 10.07 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.152e-05/0.7245, allocations: 31.81 kB / 1.101 GB, free: 10.03 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.7245, allocations: 0 / 1.101 GB, free: 10.03 MB / 0.7012 GB Notification: Performance of matching and sorting (n=4): time 0.0001375/0.7246, allocations: 65.72 kB / 1.102 GB, free: 9.957 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.652e-05/0.7247, allocations: 79.08 kB / 1.102 GB, free: 9.863 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.391e-05/0.7247, allocations: 117.2 kB / 1.102 GB, free: 9.738 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.7247, allocations: 25.7 kB / 1.102 GB, free: 9.707 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 2.056e-05/0.7248, allocations: 96.06 kB / 1.102 GB, free: 9.609 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.7248, allocations: 13.03 kB / 1.102 GB, free: 9.598 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-06/0.7248, allocations: 0 / 1.102 GB, free: 9.598 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 3.292e-05/0.7248, allocations: 320.4 kB / 1.102 GB, free: 9.277 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.806e-05/0.7249, allocations: 16 kB / 1.102 GB, free: 9.262 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.974e-05/0.7249, allocations: 32.22 kB / 1.102 GB, free: 9.23 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.733e-05/0.7249, allocations: 15.84 kB / 1.102 GB, free: 9.219 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.7249, allocations: 0 / 1.102 GB, free: 9.219 MB / 0.7012 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.929e-05/0.725, allocations: 65.59 kB / 1.102 GB, free: 9.148 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 7.704e-06/0.725, allocations: 4.719 kB / 1.102 GB, free: 9.145 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.7251, allocations: 3.938 kB / 1.102 GB, free: 9.141 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.033e-06/0.7251, allocations: 3.188 kB / 1.102 GB, free: 9.141 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.415e-05/0.7252, allocations: 15.98 kB / 1.102 GB, free: 9.125 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-06/0.7252, allocations: 0 / 1.102 GB, free: 9.125 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.905e-05/0.7253, allocations: 21.14 kB / 1.102 GB, free: 9.105 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.7253, allocations: 0 / 1.102 GB, free: 9.105 MB / 0.7012 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 3.867e-05/0.7253, allocations: 107.2 kB / 1.102 GB, free: 8.996 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.7254, allocations: 11.94 kB / 1.102 GB, free: 8.984 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.516e-05/0.7254, allocations: 12.11 kB / 1.102 GB, free: 8.965 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.7254, allocations: 0 / 1.102 GB, free: 8.965 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.7254, allocations: 2.375 kB / 1.102 GB, free: 8.965 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.7254, allocations: 0 / 1.102 GB, free: 8.965 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001039/0.7255, allocations: 166.1 kB / 1.103 GB, free: 8.766 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.7255, allocations: 4 kB / 1.103 GB, free: 8.762 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.952e-05/0.7256, allocations: 11.98 kB / 1.103 GB, free: 8.75 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.7256, allocations: 4 kB / 1.103 GB, free: 8.746 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.7256, allocations: 0 / 1.103 GB, free: 8.746 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.7256, allocations: 0 / 1.103 GB, free: 8.746 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7256, allocations: 3.984 kB / 1.103 GB, free: 8.742 MB / 0.7012 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.114e-05/0.7257, allocations: 159.4 kB / 1.103 GB, free: 8.57 MB / 0.7012 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001096/0.7258, allocations: 0.5349 MB / 1.103 GB, free: 8.016 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 1.709e-05/0.7259, allocations: 87.14 kB / 1.103 GB, free: 7.914 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.7259, allocations: 4 kB / 1.103 GB, free: 7.91 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.726, allocations: 11.98 kB / 1.103 GB, free: 7.898 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.7e-05/0.726, allocations: 7.984 kB / 1.103 GB, free: 7.891 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.7261, allocations: 4 kB / 1.103 GB, free: 7.887 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.841e-05/0.7261, allocations: 103.3 kB / 1.104 GB, free: 7.785 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0007384/0.7268, allocations: 8 kB / 1.104 GB, free: 7.777 MB / 0.7012 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 6.86e-05/0.7269, allocations: 108.1 kB / 1.104 GB, free: 7.664 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 8.587e-05/0.727, allocations: 36.98 kB / 1.104 GB, free: 7.629 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.727, allocations: 0 / 1.104 GB, free: 7.629 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 3.27e-05/0.727, allocations: 20 kB / 1.104 GB, free: 7.609 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.7272, allocations: 6.438 kB / 1.104 GB, free: 7.605 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002369/0.7274, allocations: 100.4 kB / 1.104 GB, free: 7.48 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.7276, allocations: 0.7071 MB / 1.104 GB, free: 6.75 MB / 0.7012 GB Notification: Performance of SimCode: time 2.4e-07/0.7276, allocations: 3.938 kB / 1.104 GB, free: 6.746 MB / 0.7012 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)