Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.098/2.098, allocations: 251.1 MB / 266.1 MB, free: 11.56 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001976/0.001976, allocations: 176.6 kB / 325.6 MB, free: 2.812 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.354/2.354, allocations: 205.4 MB / 0.5766 GB, free: 21.07 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 96.42 kB / 0.6811 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004783/0.0004784, allocations: 14.58 kB / 0.7951 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.2196, allocations: 106.3 MB / 0.8989 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2263/0.4459, allocations: 133 MB / 1.029 GB, free: 12.74 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003957/0.4464, allocations: 87.94 kB / 1.029 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006526/0.4529, allocations: 1.515 MB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.154e-06/0.453, allocations: 0 / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.453, allocations: 4 kB / 1.03 GB, free: 11.13 MB / 0.6823 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.0006167/0.4536, allocations: 398.9 kB / 1.031 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.4537, allocations: 11.97 kB / 1.031 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.561e-05/0.4538, allocations: 11.86 kB / 1.031 GB, free: 10.67 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.4539, allocations: 175 kB / 1.031 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.454, allocations: 4 kB / 1.031 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.454, allocations: 4 kB / 1.031 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/0.4543, allocations: 91.38 kB / 1.031 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.4544, allocations: 0 / 1.031 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.4544, allocations: 7.984 kB / 1.031 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4544, allocations: 0 / 1.031 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.4547, allocations: 55.91 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006323/0.4553, allocations: 336.6 kB / 1.031 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.4556, allocations: 54.59 kB / 1.031 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.175e-05/0.4556, allocations: 4 kB / 1.031 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.4556, allocations: 38.56 kB / 1.031 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.693e-06/0.4557, allocations: 0 / 1.031 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0005373/0.4562, allocations: 121.6 kB / 1.032 GB, free: 9.672 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.4563, allocations: 77.11 kB / 1.032 GB, free: 9.578 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.4564, allocations: 119.7 kB / 1.032 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.4564, allocations: 29.7 kB / 1.032 GB, free: 9.418 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.732e-05/0.4565, allocations: 100 kB / 1.032 GB, free: 9.316 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.4566, allocations: 11.78 kB / 1.032 GB, free: 9.305 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.4566, allocations: 7.938 kB / 1.032 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.4567, allocations: 318.8 kB / 1.032 GB, free: 8.977 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.4569, allocations: 31.98 kB / 1.032 GB, free: 8.945 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.457, allocations: 41.7 kB / 1.032 GB, free: 8.898 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.4572, allocations: 23.98 kB / 1.032 GB, free: 8.875 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4572, allocations: 4.031 kB / 1.032 GB, free: 8.871 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003443/0.4576, allocations: 97.56 kB / 1.032 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.4576, allocations: 4 kB / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.4576, allocations: 0 / 1.032 GB, free: 8.766 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.4576, allocations: 3.953 kB / 1.032 GB, free: 8.762 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.4578, allocations: 19.92 kB / 1.032 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.4578, allocations: 4 kB / 1.032 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.458, allocations: 11.98 kB / 1.032 GB, free: 8.727 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.458, allocations: 4 kB / 1.032 GB, free: 8.723 MB / 0.6823 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 0.0001111/0.4581, allocations: 115.7 kB / 1.033 GB, free: 8.602 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.877e-05/0.4582, allocations: 11.84 kB / 1.033 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.303e-05/0.4583, allocations: 8.25 kB / 1.033 GB, free: 8.574 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4583, allocations: 7.953 kB / 1.033 GB, free: 8.566 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.4583, allocations: 4 kB / 1.033 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.4583, allocations: 0 / 1.033 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002449/0.4586, allocations: 185.6 kB / 1.033 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4586, allocations: 0 / 1.033 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.4587, allocations: 11.98 kB / 1.033 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.4587, allocations: 4 kB / 1.033 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.4587, allocations: 0 / 1.033 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4587, allocations: 0 / 1.033 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4588, allocations: 3.953 kB / 1.033 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003715/0.4591, allocations: 191.4 kB / 1.033 GB, free: 8.109 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.035e-05/0.4592, allocations: 81.02 kB / 1.033 GB, free: 8.012 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.4593, allocations: 8.172 kB / 1.033 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.4594, allocations: 16 kB / 1.033 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.804e-05/0.4595, allocations: 15.97 kB / 1.033 GB, free: 7.973 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.4595, allocations: 7.953 kB / 1.033 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 8.178e-05/0.4596, allocations: 99.27 kB / 1.033 GB, free: 7.867 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.91e-07/0.4596, allocations: 0 / 1.033 GB, free: 7.867 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002944/0.4599, allocations: 8 kB / 1.033 GB, free: 7.859 MB / 0.6823 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.0001329/0.4601, allocations: 99.25 kB / 1.033 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003397/0.4604, allocations: 63.95 kB / 1.033 GB, free: 7.691 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4605, allocations: 0 / 1.033 GB, free: 7.691 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.4606, allocations: 35.92 kB / 1.033 GB, free: 7.656 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.4609, allocations: 8.984 kB / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005016/0.4614, allocations: 206.7 kB / 1.034 GB, free: 7.422 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.4617, allocations: 0.6926 MB / 1.034 GB, free: 6.703 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 7.186e-05/0.4618, allocations: 16.31 kB / 1.034 GB, free: 6.688 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.261e-05/0.4618, allocations: 11.44 kB / 1.034 GB, free: 6.676 MB / 0.6823 GB Notification: Performance of SimCode: time 7.41e-07/0.4619, allocations: 0 / 1.034 GB, free: 6.676 MB / 0.6823 GB Notification: Performance of Templates: time 0.003919/0.4658, allocations: 0.7121 MB / 1.035 GB, free: 5.98 MB / 0.6823 GB