Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01521/0.01522, allocations: 108.6 kB / 15.06 MB, free: 5.562 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001823/0.001823, allocations: 180 kB / 15.95 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.992/1.992, allocations: 194.6 MB / 211.3 MB, free: 11 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.236/2.236, allocations: 236.2 MB / 492.6 MB, free: 11.29 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004663/0.0004664, allocations: 8 kB / 0.5869 GB, free: 2.164 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5348/0.5353, allocations: 98.71 MB / 0.6833 GB, free: 16.8 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001753/0.5371, allocations: 1.34 MB / 0.6847 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0007726/0.5379, allocations: 456.2 kB / 0.6851 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.188e-05/0.538, allocations: 1.594 kB / 0.6851 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 2.088e-05/0.538, allocations: 5.531 kB / 0.6851 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 8.67e-05/0.5381, allocations: 15.91 kB / 0.6851 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001459/0.5383, allocations: 24.8 kB / 0.6851 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 9.113e-05/0.5384, allocations: 47.08 kB / 0.6852 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.5385, allocations: 30.22 kB / 0.6852 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.5386, allocations: 27.55 kB / 0.6852 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 8.256e-05/0.5387, allocations: 24.42 kB / 0.6853 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.5387, allocations: 2.656 kB / 0.6853 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.569e-05/0.5388, allocations: 2.5 kB / 0.6853 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.5388, allocations: 12.48 kB / 0.6853 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 2.884e-05/0.5388, allocations: 39.34 kB / 0.6853 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.5389, allocations: 51.38 kB / 0.6854 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.539, allocations: 5.188 kB / 0.6854 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.466e-06/0.539, allocations: 0 / 0.6854 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.79e-06/0.539, allocations: 0 / 0.6854 GB, free: 15.36 MB / 0.5261 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.0004558/0.5394, allocations: 382.1 kB / 0.6857 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.5395, allocations: 9.031 kB / 0.6857 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.282e-05/0.5395, allocations: 11.58 kB / 0.6858 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.5397, allocations: 185.9 kB / 0.6859 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.5397, allocations: 2.75 kB / 0.6859 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.5397, allocations: 3.062 kB / 0.6859 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.54, allocations: 100.8 kB / 0.686 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.874e-06/0.54, allocations: 4 kB / 0.686 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.54, allocations: 0 / 0.686 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.54, allocations: 4.969 kB / 0.686 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.5403, allocations: 57.27 kB / 0.6861 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005096/0.5408, allocations: 332.3 kB / 0.6864 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.541, allocations: 50.56 kB / 0.6865 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.541, allocations: 5.328 kB / 0.6865 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.541, allocations: 40.44 kB / 0.6865 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=4): time 2.084e-06/0.5411, allocations: 4 kB / 0.6865 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=4): time 0.0004225/0.5415, allocations: 112.2 kB / 0.6866 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.5415, allocations: 79.41 kB / 0.6867 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.5417, allocations: 136.3 kB / 0.6868 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.5417, allocations: 27.86 kB / 0.6868 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.985e-05/0.5417, allocations: 98.59 kB / 0.6869 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.562e-05/0.5418, allocations: 14.64 kB / 0.687 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.597e-06/0.5418, allocations: 0 / 0.687 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.632e-05/0.5419, allocations: 320.3 kB / 0.6873 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.542, allocations: 23.95 kB / 0.6873 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.5421, allocations: 49.48 kB / 0.6873 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.5423, allocations: 26.5 kB / 0.6874 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.363e-06/0.5423, allocations: 1.344 kB / 0.6874 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002727/0.5425, allocations: 91.17 kB / 0.6874 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.5426, allocations: 9.766 kB / 0.6875 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.5426, allocations: 0 / 0.6875 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.5426, allocations: 1.188 kB / 0.6875 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.5428, allocations: 12.3 kB / 0.6875 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.5428, allocations: 0 / 0.6875 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.5429, allocations: 27.45 kB / 0.6875 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.5429, allocations: 2.359 kB / 0.6875 GB, free: 13.46 MB / 0.5261 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.014e-05/0.543, allocations: 117.3 kB / 0.6876 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.313e-05/0.5431, allocations: 4.234 kB / 0.6876 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.5431, allocations: 16.25 kB / 0.6876 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-06/0.5431, allocations: 0 / 0.6876 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.5431, allocations: 0.5156 kB / 0.6876 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.5432, allocations: 0.9062 kB / 0.6876 GB, free: 13.32 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.5434, allocations: 191.1 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.219e-06/0.5434, allocations: 5.344 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.5435, allocations: 10.36 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.919e-06/0.5435, allocations: 6.141 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.5435, allocations: 0.8438 kB / 0.6878 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.147e-06/0.5435, allocations: 9.547 kB / 0.6878 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.393e-06/0.5435, allocations: 4 kB / 0.6878 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.5438, allocations: 181.9 kB / 0.688 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.821e-05/0.5439, allocations: 83.23 kB / 0.6881 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.5439, allocations: 5.797 kB / 0.6881 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.5441, allocations: 15.12 kB / 0.6881 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.5442, allocations: 16.08 kB / 0.6881 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.5442, allocations: 6.891 kB / 0.6881 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 6.589e-05/0.5443, allocations: 101.1 kB / 0.6882 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.7e-07/0.5443, allocations: 0 / 0.6882 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003184/0.5446, allocations: 10.97 kB / 0.6882 GB, free: 12.75 MB / 0.5261 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 (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.0001051/0.5447, allocations: 101.7 kB / 0.6883 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002852/0.545, allocations: 63.39 kB / 0.6884 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.017e-06/0.545, allocations: 0 / 0.6884 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.5452, allocations: 36.55 kB / 0.6884 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.5454, allocations: 9.078 kB / 0.6884 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00045/0.5459, allocations: 203.7 kB / 0.6886 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001418/0.546, allocations: 0.6925 MB / 0.6893 GB, free: 11.78 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.678e-05/0.5461, allocations: 6.828 kB / 0.6893 GB, free: 11.78 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.239e-05/0.5462, allocations: 11.61 kB / 0.6893 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of SimCode: time 1.496e-06/0.5462, allocations: 5.219 kB / 0.6893 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of Templates: time 0.003618/0.5498, allocations: 0.7115 MB / 0.69 GB, free: 11.68 MB / 0.5261 GB