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.001018/0.001018, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001132/0.001132, allocations: 191.6 kB / 16.13 MB, free: 6.66 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.281/1.281, allocations: 205.1 MB / 222 MB, free: 4.719 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.629/1.629, allocations: 292.3 MB / 0.5484 GB, free: 13.7 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.00128/0.00128, allocations: 64.09 kB / 0.6708 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2011, allocations: 114.6 MB / 0.7827 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002815/0.204, allocations: 1.736 MB / 0.7844 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006959/0.2047, allocations: 487.8 kB / 0.7848 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.03e-05/0.2047, allocations: 4 kB / 0.7848 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.923e-05/0.2048, allocations: 7.922 kB / 0.7849 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.216e-05/0.2049, allocations: 3.938 kB / 0.7849 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001606/0.205, allocations: 27.91 kB / 0.7849 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.87e-05/0.2051, allocations: 79.7 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.2053, allocations: 27.98 kB / 0.785 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.257e-05/0.2054, allocations: 27.92 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.822e-05/0.2054, allocations: 31.83 kB / 0.785 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.2055, allocations: 4 kB / 0.785 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.739e-05/0.2055, allocations: 4 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.011e-05/0.2055, allocations: 19.92 kB / 0.7851 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.231e-05/0.2056, allocations: 31.81 kB / 0.7851 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001645/0.2057, allocations: 79.97 kB / 0.7852 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2058, allocations: 0 / 0.7852 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.42e-07/0.2058, allocations: 4 kB / 0.7852 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.2058, allocations: 0 / 0.7852 GB, free: 11.42 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.0005374/0.2063, allocations: 391.1 kB / 0.7856 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.2064, allocations: 8.031 kB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.884e-05/0.2064, allocations: 12.78 kB / 0.7856 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.2065, allocations: 184.2 kB / 0.7857 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.2066, allocations: 4.375 kB / 0.7858 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.2066, allocations: 4.375 kB / 0.7858 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.2068, allocations: 95.62 kB / 0.7858 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.2068, allocations: 0 / 0.7858 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.2068, allocations: 0 / 0.7858 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.2068, allocations: 0 / 0.7858 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.207, allocations: 51.97 kB / 0.7859 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004681/0.2075, allocations: 328.6 kB / 0.7862 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.2076, allocations: 50.5 kB / 0.7863 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.328e-05/0.2077, allocations: 36.92 kB / 0.7863 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.2077, allocations: 7.969 kB / 0.7863 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.2078, allocations: 30.56 kB / 0.7863 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.2078, allocations: 0 / 0.7863 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4): time 0.0003277/0.2081, allocations: 105.6 kB / 0.7864 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.2082, allocations: 81.11 kB / 0.7865 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.726e-05/0.2082, allocations: 128.4 kB / 0.7866 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.2083, allocations: 29.7 kB / 0.7867 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.239e-05/0.2083, allocations: 104 kB / 0.7868 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.2084, allocations: 3.906 kB / 0.7868 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.2084, allocations: 25.7 kB / 0.7868 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.468e-05/0.2085, allocations: 318.8 kB / 0.7871 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.776e-05/0.2086, allocations: 19.98 kB / 0.7871 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.505e-05/0.2087, allocations: 49.69 kB / 0.7872 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.2088, allocations: 48.83 kB / 0.7872 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2088, allocations: 3.938 kB / 0.7872 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001852/0.209, allocations: 81.77 kB / 0.7873 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.209, allocations: 8 kB / 0.7873 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.2091, allocations: 8.031 kB / 0.7873 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.908e-06/0.2091, allocations: 0 / 0.7873 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.2092, allocations: 11.98 kB / 0.7873 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.2092, allocations: 0 / 0.7873 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.93e-05/0.2093, allocations: 15.98 kB / 0.7873 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.2093, allocations: 3.938 kB / 0.7873 GB, free: 8.973 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.855e-05/0.2094, allocations: 114.5 kB / 0.7874 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.2094, allocations: 11.84 kB / 0.7875 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.918e-05/0.2094, allocations: 16.23 kB / 0.7875 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.2095, allocations: 4 kB / 0.7875 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2095, allocations: 0 / 0.7875 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2095, allocations: 0 / 0.7875 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.2097, allocations: 189.5 kB / 0.7877 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2097, allocations: 4 kB / 0.7877 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.98e-05/0.2097, allocations: 4 kB / 0.7877 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2097, allocations: 0 / 0.7877 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.2098, allocations: 11.98 kB / 0.7877 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.2098, allocations: 0 / 0.7877 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2098, allocations: 0 / 0.7877 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002242/0.21, allocations: 183.4 kB / 0.7878 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.769e-05/0.2101, allocations: 81.02 kB / 0.7879 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.2101, allocations: 0 / 0.7879 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.2102, allocations: 11.98 kB / 0.7879 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.2102, allocations: 15.92 kB / 0.7879 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.2103, allocations: 0 / 0.7879 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.49e-05/0.2103, allocations: 111.1 kB / 0.7881 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.322e-06/0.2103, allocations: 0 / 0.7881 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002192/0.2106, allocations: 15.94 kB / 0.7881 GB, free: 8.113 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.0001074/0.2107, allocations: 103.2 kB / 0.7882 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002551/0.2109, allocations: 51.97 kB / 0.7882 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.211, allocations: 0 / 0.7882 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.912e-05/0.211, allocations: 28.22 kB / 0.7882 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.2113, allocations: 8 kB / 0.7883 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003731/0.2117, allocations: 204.7 kB / 0.7884 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.212, allocations: 0.6927 MB / 0.7891 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.421e-05/0.212, allocations: 7.984 kB / 0.7891 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.601e-05/0.2121, allocations: 7.438 kB / 0.7891 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2121, allocations: 0 / 0.7891 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of Templates: time 0.002665/0.2147, allocations: 0.7561 MB / 0.7899 GB, free: 6.215 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)