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.01068/0.01068, allocations: 217.6 kB / 15.17 MB, free: 6.016 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.001132/0.001132, allocations: 186.5 kB / 16.07 MB, free: 5.875 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.857/3.857, allocations: 389.1 MB / 405.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.437/4.437, allocations: 472.3 MB / 0.9018 GB, free: 3.613 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004839/0.0004841, allocations: 12 kB / 1.008 GB, free: 10.24 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5687/0.5692, allocations: 98.7 MB / 1.104 GB, free: 212.9 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001389/0.5707, allocations: 1.093 MB / 1.105 GB, free: 212.4 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.0004292/0.5711, allocations: 217.2 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.949e-05/0.5712, allocations: 0 / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 1.335e-05/0.5712, allocations: 1.594 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 5.965e-05/0.5713, allocations: 7.281 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001545/0.5715, allocations: 20.39 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 6.856e-05/0.5715, allocations: 42.33 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 8.438e-05/0.5716, allocations: 7.312 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 5.427e-05/0.5717, allocations: 18.23 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 4.358e-05/0.5718, allocations: 16.64 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.5718, allocations: 4.938 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 1.165e-05/0.5718, allocations: 3.125 kB / 1.105 GB, free: 212.2 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 1.516e-05/0.5718, allocations: 8.797 kB / 1.105 GB, free: 212.1 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 2.581e-05/0.5719, allocations: 35.89 kB / 1.105 GB, free: 212.1 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 6.438e-05/0.5719, allocations: 30.8 kB / 1.105 GB, free: 212.1 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.572, allocations: 0 / 1.105 GB, free: 212.1 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.031e-06/0.572, allocations: 0 / 1.105 GB, free: 212.1 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.644e-06/0.572, allocations: 3.938 kB / 1.106 GB, free: 212.1 MB / 0.7292 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.0004506/0.5724, allocations: 363.5 kB / 1.106 GB, free: 211.7 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.5725, allocations: 8.844 kB / 1.106 GB, free: 211.7 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.5725, allocations: 4.234 kB / 1.106 GB, free: 211.7 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.17e-05/0.5726, allocations: 172.5 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.5726, allocations: 4.938 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.5727, allocations: 6.719 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.5729, allocations: 66.72 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.853e-06/0.5729, allocations: 0 / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.5729, allocations: 1.031 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.968e-06/0.5729, allocations: 4.312 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.5732, allocations: 50.62 kB / 1.106 GB, free: 211.5 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003818/0.5736, allocations: 282.6 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.5738, allocations: 66.75 kB / 1.106 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.5739, allocations: 39.52 kB / 1.107 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.5739, allocations: 0 / 1.107 GB, free: 211.2 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.5742, allocations: 77.39 kB / 1.107 GB, free: 211.1 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=6): time 2.438e-06/0.5742, allocations: 1.969 kB / 1.107 GB, free: 211.1 MB / 0.7292 GB Notification: Performance of matching and sorting (n=6): time 0.0004735/0.5747, allocations: 137.1 kB / 1.107 GB, free: 211.1 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.5747, allocations: 59.36 kB / 1.107 GB, free: 211 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.784e-05/0.5748, allocations: 107.5 kB / 1.107 GB, free: 210.9 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.5748, allocations: 28.42 kB / 1.107 GB, free: 210.8 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.534e-05/0.5748, allocations: 93.05 kB / 1.107 GB, free: 210.8 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.5749, allocations: 11.44 kB / 1.107 GB, free: 210.8 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.812e-06/0.5749, allocations: 4 kB / 1.107 GB, free: 210.7 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.276e-05/0.575, allocations: 313.8 kB / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.5751, allocations: 29.64 kB / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.5753, allocations: 66.84 kB / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.5754, allocations: 44.39 kB / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.89e-06/0.5754, allocations: 0 / 1.107 GB, free: 210.4 MB / 0.7292 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003653/0.5758, allocations: 112.3 kB / 1.108 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.5758, allocations: 4.859 kB / 1.108 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.632e-06/0.5759, allocations: 1.406 kB / 1.108 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.5759, allocations: 2.781 kB / 1.108 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.576, allocations: 18.77 kB / 1.108 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.684e-06/0.576, allocations: 10.14 kB / 1.108 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.115e-05/0.5761, allocations: 22.19 kB / 1.108 GB, free: 210.3 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.5762, allocations: 2.656 kB / 1.108 GB, free: 210.3 MB / 0.7292 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 7.366e-05/0.5763, allocations: 113.8 kB / 1.108 GB, free: 210.2 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.797e-05/0.5763, allocations: 3.781 kB / 1.108 GB, free: 210.2 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003449/0.5766, allocations: 113.7 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.425e-06/0.5767, allocations: 2.875 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.657e-06/0.5767, allocations: 4.188 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.5767, allocations: 7.75 kB / 1.108 GB, free: 210.1 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004899/0.5772, allocations: 359.2 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.015e-06/0.5772, allocations: 8.375 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-05/0.5773, allocations: 8.469 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.5773, allocations: 6.734 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.5773, allocations: 5.25 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.964e-06/0.5773, allocations: 8.234 kB / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5774, allocations: 0 / 1.108 GB, free: 209.8 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.5777, allocations: 192.7 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.38e-05/0.5777, allocations: 83.45 kB / 1.108 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.5778, allocations: 3.047 kB / 1.109 GB, free: 209.6 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.5779, allocations: 14.81 kB / 1.109 GB, free: 209.5 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.578, allocations: 9.875 kB / 1.109 GB, free: 209.5 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.578, allocations: 4.844 kB / 1.109 GB, free: 209.5 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.747e-05/0.578, allocations: 87.09 kB / 1.109 GB, free: 209.5 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6.54e-07/0.578, allocations: 0 / 1.109 GB, free: 209.5 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.00033/0.5784, allocations: 11.16 kB / 1.109 GB, free: 209.5 MB / 0.7292 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.0001015/0.5785, allocations: 114.4 kB / 1.109 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000296/0.5788, allocations: 77.91 kB / 1.109 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.477e-06/0.5788, allocations: 0 / 1.109 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.579, allocations: 39.08 kB / 1.109 GB, free: 209.4 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.5793, allocations: 8.125 kB / 1.109 GB, free: 209.3 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003567/0.5797, allocations: 149.7 kB / 1.109 GB, free: 209.2 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.5798, allocations: 0.6854 MB / 1.11 GB, free: 208.5 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.81e-05/0.5799, allocations: 5.469 kB / 1.11 GB, free: 208.5 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.5799, allocations: 10.59 kB / 1.11 GB, free: 208.5 MB / 0.7292 GB Notification: Performance of SimCode: time 1.526e-06/0.5799, allocations: 0 / 1.11 GB, free: 208.5 MB / 0.7292 GB Notification: Performance of Templates: time 0.003226/0.5832, allocations: 0.5659 MB / 1.11 GB, free: 208.5 MB / 0.7292 GB