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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 189.5 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.1 MB / 222.1 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.62/1.62, allocations: 292.2 MB / 0.5485 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 71.88 kB / 0.671 GB, free: 26.48 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2251, allocations: 114.6 MB / 0.7829 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002829/0.228, allocations: 1.736 MB / 0.7846 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006904/0.2287, allocations: 487.8 kB / 0.785 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.905e-05/0.2288, allocations: 0 / 0.785 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.352e-05/0.2288, allocations: 3.984 kB / 0.785 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7e-05/0.2289, allocations: 11.88 kB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001541/0.229, allocations: 27.95 kB / 0.7851 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.2292, allocations: 87.66 kB / 0.7851 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2293, allocations: 20 kB / 0.7852 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.511e-05/0.2294, allocations: 39.89 kB / 0.7852 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.945e-05/0.2294, allocations: 35.84 kB / 0.7852 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.2295, allocations: 4 kB / 0.7852 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.719e-05/0.2295, allocations: 11.94 kB / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.314e-05/0.2295, allocations: 19.98 kB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.65e-05/0.2296, allocations: 31.81 kB / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.2297, allocations: 83.97 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2297, allocations: 0 / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2297, allocations: 4 kB / 0.7854 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.2297, allocations: 0 / 0.7854 GB, free: 11.29 MB / 0.6075 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.0005101/0.2302, allocations: 387.1 kB / 0.7858 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.2303, allocations: 11.97 kB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.22e-05/0.2303, allocations: 12.84 kB / 0.7858 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.2304, allocations: 184.1 kB / 0.786 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.2305, allocations: 8.375 kB / 0.786 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.2305, allocations: 4.375 kB / 0.786 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001993/0.2307, allocations: 95.62 kB / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.2307, allocations: 0 / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.2307, allocations: 0 / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.2307, allocations: 0 / 0.7861 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.2309, allocations: 55.91 kB / 0.7861 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004525/0.2313, allocations: 328.7 kB / 0.7864 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.2315, allocations: 54.59 kB / 0.7865 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.48e-05/0.2316, allocations: 28.94 kB / 0.7865 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.2316, allocations: 0 / 0.7865 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.2316, allocations: 34.55 kB / 0.7865 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.2316, allocations: 0 / 0.7865 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003146/0.2319, allocations: 105.5 kB / 0.7866 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.232, allocations: 81.11 kB / 0.7867 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.747e-05/0.2321, allocations: 128.5 kB / 0.7868 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.2321, allocations: 29.7 kB / 0.7869 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.559e-05/0.2322, allocations: 104 kB / 0.787 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.2322, allocations: 3.906 kB / 0.787 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.246e-05/0.2323, allocations: 25.7 kB / 0.787 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.574e-05/0.2324, allocations: 318.8 kB / 0.7873 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.584e-05/0.2324, allocations: 23.98 kB / 0.7873 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.917e-05/0.2325, allocations: 41.69 kB / 0.7874 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.2327, allocations: 44.84 kB / 0.7874 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2327, allocations: 0 / 0.7874 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001863/0.2329, allocations: 93.62 kB / 0.7875 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.2329, allocations: 8 kB / 0.7875 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.2329, allocations: 4.031 kB / 0.7875 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.2329, allocations: 0 / 0.7875 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.909e-05/0.233, allocations: 11.98 kB / 0.7875 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.233, allocations: 0 / 0.7875 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.2331, allocations: 15.98 kB / 0.7875 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.2331, allocations: 3.938 kB / 0.7875 GB, free: 8.848 MB / 0.6075 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 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.965e-05/0.2332, allocations: 118.4 kB / 0.7876 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.873e-05/0.2332, allocations: 7.906 kB / 0.7877 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.894e-05/0.2333, allocations: 12.25 kB / 0.7877 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2333, allocations: 7.984 kB / 0.7877 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2333, allocations: 0 / 0.7877 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.2333, allocations: 0 / 0.7877 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.2335, allocations: 181.6 kB / 0.7878 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2335, allocations: 4 kB / 0.7879 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.911e-05/0.2335, allocations: 7.984 kB / 0.7879 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2336, allocations: 3.938 kB / 0.7879 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2336, allocations: 4 kB / 0.7879 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.2336, allocations: 7.922 kB / 0.7879 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.2336, allocations: 4 kB / 0.7879 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.2338, allocations: 191.5 kB / 0.7881 GB, free: 8.227 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.681e-05/0.2339, allocations: 81.02 kB / 0.7881 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.2339, allocations: 0 / 0.7881 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.234, allocations: 11.98 kB / 0.7882 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.2341, allocations: 11.98 kB / 0.7882 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.2341, allocations: 4 kB / 0.7882 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.617e-05/0.2342, allocations: 107.1 kB / 0.7883 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2342, allocations: 0 / 0.7883 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000221/0.2344, allocations: 12 kB / 0.7883 GB, free: 7.984 MB / 0.6075 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001062/0.2345, allocations: 99.25 kB / 0.7884 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001998/0.2347, allocations: 59.89 kB / 0.7884 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.2347, allocations: 4 kB / 0.7884 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.641e-05/0.2348, allocations: 27.98 kB / 0.7885 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.2351, allocations: 4 kB / 0.7885 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003595/0.2354, allocations: 211 kB / 0.7887 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.2357, allocations: 0.6885 MB / 0.7893 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.361e-05/0.2357, allocations: 7.984 kB / 0.7893 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.954e-05/0.2358, allocations: 7.438 kB / 0.7894 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.2358, allocations: 0 / 0.7894 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of Templates: time 0.00287/0.2387, allocations: 0.7868 MB / 0.7901 GB, free: 6.047 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (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 & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1)