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.908/4.908, allocations: 0.5623 GB / 0.5769 GB, free: 3.352 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.002547/0.002547, allocations: 357.5 kB / 0.644 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.079/4.079, allocations: 410.7 MB / 1.112 GB, free: 5.938 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.001786/0.001786, allocations: 189.6 kB / 1.225 GB, free: 6.16 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004868/0.000487, allocations: 12 kB / 1.348 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6376/0.6381, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0007301/0.6389, allocations: 398.8 kB / 1.461 GB, free: 284 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.64, allocations: 1.02 MB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.5e-05/0.6401, allocations: 4 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.068e-05/0.6401, allocations: 3.938 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 6.758e-05/0.6402, allocations: 3.984 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.6404, allocations: 28.64 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 6.589e-05/0.6405, allocations: 39.91 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 8.56e-05/0.6406, allocations: 17.27 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 5.238e-05/0.6407, allocations: 7.984 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 4.838e-05/0.6407, allocations: 21.98 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.6408, allocations: 0 / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.082e-05/0.6408, allocations: 15.98 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.6409, allocations: 7.922 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 2.557e-05/0.6409, allocations: 33.7 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 8.298e-05/0.641, allocations: 32.48 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 5.328e-06/0.641, allocations: 0 / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.149e-06/0.641, allocations: 6.938 kB / 1.462 GB, free: 282.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.221e-06/0.641, allocations: 4 kB / 1.462 GB, free: 282.8 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.0004244/0.6415, allocations: 353.4 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.6415, allocations: 11.62 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.6416, allocations: 5.062 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.828e-05/0.6417, allocations: 174.9 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.6417, allocations: 4 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.6417, allocations: 1.062 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.6419, allocations: 70.86 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.607e-06/0.6419, allocations: 0 / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.642, allocations: 2.094 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.851e-06/0.642, allocations: 5.5 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.6422, allocations: 45.2 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004223/0.6426, allocations: 275.5 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.6428, allocations: 59.42 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.6429, allocations: 30.56 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.643, allocations: 7.969 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.6432, allocations: 70.02 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=5): time 2.794e-06/0.6432, allocations: 0 / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=5): time 0.0004257/0.6437, allocations: 129.3 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.6437, allocations: 55.39 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.572e-05/0.6438, allocations: 110.4 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.6438, allocations: 34.97 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.62e-05/0.6439, allocations: 88.08 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.6439, allocations: 11.81 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.083e-06/0.6439, allocations: 4.688 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.485e-05/0.644, allocations: 317.2 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.6441, allocations: 23.98 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.6442, allocations: 53.66 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.6444, allocations: 33.89 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.723e-06/0.6444, allocations: 0 / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003169/0.6447, allocations: 114.4 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.6448, allocations: 7.984 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.84e-06/0.6448, allocations: 0 / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.6448, allocations: 4 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.6449, allocations: 19.92 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.381e-06/0.645, allocations: 1.719 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.89e-05/0.6451, allocations: 11.95 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.6451, allocations: 4 kB / 1.464 GB, free: 280.5 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.163e-05/0.6452, allocations: 120.1 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.845e-05/0.6452, allocations: 8.875 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003184/0.6455, allocations: 96.03 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.841e-06/0.6456, allocations: 0 / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.144e-06/0.6456, allocations: 7.984 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.497e-06/0.6456, allocations: 0.5 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004531/0.6461, allocations: 353.5 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.363e-06/0.6461, allocations: 1.625 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.169e-05/0.6462, allocations: 15.98 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.912e-06/0.6462, allocations: 0 / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.6462, allocations: 5.375 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.063e-06/0.6462, allocations: 0 / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.233e-06/0.6462, allocations: 3.953 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.6465, allocations: 195 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.464e-05/0.6466, allocations: 82.38 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.316e-05/0.6466, allocations: 3.984 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.6467, allocations: 5.031 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.692e-05/0.6468, allocations: 8.516 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.6468, allocations: 5.391 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.907e-05/0.6469, allocations: 87.75 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8.14e-07/0.6469, allocations: 3.938 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003395/0.6472, allocations: 8 kB / 1.465 GB, free: 279.4 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.000138/0.6474, allocations: 108.7 kB / 1.465 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000294/0.6477, allocations: 66.61 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.25e-06/0.6477, allocations: 0.5 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.6479, allocations: 33.27 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.6482, allocations: 16.81 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003258/0.6485, allocations: 142.9 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.6487, allocations: 0.6848 MB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.864e-05/0.6487, allocations: 7.938 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.702e-05/0.6488, allocations: 7.938 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of SimCode: time 1.541e-06/0.6488, allocations: 1.438 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of Templates: time 0.00331/0.6521, allocations: 0.6382 MB / 1.467 GB, free: 277.7 MB / 0.8542 GB