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.276/2.276, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001537/0.001536, allocations: 175.6 kB / 325.6 MB, free: 2.824 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.454/2.454, allocations: 205.4 MB / 0.5766 GB, free: 20.72 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.001167/0.001167, allocations: 104.2 kB / 0.6811 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004586/0.0004587, allocations: 10.88 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.2075, allocations: 106.2 MB / 0.8989 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2179/0.4255, allocations: 131.5 MB / 1.027 GB, free: 13.81 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.4258, allocations: 79.94 kB / 1.027 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003566/0.4294, allocations: 0.8606 MB / 1.028 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.265e-06/0.4294, allocations: 0 / 1.028 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.4295, allocations: 0 / 1.028 GB, free: 12.87 MB / 0.6823 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.0006172/0.4301, allocations: 367.2 kB / 1.029 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.4302, allocations: 12.03 kB / 1.029 GB, free: 12.45 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.422e-05/0.4302, allocations: 7.844 kB / 1.029 GB, free: 12.44 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.4304, allocations: 178.9 kB / 1.029 GB, free: 12.23 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.4304, allocations: 7.922 kB / 1.029 GB, free: 12.22 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.4305, allocations: 4 kB / 1.029 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002788/0.4308, allocations: 65.67 kB / 1.029 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.4308, allocations: 0 / 1.029 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.4308, allocations: 7.984 kB / 1.029 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.4308, allocations: 0 / 1.029 GB, free: 12.14 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003216/0.4312, allocations: 47.97 kB / 1.029 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005215/0.4317, allocations: 288.7 kB / 1.029 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.432, allocations: 58.61 kB / 1.029 GB, free: 11.69 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.432, allocations: 4 kB / 1.029 GB, free: 11.69 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000307/0.4323, allocations: 83.5 kB / 1.029 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 2.034e-06/0.4323, allocations: 0 / 1.029 GB, free: 11.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.000643/0.433, allocations: 129.6 kB / 1.029 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.4331, allocations: 55.36 kB / 1.029 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.809e-05/0.4332, allocations: 101.1 kB / 1.03 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.4332, allocations: 33.69 kB / 1.03 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.042e-05/0.4333, allocations: 88.05 kB / 1.03 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.098e-05/0.4333, allocations: 23.75 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.4333, allocations: 0 / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4335, allocations: 318.8 kB / 1.03 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.4337, allocations: 31.92 kB / 1.03 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.4339, allocations: 60.27 kB / 1.03 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.4341, allocations: 31.98 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.4341, allocations: 4 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004772/0.4346, allocations: 117.5 kB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.4346, allocations: 5.25 kB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.4346, allocations: 4.156 kB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.851e-05/0.4347, allocations: 4 kB / 1.03 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.4348, allocations: 19.98 kB / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.4349, allocations: 4.25 kB / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.435, allocations: 15.94 kB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.435, allocations: 4 kB / 1.03 GB, free: 10.5 MB / 0.6823 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 0.000113/0.4352, allocations: 121.8 kB / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.4352, allocations: 7.906 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004576/0.4357, allocations: 110.2 kB / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.4357, allocations: 0 / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.4357, allocations: 7.875 kB / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.4357, allocations: 0 / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000667/0.4364, allocations: 366.5 kB / 1.031 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4364, allocations: 0 / 1.031 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.4365, allocations: 11.98 kB / 1.031 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.4365, allocations: 4 kB / 1.031 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.4366, allocations: 0 / 1.031 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.4366, allocations: 0 / 1.031 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.4366, allocations: 3.953 kB / 1.031 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000462/0.4371, allocations: 208.2 kB / 1.031 GB, free: 9.594 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.4371, allocations: 77.11 kB / 1.031 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.4372, allocations: 4 kB / 1.031 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.4373, allocations: 11.98 kB / 1.031 GB, free: 9.484 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.4374, allocations: 7.953 kB / 1.031 GB, free: 9.477 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.4374, allocations: 0 / 1.031 GB, free: 9.477 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.952e-05/0.4375, allocations: 91.27 kB / 1.031 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.61e-07/0.4375, allocations: 0 / 1.031 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003004/0.4378, allocations: 12 kB / 1.031 GB, free: 9.375 MB / 0.6823 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.0001422/0.438, allocations: 99.25 kB / 1.031 GB, free: 9.266 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004789/0.4384, allocations: 76.08 kB / 1.031 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4385, allocations: 0 / 1.031 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.4387, allocations: 40.09 kB / 1.031 GB, free: 9.152 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.4389, allocations: 11.98 kB / 1.032 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004371/0.4394, allocations: 145.1 kB / 1.032 GB, free: 8.965 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.4397, allocations: 0.6887 MB / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.862e-05/0.4397, allocations: 192 / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.887e-05/0.4398, allocations: 15.38 kB / 1.032 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of SimCode: time 1.163e-06/0.4398, allocations: 0 / 1.032 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of Templates: time 0.003582/0.4434, allocations: 0.5555 MB / 1.033 GB, free: 7.688 MB / 0.6823 GB