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.411/2.411, allocations: 253.2 MB / 260.6 MB, free: 7.488 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.001499/0.001499, allocations: 179.5 kB / 319.9 MB, free: 3.031 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.343/2.343, allocations: 205.6 MB / 0.5708 GB, free: 15.24 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.001162/0.001162, allocations: 82.64 kB / 0.6751 GB, free: 4.609 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.138e-05/2.134e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2067, allocations: 106.3 MB / 0.8887 GB, free: 11.82 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8795/1.086, allocations: 131.6 MB / 1.017 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003228/1.087, allocations: 69.08 kB / 1.017 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004627/1.091, allocations: 0.8655 MB / 1.018 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.174e-06/1.091, allocations: 4 kB / 1.018 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.862e-05/1.091, allocations: 0 / 1.018 GB, free: 4.781 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.0007973/1.092, allocations: 355.7 kB / 1.019 GB, free: 4.395 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/1.092, allocations: 12.02 kB / 1.019 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.424e-05/1.092, allocations: 7.906 kB / 1.019 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/1.093, allocations: 170.9 kB / 1.019 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/1.093, allocations: 8 kB / 1.019 GB, free: 4.16 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/1.093, allocations: 0 / 1.019 GB, free: 4.16 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001425/1.093, allocations: 18.81 kB / 1.019 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001658/1.093, allocations: 49.61 kB / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/1.093, allocations: 0 / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/1.093, allocations: 0 / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/1.093, allocations: 4 kB / 1.019 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006448/1.094, allocations: 257.2 kB / 1.019 GB, free: 3.824 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001643/1.094, allocations: 45.5 kB / 1.019 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.958e-05/1.094, allocations: 16.42 kB / 1.019 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/1.094, allocations: 0 / 1.019 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001869/1.094, allocations: 64.41 kB / 1.019 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.775e-06/1.094, allocations: 4 kB / 1.019 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0003041/1.095, allocations: 63.41 kB / 1.019 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.632e-05/1.095, allocations: 59.34 kB / 1.019 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/1.095, allocations: 104.6 kB / 1.019 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/1.095, allocations: 28.89 kB / 1.019 GB, free: 3.426 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.978e-05/1.095, allocations: 80.14 kB / 1.019 GB, free: 3.344 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/1.095, allocations: 15.06 kB / 1.019 GB, free: 3.332 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.446e-06/1.095, allocations: 0 / 1.019 GB, free: 3.332 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001723/1.095, allocations: 316.8 kB / 1.02 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.336e-05/1.095, allocations: 17.69 kB / 1.02 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/1.095, allocations: 38.67 kB / 1.02 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.935e-05/1.096, allocations: 15.55 kB / 1.02 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/1.096, allocations: 4 kB / 1.02 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002762/1.096, allocations: 80.28 kB / 1.02 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/1.096, allocations: 4 kB / 1.02 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/1.096, allocations: 4 kB / 1.02 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/1.096, allocations: 0 / 1.02 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/1.096, allocations: 23.53 kB / 1.02 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/1.096, allocations: 4 kB / 1.02 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/1.096, allocations: 16.08 kB / 1.02 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/1.096, allocations: 7.953 kB / 1.02 GB, free: 2.809 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.0001221/1.097, allocations: 108.9 kB / 1.02 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.957e-05/1.097, allocations: 7.906 kB / 1.02 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002549/1.097, allocations: 68.25 kB / 1.02 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.097, allocations: 0 / 1.02 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/1.097, allocations: 3.984 kB / 1.02 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/1.097, allocations: 4 kB / 1.02 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000506/1.097, allocations: 302.6 kB / 1.02 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/1.097, allocations: 0 / 1.02 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/1.098, allocations: 13.8 kB / 1.02 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.329e-06/1.098, allocations: 0 / 1.02 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/1.098, allocations: 0 / 1.02 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/1.098, allocations: 0 / 1.02 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/1.098, allocations: 4 kB / 1.02 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/1.098, allocations: 168.3 kB / 1.021 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/1.098, allocations: 81.02 kB / 1.021 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.004e-05/1.098, allocations: 12.11 kB / 1.021 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/1.098, allocations: 8 kB / 1.021 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/1.098, allocations: 7.922 kB / 1.021 GB, free: 1.988 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/1.098, allocations: 4.25 kB / 1.021 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.699e-05/1.099, allocations: 83.3 kB / 1.021 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.01e-07/1.099, allocations: 4 kB / 1.021 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005659/1.099, allocations: 8 kB / 1.021 GB, free: 1.895 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.0001704/1.099, allocations: 105.1 kB / 1.021 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000215/1.1, allocations: 42.38 kB / 1.021 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/1.1, allocations: 0 / 1.021 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.061e-05/1.1, allocations: 15.89 kB / 1.021 GB, free: 1.742 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/1.1, allocations: 8.297 kB / 1.021 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003661/1.1, allocations: 87.09 kB / 1.021 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003729/1.101, allocations: 0.6846 MB / 1.022 GB, free: 0.918 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.8e-05/1.101, allocations: 4.172 kB / 1.022 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.376e-05/1.101, allocations: 15.38 kB / 1.022 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of SimCode: time 7.81e-07/1.101, allocations: 0 / 1.022 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of Templates: time 0.004251/1.105, allocations: 0.5255 MB / 1.022 GB, free: 404 kB / 0.6355 GB