Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadModel(Buildings): time 4.047/4.047, allocations: 432.7 MB / 445.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.253e-05, allocations: 6.094 kB / 0.5383 GB, free: 10.31 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1753, allocations: 98.72 MB / 0.6347 GB, free: 1.906 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1909/0.3662, allocations: 124.5 MB / 0.7563 GB, free: 5.211 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.3665, allocations: 71.95 kB / 0.7564 GB, free: 5.141 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004193/0.3707, allocations: 1.106 MB / 0.7575 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.74e-06/0.3708, allocations: 0 / 0.7575 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.3708, allocations: 4 kB / 0.7575 GB, free: 4.027 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005893/0.3714, allocations: 382.5 kB / 0.7579 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3714, allocations: 8.031 kB / 0.7579 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.3715, allocations: 7.906 kB / 0.7579 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.3717, allocations: 182.8 kB / 0.758 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.868e-05/0.3717, allocations: 0 / 0.758 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.3717, allocations: 4 kB / 0.7581 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001505/0.3719, allocations: 53.69 kB / 0.7581 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.37e-06/0.3719, allocations: 4 kB / 0.7581 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.372, allocations: 0 / 0.7581 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.235e-06/0.372, allocations: 4 kB / 0.7581 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.3721, allocations: 24 kB / 0.7581 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005337/0.3726, allocations: 300.8 kB / 0.7584 GB, free: 2.938 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.3728, allocations: 34.58 kB / 0.7585 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.449e-05/0.3728, allocations: 20.97 kB / 0.7585 GB, free: 2.871 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.3729, allocations: 11.98 kB / 0.7585 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.373, allocations: 63.41 kB / 0.7585 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.543e-06/0.3731, allocations: 0 / 0.7585 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002271/0.3733, allocations: 77.48 kB / 0.7586 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.3734, allocations: 59.34 kB / 0.7587 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.3735, allocations: 116.9 kB / 0.7588 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.3735, allocations: 29.7 kB / 0.7588 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.3736, allocations: 92.14 kB / 0.7589 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.3736, allocations: 19.73 kB / 0.7589 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.091e-06/0.3737, allocations: 4 kB / 0.7589 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3738, allocations: 310.8 kB / 0.7592 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.8e-05/0.3739, allocations: 20 kB / 0.7592 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.699e-05/0.374, allocations: 25.7 kB / 0.7593 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.356e-05/0.374, allocations: 15.98 kB / 0.7593 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3741, allocations: 4 kB / 0.7593 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001897/0.3743, allocations: 81.53 kB / 0.7594 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3743, allocations: 4 kB / 0.7594 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.424e-06/0.3743, allocations: 4 kB / 0.7594 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.3743, allocations: 0 / 0.7594 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.3745, allocations: 19.98 kB / 0.7594 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.3745, allocations: 3.953 kB / 0.7594 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.3747, allocations: 35.94 kB / 0.7594 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.3747, allocations: 0 / 0.7594 GB, free: 1.824 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.539e-05/0.3748, allocations: 109 kB / 0.7595 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.145e-05/0.3749, allocations: 3.906 kB / 0.7595 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.06e-05/0.3749, allocations: 12.62 kB / 0.7595 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.388e-06/0.3749, allocations: 0 / 0.7595 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.84e-06/0.3749, allocations: 4 kB / 0.7596 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.323e-06/0.375, allocations: 7.938 kB / 0.7596 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.3752, allocations: 177.6 kB / 0.7597 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.309e-06/0.3752, allocations: 0 / 0.7597 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.3753, allocations: 19.98 kB / 0.7597 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.391e-06/0.3754, allocations: 0 / 0.7597 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.3754, allocations: 7.984 kB / 0.7598 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.321e-06/0.3754, allocations: 0 / 0.7598 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.641e-06/0.3754, allocations: 0 / 0.7598 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.3756, allocations: 113 kB / 0.7599 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.953e-05/0.3757, allocations: 81.02 kB / 0.7599 GB, free: 1.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.3757, allocations: 4 kB / 0.7599 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.3759, allocations: 25.78 kB / 0.76 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.755e-05/0.376, allocations: 15.92 kB / 0.76 GB, free: 1.156 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.376, allocations: 4 kB / 0.76 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.195e-05/0.3761, allocations: 95.22 kB / 0.7601 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.11e-07/0.3761, allocations: 0 / 0.7601 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002756/0.3764, allocations: 8 kB / 0.7601 GB, free: 1.051 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: 3 ($whenCondition1,booPul.y,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001432/0.3766, allocations: 111.2 kB / 0.7602 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001749/0.3767, allocations: 39.94 kB / 0.7602 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.041e-06/0.3768, allocations: 4.062 kB / 0.7602 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.291e-05/0.3769, allocations: 24 kB / 0.7603 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.3771, allocations: 15.94 kB / 0.7603 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003212/0.3774, allocations: 102.8 kB / 0.7604 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.3778, allocations: 0.6926 MB / 0.761 GB, free: 12 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.522e-05/0.3779, allocations: 8.188 kB / 0.7611 GB, free: 0 / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.071e-05/0.3779, allocations: 11.48 kB / 0.7611 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of SimCode: time 1.377e-06/0.3779, allocations: 0 / 0.7611 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of Templates: time 0.003681/0.3816, allocations: 0.8172 MB / 0.7619 GB, free: 15.18 MB / 0.6511 GB