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.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadModel(Buildings): time 3.954/3.954, allocations: 432.7 MB / 445.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.074e-05/3.084e-05, allocations: 5.266 kB / 0.5383 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1913, allocations: 98.71 MB / 0.6347 GB, free: 1.879 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1977/0.3891, allocations: 124.5 MB / 0.7563 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003925/0.3895, allocations: 71.95 kB / 0.7563 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00518/0.3947, allocations: 0.8684 MB / 0.7572 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.298e-06/0.3948, allocations: 0 / 0.7572 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.014e-05/0.3948, allocations: 0 / 0.7572 GB, free: 4.316 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.0007645/0.3956, allocations: 358.4 kB / 0.7575 GB, free: 3.922 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/0.3957, allocations: 8.031 kB / 0.7575 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.172e-05/0.3958, allocations: 11.91 kB / 0.7575 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.396, allocations: 171 kB / 0.7577 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.396, allocations: 4 kB / 0.7577 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.3961, allocations: 7.984 kB / 0.7577 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.3963, allocations: 53.62 kB / 0.7578 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3963, allocations: 0 / 0.7578 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.3964, allocations: 0 / 0.7578 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.987e-06/0.3964, allocations: 0 / 0.7578 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.3965, allocations: 16 kB / 0.7578 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007444/0.3973, allocations: 280.8 kB / 0.758 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.3975, allocations: 46.5 kB / 0.7581 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.942e-05/0.3977, allocations: 21.11 kB / 0.7581 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.3977, allocations: 4 kB / 0.7581 GB, free: 3.203 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00021/0.3979, allocations: 59.47 kB / 0.7582 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 4.791e-06/0.398, allocations: 3.938 kB / 0.7582 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0003744/0.3984, allocations: 81.48 kB / 0.7583 GB, free: 3.043 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/0.3985, allocations: 55.39 kB / 0.7583 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.3986, allocations: 97 kB / 0.7584 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.3987, allocations: 25.7 kB / 0.7584 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.558e-05/0.3988, allocations: 92.12 kB / 0.7585 GB, free: 2.75 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.769e-05/0.3989, allocations: 15.75 kB / 0.7585 GB, free: 2.734 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.365e-05/0.3989, allocations: 4 kB / 0.7585 GB, free: 2.73 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002012/0.3991, allocations: 326.8 kB / 0.7588 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.89e-05/0.3992, allocations: 12 kB / 0.7589 GB, free: 2.391 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.3994, allocations: 40.3 kB / 0.7589 GB, free: 2.336 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/0.3995, allocations: 19.94 kB / 0.7589 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3995, allocations: 0 / 0.7589 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003659/0.3999, allocations: 89.52 kB / 0.759 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.4, allocations: 4 kB / 0.759 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.609e-06/0.4, allocations: 0 / 0.759 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.4, allocations: 4 kB / 0.759 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/0.4003, allocations: 24.14 kB / 0.759 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.4003, allocations: 7.953 kB / 0.759 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.4005, allocations: 12 kB / 0.759 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.4006, allocations: 4 kB / 0.7591 GB, free: 2.168 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * 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 0.0001367/0.4007, allocations: 109 kB / 0.7592 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.4008, allocations: 7.906 kB / 0.7592 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000324/0.4011, allocations: 78.25 kB / 0.7592 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.768e-06/0.4011, allocations: 0 / 0.7592 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.4012, allocations: 7.984 kB / 0.7592 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.4012, allocations: 3.953 kB / 0.7592 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000675/0.4019, allocations: 316.5 kB / 0.7596 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.4019, allocations: 3.938 kB / 0.7596 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001596/0.4021, allocations: 11.98 kB / 0.7596 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.281e-05/0.4021, allocations: 4 kB / 0.7596 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.4022, allocations: 0 / 0.7596 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-05/0.4022, allocations: 4.266 kB / 0.7596 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.495e-06/0.4022, allocations: 4 kB / 0.7596 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002333/0.4025, allocations: 163.5 kB / 0.7597 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.572e-05/0.4026, allocations: 81.02 kB / 0.7598 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.4026, allocations: 8.188 kB / 0.7598 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.4028, allocations: 11.98 kB / 0.7598 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.4028, allocations: 7.891 kB / 0.7598 GB, free: 1.258 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.4029, allocations: 8.188 kB / 0.7598 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.216e-05/0.4029, allocations: 91.25 kB / 0.7599 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.97e-07/0.4029, allocations: 0 / 0.7599 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003272/0.4033, allocations: 8 kB / 0.7599 GB, free: 1.152 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * 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.0001454/0.4034, allocations: 107.2 kB / 0.76 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001552/0.4036, allocations: 47.88 kB / 0.7601 GB, free: 0.9922 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.674e-06/0.4036, allocations: 320 / 0.7601 GB, free: 0.9922 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.622e-05/0.4037, allocations: 23.98 kB / 0.7601 GB, free: 0.9688 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.404, allocations: 13.81 kB / 0.7601 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002872/0.4043, allocations: 77.05 kB / 0.7602 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.4046, allocations: 0.6887 MB / 0.7609 GB, free: 144 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.771e-05/0.4047, allocations: 192 / 0.7609 GB, free: 144 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.604e-05/0.4047, allocations: 15.44 kB / 0.7609 GB, free: 132 kB / 0.6355 GB Notification: Performance of SimCode: time 1.64e-06/0.4047, allocations: 0 / 0.7609 GB, free: 132 kB / 0.6355 GB Notification: Performance of Templates: time 0.003194/0.4079, allocations: 0.5583 MB / 0.7614 GB, free: 15.57 MB / 0.6511 GB