Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.28/2.28, allocations: 253.2 MB / 260.6 MB, free: 7.52 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001479/0.001479, allocations: 184.7 kB / 319.9 MB, free: 3.09 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.254/2.254, allocations: 205.5 MB / 0.5708 GB, free: 15.28 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.001437/0.001437, allocations: 78.77 kB / 0.6751 GB, free: 4.645 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.301e-05, allocations: 12 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2093, allocations: 106.3 MB / 0.8887 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9337/1.143, allocations: 131.9 MB / 1.017 GB, free: 5.441 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/1.143, allocations: 73.3 kB / 1.018 GB, free: 5.402 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006561/1.15, allocations: 1.605 MB / 1.019 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.683e-06/1.15, allocations: 0 / 1.019 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.489e-05/1.15, allocations: 0 / 1.019 GB, free: 3.988 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0007922/1.151, allocations: 410.7 kB / 1.02 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/1.151, allocations: 8.031 kB / 1.02 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.709e-05/1.151, allocations: 15.81 kB / 1.02 GB, free: 3.52 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/1.151, allocations: 191 kB / 1.02 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/1.151, allocations: 7.375 kB / 1.02 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.381e-05/1.151, allocations: 4 kB / 1.02 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001913/1.151, allocations: 50.55 kB / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002049/1.152, allocations: 81.11 kB / 1.02 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/1.152, allocations: 3.984 kB / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/1.152, allocations: 0 / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/1.152, allocations: 4 kB / 1.02 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007129/1.152, allocations: 348.8 kB / 1.02 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/1.153, allocations: 72.78 kB / 1.02 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.548e-05/1.153, allocations: 35.52 kB / 1.02 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/1.153, allocations: 0 / 1.02 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002203/1.153, allocations: 98.67 kB / 1.02 GB, free: 2.645 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/1.153, allocations: 0 / 1.02 GB, free: 2.645 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0003177/1.153, allocations: 112.1 kB / 1.02 GB, free: 2.547 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/1.153, allocations: 55.34 kB / 1.021 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/1.154, allocations: 133.3 kB / 1.021 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/1.154, allocations: 25.7 kB / 1.021 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.004e-05/1.154, allocations: 102.9 kB / 1.021 GB, free: 2.234 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/1.154, allocations: 23.47 kB / 1.021 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.181e-05/1.154, allocations: 4 kB / 1.021 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001499/1.154, allocations: 322.5 kB / 1.021 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/1.154, allocations: 26.56 kB / 1.021 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/1.154, allocations: 57.52 kB / 1.021 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.969e-05/1.154, allocations: 22.73 kB / 1.021 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/1.154, allocations: 4 kB / 1.021 GB, free: 1.797 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002816/1.155, allocations: 110.3 kB / 1.021 GB, free: 1.703 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/1.155, allocations: 9.969 kB / 1.021 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/1.155, allocations: 3.953 kB / 1.021 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/1.155, allocations: 4 kB / 1.021 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/1.155, allocations: 15.98 kB / 1.021 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/1.155, allocations: 0 / 1.021 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002292/1.155, allocations: 28.02 kB / 1.021 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/1.155, allocations: 11.36 kB / 1.021 GB, free: 1.637 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001152/1.155, allocations: 112.8 kB / 1.022 GB, free: 1.52 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/1.155, allocations: 11.81 kB / 1.022 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/1.155, allocations: 15.5 kB / 1.022 GB, free: 1.5 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/1.155, allocations: 3.953 kB / 1.022 GB, free: 1.496 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/1.155, allocations: 4 kB / 1.022 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/1.155, allocations: 0 / 1.022 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/1.156, allocations: 183.2 kB / 1.022 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/1.156, allocations: 4 kB / 1.022 GB, free: 1.289 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.292e-05/1.156, allocations: 14.55 kB / 1.022 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.361e-06/1.156, allocations: 0 / 1.022 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/1.156, allocations: 7.938 kB / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/1.156, allocations: 0 / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.156, allocations: 0 / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002894/1.156, allocations: 141.6 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.403e-05/1.156, allocations: 88.42 kB / 1.022 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/1.156, allocations: 11.98 kB / 1.022 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/1.157, allocations: 15.98 kB / 1.022 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.76e-05/1.157, allocations: 15.97 kB / 1.022 GB, free: 0.9883 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/1.157, allocations: 7.312 kB / 1.022 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 9.352e-05/1.157, allocations: 101.8 kB / 1.022 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.2e-07/1.157, allocations: 0 / 1.022 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003105/1.157, allocations: 20 kB / 1.022 GB, free: 0.8711 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001505/1.157, allocations: 108.8 kB / 1.022 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002333/1.157, allocations: 74.56 kB / 1.022 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/1.158, allocations: 0 / 1.022 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/1.158, allocations: 46.05 kB / 1.022 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/1.158, allocations: 19.67 kB / 1.022 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004882/1.158, allocations: 162.9 kB / 1.023 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/1.159, allocations: 0.7158 MB / 1.023 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.505e-05/1.159, allocations: 8.766 kB / 1.023 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.88e-05/1.159, allocations: 19.25 kB / 1.023 GB, free: 15.73 MB / 0.6511 GB Notification: Performance of SimCode: time 7.31e-07/1.159, allocations: 4 kB / 1.023 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of Templates: time 0.006345/1.165, allocations: 1.101 MB / 1.024 GB, free: 14.64 MB / 0.6511 GB