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.001261/0.001261, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.293/1.293, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.661/1.661, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.001374/0.001374, allocations: 66.02 kB / 0.6715 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2064, allocations: 114.5 MB / 0.7834 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00285/0.2092, allocations: 1.677 MB / 0.785 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008056/0.2101, allocations: 492.8 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.012e-05/0.2101, allocations: 4 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.018e-05/0.2102, allocations: 11.88 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.269e-05/0.2102, allocations: 7.875 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000148/0.2104, allocations: 31.89 kB / 0.7855 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.793e-05/0.2105, allocations: 83.72 kB / 0.7856 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.2106, allocations: 23.98 kB / 0.7856 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.326e-05/0.2107, allocations: 31.92 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.824e-05/0.2108, allocations: 43.81 kB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.391e-05/0.2108, allocations: 8 kB / 0.7857 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.54e-05/0.2108, allocations: 7.938 kB / 0.7857 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.2109, allocations: 15.94 kB / 0.7857 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.181e-05/0.2109, allocations: 35.8 kB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.211, allocations: 87.97 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.211, allocations: 0 / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.211, allocations: 0 / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.211, allocations: 0 / 0.7859 GB, free: 10.88 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.0004885/0.2115, allocations: 395.1 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.2116, allocations: 11.97 kB / 0.7862 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.2116, allocations: 16.78 kB / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.2117, allocations: 176.2 kB / 0.7864 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.2118, allocations: 384 / 0.7864 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.2118, allocations: 4.375 kB / 0.7864 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.212, allocations: 103.6 kB / 0.7865 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.212, allocations: 0 / 0.7865 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.212, allocations: 0 / 0.7865 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.212, allocations: 4 kB / 0.7865 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.2122, allocations: 43.97 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004368/0.2126, allocations: 336.6 kB / 0.7869 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.2128, allocations: 46.56 kB / 0.7869 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.06e-05/0.2129, allocations: 32.92 kB / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.2129, allocations: 0 / 0.787 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.2129, allocations: 34.56 kB / 0.787 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 2.875e-06/0.2129, allocations: 4.094 kB / 0.787 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003159/0.2132, allocations: 105.5 kB / 0.7871 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.2133, allocations: 77.11 kB / 0.7872 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.041e-05/0.2134, allocations: 130.1 kB / 0.7873 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.2134, allocations: 25.7 kB / 0.7873 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.948e-05/0.2135, allocations: 104 kB / 0.7874 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.2135, allocations: 7.906 kB / 0.7874 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.2135, allocations: 25.7 kB / 0.7875 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.2137, allocations: 318.8 kB / 0.7878 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.986e-05/0.2138, allocations: 23.98 kB / 0.7878 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-05/0.2139, allocations: 33.7 kB / 0.7878 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.214, allocations: 56.8 kB / 0.7879 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.214, allocations: 0 / 0.7879 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001936/0.2142, allocations: 89.56 kB / 0.788 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.2142, allocations: 4 kB / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2142, allocations: 0 / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-06/0.2143, allocations: 0 / 0.788 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.2144, allocations: 15.98 kB / 0.788 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.2144, allocations: 0 / 0.788 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.982e-05/0.2145, allocations: 12.17 kB / 0.788 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.2145, allocations: 11.94 kB / 0.788 GB, free: 8.438 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.97e-05/0.2146, allocations: 126.3 kB / 0.7881 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.015e-05/0.2146, allocations: 7.906 kB / 0.7881 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.2146, allocations: 12.25 kB / 0.7881 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.2146, allocations: 0 / 0.7881 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2147, allocations: 0 / 0.7881 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2147, allocations: 0 / 0.7881 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.2149, allocations: 193.6 kB / 0.7883 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2149, allocations: 0 / 0.7883 GB, free: 8.039 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.247e-05/0.215, allocations: 15.98 kB / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.215, allocations: 0 / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.215, allocations: 0 / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.215, allocations: 0 / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.215, allocations: 0 / 0.7883 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.2152, allocations: 179.4 kB / 0.7885 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.282e-05/0.2153, allocations: 85 kB / 0.7886 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.2153, allocations: 8 kB / 0.7886 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.2154, allocations: 7.984 kB / 0.7886 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.2155, allocations: 15.92 kB / 0.7886 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-06/0.2155, allocations: 4 kB / 0.7886 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.56e-05/0.2156, allocations: 110.1 kB / 0.7887 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2156, allocations: 0 / 0.7887 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002319/0.2158, allocations: 12 kB / 0.7887 GB, free: 7.578 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.0001011/0.2159, allocations: 99.25 kB / 0.7888 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002077/0.2161, allocations: 55.95 kB / 0.7889 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2161, allocations: 0 / 0.7889 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 8.453e-05/0.2162, allocations: 32.16 kB / 0.7889 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.2165, allocations: 6.5 kB / 0.7889 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003667/0.2169, allocations: 179 kB / 0.7891 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002285/0.2171, allocations: 0.6886 MB / 0.7898 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.926e-05/0.2172, allocations: 7.969 kB / 0.7898 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.2172, allocations: 11.44 kB / 0.7898 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of SimCode: time 2.71e-07/0.2172, allocations: 4 kB / 0.7898 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of Templates: time 0.00288/0.2201, allocations: 0.8825 MB / 0.7907 GB, free: 5.57 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)