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.Discrete.Examples.Sampler.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.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadModel(Buildings): time 4.183/4.183, allocations: 432.7 MB / 445.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.012e-05/3.025e-05, allocations: 3.594 kB / 0.5383 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1744, allocations: 98.73 MB / 0.6347 GB, free: 1.887 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.19/0.3644, allocations: 124.4 MB / 0.7563 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.3647, allocations: 71.95 kB / 0.7563 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003162/0.3679, allocations: 0.8721 MB / 0.7572 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.828e-06/0.3679, allocations: 0 / 0.7572 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.552e-06/0.3679, allocations: 0 / 0.7572 GB, free: 4.328 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005042/0.3684, allocations: 354.5 kB / 0.7575 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3685, allocations: 8.031 kB / 0.7575 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.3685, allocations: 11.91 kB / 0.7575 GB, free: 3.918 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.3687, allocations: 167 kB / 0.7577 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.3687, allocations: 8 kB / 0.7577 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.3688, allocations: 0 / 0.7577 GB, free: 3.707 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.3689, allocations: 53.62 kB / 0.7578 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.22e-06/0.3689, allocations: 0 / 0.7578 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.369, allocations: 0 / 0.7578 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.058e-06/0.369, allocations: 8 kB / 0.7578 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.133e-05/0.3691, allocations: 15.98 kB / 0.7578 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004687/0.3696, allocations: 276.8 kB / 0.758 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001269/0.3697, allocations: 42.52 kB / 0.7581 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.48e-05/0.3698, allocations: 16.98 kB / 0.7581 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.3698, allocations: 7.984 kB / 0.7581 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001357/0.37, allocations: 59.41 kB / 0.7582 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.852e-06/0.37, allocations: 0 / 0.7582 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002268/0.3702, allocations: 73.59 kB / 0.7582 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.3703, allocations: 59.3 kB / 0.7583 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.512e-05/0.3704, allocations: 105 kB / 0.7584 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.3704, allocations: 25.7 kB / 0.7584 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.126e-05/0.3705, allocations: 92.14 kB / 0.7585 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/0.3705, allocations: 7.812 kB / 0.7585 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.186e-05/0.3706, allocations: 11.94 kB / 0.7585 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3707, allocations: 314.8 kB / 0.7588 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.234e-05/0.3708, allocations: 12 kB / 0.7588 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.693e-05/0.3709, allocations: 43.36 kB / 0.7589 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.404e-05/0.3709, allocations: 16 kB / 0.7589 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.671e-06/0.3709, allocations: 0 / 0.7589 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001887/0.3711, allocations: 85.45 kB / 0.759 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3712, allocations: 5.719 kB / 0.759 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3712, allocations: 0 / 0.759 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.3712, allocations: 4 kB / 0.759 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.3713, allocations: 16.03 kB / 0.759 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.007e-06/0.3714, allocations: 4.094 kB / 0.759 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.3715, allocations: 23.86 kB / 0.759 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.3715, allocations: 8 kB / 0.759 GB, free: 2.207 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: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.215e-05/0.3716, allocations: 102.9 kB / 0.7591 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.3716, allocations: 4 kB / 0.7591 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002129/0.3719, allocations: 86.55 kB / 0.7592 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.4e-06/0.3719, allocations: 64 / 0.7592 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.98e-06/0.3719, allocations: 8 kB / 0.7592 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.966e-06/0.3719, allocations: 0 / 0.7592 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004455/0.3724, allocations: 334.5 kB / 0.7595 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.238e-06/0.3724, allocations: 0 / 0.7595 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.556e-05/0.3725, allocations: 15.98 kB / 0.7596 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3725, allocations: 0 / 0.7596 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.3725, allocations: 0 / 0.7596 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.613e-06/0.3725, allocations: 0 / 0.7596 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.395e-06/0.3726, allocations: 7.938 kB / 0.7596 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002239/0.3728, allocations: 169.4 kB / 0.7597 GB, free: 1.41 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.3729, allocations: 81.02 kB / 0.7598 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.3729, allocations: 4 kB / 0.7598 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001529/0.3731, allocations: 11.98 kB / 0.7598 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.3731, allocations: 15.88 kB / 0.7598 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.3731, allocations: 0 / 0.7598 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.132e-05/0.3732, allocations: 91.28 kB / 0.7599 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.34e-07/0.3732, allocations: 0 / 0.7599 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003263/0.3736, allocations: 8 kB / 0.7599 GB, free: 1.184 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001272/0.3737, allocations: 106.2 kB / 0.76 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001586/0.3739, allocations: 43.92 kB / 0.7601 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.783e-06/0.3739, allocations: 0 / 0.7601 GB, free: 1.031 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.093e-05/0.374, allocations: 16.31 kB / 0.7601 GB, free: 1.016 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.3742, allocations: 16.06 kB / 0.7601 GB, free: 1 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002876/0.3745, allocations: 76.92 kB / 0.7602 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003532/0.3749, allocations: 0.6848 MB / 0.7608 GB, free: 196 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.256e-05/0.375, allocations: 4.188 kB / 0.7608 GB, free: 188 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.375, allocations: 15.44 kB / 0.7609 GB, free: 176 kB / 0.6355 GB Notification: Performance of SimCode: time 1.595e-06/0.375, allocations: 0 / 0.7609 GB, free: 176 kB / 0.6355 GB Notification: Performance of Templates: time 0.003175/0.3782, allocations: 0.5486 MB / 0.7614 GB, free: 15.63 MB / 0.6511 GB