Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.387/2.387, allocations: 252.6 MB / 265.2 MB, free: 5.684 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001484/0.001484, allocations: 193.4 kB / 324.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.173/2.173, allocations: 205.4 MB / 0.5754 GB, free: 10.49 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 90.16 kB / 0.6797 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.316e-05, allocations: 4 kB / 0.7911 GB, free: 96.61 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2154, allocations: 106.2 MB / 0.8949 GB, free: 6.273 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8936/1.109, allocations: 131.4 MB / 1.023 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/1.109, allocations: 69.33 kB / 1.023 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003618/1.113, allocations: 0.8668 MB / 1.024 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.613e-06/1.113, allocations: 4 kB / 1.024 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.426e-06/1.113, allocations: 0 / 1.024 GB, free: 2.297 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.0006126/1.114, allocations: 354.3 kB / 1.024 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/1.114, allocations: 8.031 kB / 1.024 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.683e-05/1.114, allocations: 8.781 kB / 1.024 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/1.114, allocations: 175.5 kB / 1.025 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/1.114, allocations: 7.188 kB / 1.025 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/1.114, allocations: 4 kB / 1.025 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/1.114, allocations: 52.42 kB / 1.025 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/1.114, allocations: 0 / 1.025 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/1.114, allocations: 0 / 1.025 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/1.114, allocations: 0 / 1.025 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.418e-05/1.114, allocations: 26.66 kB / 1.025 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005334/1.115, allocations: 281.7 kB / 1.025 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/1.115, allocations: 45.06 kB / 1.025 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.96e-05/1.115, allocations: 19.73 kB / 1.025 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-05/1.115, allocations: 4 kB / 1.025 GB, free: 1.23 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001584/1.115, allocations: 67.64 kB / 1.025 GB, free: 1.164 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.974e-06/1.115, allocations: 0 / 1.025 GB, free: 1.164 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002523/1.116, allocations: 76.05 kB / 1.025 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/1.116, allocations: 55.39 kB / 1.025 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.439e-05/1.116, allocations: 96.25 kB / 1.025 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/1.116, allocations: 25.7 kB / 1.025 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.276e-05/1.116, allocations: 87.77 kB / 1.025 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/1.116, allocations: 14.92 kB / 1.025 GB, free: 0.8008 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-06/1.116, allocations: 4 kB / 1.025 GB, free: 0.7969 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001299/1.116, allocations: 322.2 kB / 1.026 GB, free: 488 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.76e-05/1.116, allocations: 11.56 kB / 1.026 GB, free: 480 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.223e-05/1.116, allocations: 45.67 kB / 1.026 GB, free: 424 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.813e-05/1.116, allocations: 22.61 kB / 1.026 GB, free: 408 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/1.116, allocations: 0 / 1.026 GB, free: 408 kB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002024/1.117, allocations: 87.03 kB / 1.026 GB, free: 324 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/1.117, allocations: 4 kB / 1.026 GB, free: 320 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/1.117, allocations: 0 / 1.026 GB, free: 320 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/1.117, allocations: 4 kB / 1.026 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/1.117, allocations: 15.98 kB / 1.026 GB, free: 300 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/1.117, allocations: 8.109 kB / 1.026 GB, free: 292 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/1.117, allocations: 19.17 kB / 1.026 GB, free: 276 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/1.117, allocations: 4 kB / 1.026 GB, free: 272 kB / 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 9.942e-05/1.117, allocations: 111.7 kB / 1.026 GB, free: 156 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/1.117, allocations: 3.906 kB / 1.026 GB, free: 152 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002264/1.117, allocations: 82.17 kB / 1.026 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/1.117, allocations: 0 / 1.026 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/1.117, allocations: 4 kB / 1.026 GB, free: 68 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/1.117, allocations: 3.953 kB / 1.026 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004757/1.118, allocations: 330.1 kB / 1.027 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/1.118, allocations: 0 / 1.027 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/1.118, allocations: 11.98 kB / 1.027 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.954e-06/1.118, allocations: 4 kB / 1.027 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/1.118, allocations: 0 / 1.027 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/1.118, allocations: 4.141 kB / 1.027 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/1.118, allocations: 7.984 kB / 1.027 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002183/1.118, allocations: 169.2 kB / 1.027 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.048e-05/1.118, allocations: 81.02 kB / 1.027 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/1.118, allocations: 7.984 kB / 1.027 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/1.119, allocations: 8 kB / 1.027 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.588e-05/1.119, allocations: 7.938 kB / 1.027 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/1.119, allocations: 4 kB / 1.027 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.62e-05/1.119, allocations: 86.78 kB / 1.027 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.01e-07/1.119, allocations: 0 / 1.027 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003028/1.119, allocations: 11.12 kB / 1.027 GB, free: 15.3 MB / 0.6511 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.000157/1.119, allocations: 101.3 kB / 1.027 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001648/1.119, allocations: 45.25 kB / 1.027 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.12, allocations: 0 / 1.027 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.435e-05/1.12, allocations: 18.69 kB / 1.027 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/1.12, allocations: 10.41 kB / 1.027 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003258/1.12, allocations: 91.22 kB / 1.027 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/1.121, allocations: 0.6926 MB / 1.028 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.75e-05/1.121, allocations: 192 / 1.028 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.688e-05/1.121, allocations: 11.44 kB / 1.028 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of SimCode: time 9.22e-07/1.121, allocations: 0 / 1.028 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of Templates: time 0.003514/1.124, allocations: 0.5618 MB / 1.028 GB, free: 13.76 MB / 0.6511 GB