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.TriggeredMax.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.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadModel(Buildings): time 4.108/4.108, allocations: 432.7 MB / 445.3 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.991e-05/3.004e-05, allocations: 4.25 kB / 0.5383 GB, free: 10.26 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.1817, allocations: 98.73 MB / 0.6347 GB, free: 1.895 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1946/0.3764, allocations: 124.7 MB / 0.7565 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.3767, allocations: 71.95 kB / 0.7566 GB, free: 4.922 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.005927/0.3826, allocations: 1.469 MB / 0.758 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.841e-06/0.3827, allocations: 0 / 0.758 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.731e-06/0.3827, allocations: 0 / 0.758 GB, free: 3.449 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.0005322/0.3832, allocations: 362.5 kB / 0.7584 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.3833, allocations: 16.02 kB / 0.7584 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.3834, allocations: 3.906 kB / 0.7584 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.3835, allocations: 178.9 kB / 0.7586 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.3836, allocations: 4 kB / 0.7586 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.028e-05/0.3836, allocations: 4 kB / 0.7586 GB, free: 2.809 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001471/0.3837, allocations: 57.61 kB / 0.7586 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.82e-06/0.3838, allocations: 0 / 0.7586 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.3838, allocations: 7.984 kB / 0.7587 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.576e-06/0.3838, allocations: 0 / 0.7587 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.814e-05/0.3839, allocations: 20 kB / 0.7587 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005424/0.3845, allocations: 296.7 kB / 0.759 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.3846, allocations: 42.52 kB / 0.759 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.392e-05/0.3847, allocations: 18.95 kB / 0.759 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.3847, allocations: 0 / 0.759 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.3849, allocations: 75.33 kB / 0.7591 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.751e-06/0.3849, allocations: 0 / 0.7591 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002425/0.3852, allocations: 85.64 kB / 0.7592 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.3852, allocations: 51.41 kB / 0.7592 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.3853, allocations: 108.9 kB / 0.7593 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.3854, allocations: 29.7 kB / 0.7593 GB, free: 1.922 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.3855, allocations: 84.14 kB / 0.7594 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.3855, allocations: 23.73 kB / 0.7594 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.612e-06/0.3855, allocations: 4 kB / 0.7595 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3857, allocations: 314.8 kB / 0.7598 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.3857, allocations: 12 kB / 0.7598 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.125e-05/0.3858, allocations: 34.58 kB / 0.7598 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.468e-05/0.3859, allocations: 15.98 kB / 0.7598 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3859, allocations: 4 kB / 0.7598 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001982/0.3861, allocations: 85.52 kB / 0.7599 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3861, allocations: 4 kB / 0.7599 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.491e-06/0.3862, allocations: 4 kB / 0.7599 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.3862, allocations: 96 / 0.7599 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.3863, allocations: 27.86 kB / 0.7599 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.538e-06/0.3864, allocations: 400 / 0.7599 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.3865, allocations: 24.02 kB / 0.76 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.3865, allocations: 8 kB / 0.76 GB, free: 1.262 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.337e-05/0.3866, allocations: 105 kB / 0.7601 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.3867, allocations: 3.906 kB / 0.7601 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002322/0.3869, allocations: 94.41 kB / 0.7602 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.222e-06/0.3869, allocations: 0 / 0.7602 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.158e-06/0.3869, allocations: 7.891 kB / 0.7602 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.999e-06/0.387, allocations: 0 / 0.7602 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005496/0.3875, allocations: 354.5 kB / 0.7605 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.918e-06/0.3875, allocations: 0 / 0.7605 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.538e-05/0.3876, allocations: 11.94 kB / 0.7605 GB, free: 0.625 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.728e-06/0.3877, allocations: 3.984 kB / 0.7605 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.3877, allocations: 7.953 kB / 0.7605 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.048e-06/0.3877, allocations: 0 / 0.7605 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.766e-06/0.3877, allocations: 0 / 0.7605 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.388, allocations: 179.4 kB / 0.7607 GB, free: 432 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.802e-05/0.388, allocations: 89.03 kB / 0.7608 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.3881, allocations: 0 / 0.7608 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.3883, allocations: 19.94 kB / 0.7608 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.217e-05/0.3883, allocations: 7.984 kB / 0.7608 GB, free: 296 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.306e-05/0.3884, allocations: 8 kB / 0.7608 GB, free: 288 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.032e-05/0.3884, allocations: 87.28 kB / 0.7609 GB, free: 200 kB / 0.6355 GB Notification: Performance of sort global known variables: time 7.21e-07/0.3884, allocations: 0 / 0.7609 GB, free: 200 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003221/0.3888, allocations: 8 kB / 0.7609 GB, free: 192 kB / 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0001418/0.3889, allocations: 111.2 kB / 0.761 GB, free: 72 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.3891, allocations: 40 kB / 0.7611 GB, free: 32 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.541e-06/0.3891, allocations: 0 / 0.7611 GB, free: 32 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.891e-05/0.3892, allocations: 27.94 kB / 0.7611 GB, free: 4 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.3895, allocations: 16.11 kB / 0.7611 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003446/0.3899, allocations: 96.89 kB / 0.7612 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.3902, allocations: 0.6887 MB / 0.7619 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.204e-05/0.3903, allocations: 11.77 kB / 0.7619 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.7e-05/0.3903, allocations: 11.44 kB / 0.7619 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of SimCode: time 1.626e-06/0.3904, allocations: 4 kB / 0.7619 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of Templates: time 0.003658/0.394, allocations: 0.7517 MB / 0.7626 GB, free: 14.38 MB / 0.6511 GB