Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/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 loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.00414/0.004144, allocations: 233.5 kB / 15.82 MB, free: 6.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001133/0.001133, allocations: 174 kB / 16.7 MB, free: 5.449 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.893/3.893, allocations: 389.1 MB / 406.5 MB, free: 11.84 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.004/4.004, allocations: 472.3 MB / 0.9024 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004759/0.000476, allocations: 19.08 kB / 1.008 GB, free: 138.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1768, allocations: 98.71 MB / 1.105 GB, free: 42.03 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7935/0.9705, allocations: 124.5 MB / 1.226 GB, free: 28.43 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/0.9708, allocations: 73.72 kB / 1.226 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003359/0.9742, allocations: 0.87 MB / 1.227 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9742, allocations: 0 / 1.227 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.9742, allocations: 4 kB / 1.227 GB, free: 27.79 MB / 0.6198 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.0005242/0.9748, allocations: 360.8 kB / 1.228 GB, free: 27.41 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.9748, allocations: 11.64 kB / 1.228 GB, free: 27.4 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.9749, allocations: 2.344 kB / 1.228 GB, free: 27.4 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.116e-05/0.975, allocations: 175.4 kB / 1.228 GB, free: 27.2 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.975, allocations: 4.828 kB / 1.228 GB, free: 27.19 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.975, allocations: 4 kB / 1.228 GB, free: 27.19 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.9753, allocations: 68.34 kB / 1.228 GB, free: 27.13 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.9753, allocations: 0 / 1.228 GB, free: 27.13 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.9754, allocations: 1.359 kB / 1.228 GB, free: 27.13 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.9754, allocations: 0 / 1.228 GB, free: 27.13 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002941/0.9757, allocations: 53.36 kB / 1.228 GB, free: 27.1 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004751/0.9762, allocations: 283.2 kB / 1.228 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.9764, allocations: 66.73 kB / 1.228 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.9766, allocations: 38.56 kB / 1.228 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.9766, allocations: 1.875 kB / 1.228 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/0.9769, allocations: 81.94 kB / 1.228 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 2.194e-06/0.9769, allocations: 0 / 1.228 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0005935/0.9775, allocations: 134.6 kB / 1.228 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.9776, allocations: 51.41 kB / 1.228 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.9777, allocations: 119 kB / 1.229 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.9777, allocations: 25.7 kB / 1.229 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.9778, allocations: 84.88 kB / 1.229 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.9778, allocations: 20.94 kB / 1.229 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.9778, allocations: 7.219 kB / 1.229 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.978, allocations: 313.1 kB / 1.229 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.9781, allocations: 35.34 kB / 1.229 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.9783, allocations: 63.55 kB / 1.229 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.9785, allocations: 40.16 kB / 1.229 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.9785, allocations: 3.188 kB / 1.229 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003936/0.9789, allocations: 114.1 kB / 1.229 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.9789, allocations: 8 kB / 1.229 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.979, allocations: 0 / 1.229 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.979, allocations: 5.641 kB / 1.229 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.9792, allocations: 21.16 kB / 1.229 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.9792, allocations: 7.422 kB / 1.229 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.9793, allocations: 15.42 kB / 1.229 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.9794, allocations: 4 kB / 1.229 GB, free: 25.7 MB / 0.6198 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 () * Number of clocked 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.0001053/0.9795, allocations: 118.1 kB / 1.229 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/0.9795, allocations: 2.953 kB / 1.229 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004095/0.9799, allocations: 110.8 kB / 1.23 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.9799, allocations: 0 / 1.23 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.9799, allocations: 0 / 1.23 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.98, allocations: 7.203 kB / 1.23 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005869/0.9806, allocations: 360 kB / 1.23 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.9806, allocations: 3.094 kB / 1.23 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.9807, allocations: 10.91 kB / 1.23 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.9807, allocations: 0.6562 kB / 1.23 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.9807, allocations: 0 / 1.23 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.9807, allocations: 8.656 kB / 1.23 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.9807, allocations: 0 / 1.23 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009407/0.9817, allocations: 199.8 kB / 1.23 GB, free: 40.95 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.678e-05/0.9817, allocations: 78.42 kB / 1.23 GB, free: 40.85 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.715e-05/0.9818, allocations: 12.91 kB / 1.23 GB, free: 40.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.9819, allocations: 11.38 kB / 1.23 GB, free: 40.84 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.982, allocations: 9.438 kB / 1.23 GB, free: 40.83 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.982, allocations: 4.688 kB / 1.23 GB, free: 40.83 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.38e-05/0.9821, allocations: 88.62 kB / 1.23 GB, free: 40.75 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9821, allocations: 3.438 kB / 1.23 GB, free: 40.75 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003212/0.9824, allocations: 14.44 kB / 1.23 GB, free: 40.74 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) * Number of clocked 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.0001057/0.9825, allocations: 104.6 kB / 1.23 GB, free: 40.63 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003725/0.9829, allocations: 74.34 kB / 1.23 GB, free: 40.58 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.9829, allocations: 3.75 kB / 1.23 GB, free: 40.58 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001895/0.9831, allocations: 33.66 kB / 1.231 GB, free: 40.56 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.9835, allocations: 5.953 kB / 1.231 GB, free: 40.55 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003644/0.9839, allocations: 150.6 kB / 1.231 GB, free: 40.41 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.9842, allocations: 0.6879 MB / 1.231 GB, free: 39.7 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.158e-05/0.9842, allocations: 5.406 kB / 1.231 GB, free: 39.7 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.237e-05/0.9843, allocations: 10.94 kB / 1.231 GB, free: 39.7 MB / 0.6355 GB Notification: Performance of SimCode: time 7.62e-07/0.9843, allocations: 0 / 1.231 GB, free: 39.7 MB / 0.6355 GB Notification: Performance of Templates: time 0.003366/0.9877, allocations: 0.5429 MB / 1.232 GB, free: 39.41 MB / 0.6355 GB