Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.841/4.841, allocations: 0.5623 GB / 0.5775 GB, free: 3.355 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003523/0.003523, allocations: 356.4 kB / 0.6446 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.277/4.277, allocations: 410.7 MB / 1.113 GB, free: 5.996 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001838/0.001837, allocations: 183.7 kB / 1.226 GB, free: 6.156 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.00051/0.0005102, allocations: 12 kB / 1.349 GB, free: 8.285 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7807/0.7812, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1962/0.9775, allocations: 137.8 MB / 1.596 GB, free: 146.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.9778, allocations: 68.95 kB / 1.596 GB, free: 146.4 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.004144/0.982, allocations: 1.04 MB / 1.597 GB, free: 145.4 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.004e-06/0.982, allocations: 0 / 1.597 GB, free: 145.4 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.982, allocations: 5.594 kB / 1.597 GB, free: 145.4 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004805/0.9825, allocations: 359.7 kB / 1.597 GB, free: 145 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.9826, allocations: 16.19 kB / 1.597 GB, free: 144.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.9826, allocations: 0 / 1.597 GB, free: 144.9 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.68e-05/0.9827, allocations: 173.6 kB / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.9828, allocations: 0 / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.737e-05/0.9828, allocations: 4 kB / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.9831, allocations: 70.84 kB / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.9831, allocations: 0.5 kB / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.9831, allocations: 1.688 kB / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.9831, allocations: 3.938 kB / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002889/0.9834, allocations: 46.72 kB / 1.598 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004997/0.9839, allocations: 281.8 kB / 1.598 GB, free: 144.3 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001983/0.9841, allocations: 57.2 kB / 1.598 GB, free: 144.2 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.9843, allocations: 30.41 kB / 1.598 GB, free: 144.2 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.9844, allocations: 4 kB / 1.598 GB, free: 144.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.9846, allocations: 76.14 kB / 1.598 GB, free: 144.1 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=5): time 2.174e-06/0.9846, allocations: 2.562 kB / 1.598 GB, free: 144.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=5): time 0.000576/0.9852, allocations: 122.7 kB / 1.598 GB, free: 144 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.9853, allocations: 56.03 kB / 1.598 GB, free: 143.9 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.819e-05/0.9854, allocations: 118.5 kB / 1.598 GB, free: 143.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.9854, allocations: 25.7 kB / 1.598 GB, free: 143.8 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.226e-05/0.9854, allocations: 93.34 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.9855, allocations: 11.8 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.905e-06/0.9855, allocations: 4 kB / 1.598 GB, free: 143.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.06e-05/0.9856, allocations: 316.2 kB / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.9858, allocations: 29.56 kB / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.9859, allocations: 48.77 kB / 1.599 GB, free: 143.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.9861, allocations: 38.41 kB / 1.599 GB, free: 143.2 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.9862, allocations: 0.75 kB / 1.599 GB, free: 143.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004053/0.9866, allocations: 112 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.9866, allocations: 5.25 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.9866, allocations: 4 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.9866, allocations: 0 / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.9868, allocations: 16.95 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.435e-06/0.9868, allocations: 5.25 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.987, allocations: 12.97 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.987, allocations: 4.5 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.643e-05/0.9871, allocations: 118.6 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.9871, allocations: 5.906 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004006/0.9875, allocations: 102.4 kB / 1.599 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.9876, allocations: 1.875 kB / 1.599 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.9876, allocations: 0 / 1.599 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.9876, allocations: 0 / 1.599 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005324/0.9881, allocations: 356.7 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.9881, allocations: 0 / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.9883, allocations: 12.81 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.9883, allocations: 2.547 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.9883, allocations: 12.36 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.9883, allocations: 0 / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.9883, allocations: 3.953 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003693/0.9887, allocations: 194.6 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.645e-05/0.9887, allocations: 78.14 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.9888, allocations: 3.938 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.9889, allocations: 15.02 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.989, allocations: 0 / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.989, allocations: 11.94 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.876e-05/0.989, allocations: 83.28 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.41e-07/0.9891, allocations: 0 / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003178/0.9894, allocations: 20 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001555/0.9895, allocations: 108.9 kB / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003927/0.99, allocations: 70.45 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.99, allocations: 0 / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.9901, allocations: 29.95 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.9905, allocations: 13.84 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.9909, allocations: 138.6 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001283/0.991, allocations: 0.6946 MB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.253e-05/0.9911, allocations: 0 / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.297e-05/0.9911, allocations: 11.44 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of SimCode: time 1.192e-06/0.9911, allocations: 0 / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of Templates: time 0.00348/0.9946, allocations: 0.6389 MB / 1.602 GB, free: 140.3 MB / 0.8542 GB