Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.588/1.588, allocations: 285.4 MB / 298 MB, free: 5.988 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009431/0.0009431, allocations: 180.8 kB / 366.4 MB, free: 2.09 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 205.1 MB / 0.6248 GB, free: 7.758 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008221/0.0008221, allocations: 98.06 kB / 0.738 GB, free: 40.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.791e-05/3.84e-05, allocations: 4 kB / 0.8583 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6854/0.6855, allocations: 115.3 MB / 0.9709 GB, free: 77.77 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2038/0.8893, allocations: 137.9 MB / 1.106 GB, free: 13.94 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.8896, allocations: 67.91 kB / 1.106 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.003051/0.8927, allocations: 1.044 MB / 1.107 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8927, allocations: 3.938 kB / 1.107 GB, free: 12.85 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.8927, allocations: 0 / 1.107 GB, free: 12.85 MB / 0.7136 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.000414/0.8932, allocations: 355.4 kB / 1.107 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.8932, allocations: 10.69 kB / 1.107 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.059e-05/0.8933, allocations: 7.906 kB / 1.107 GB, free: 12.44 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.8934, allocations: 163 kB / 1.107 GB, free: 12.24 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.8934, allocations: 4 kB / 1.107 GB, free: 12.24 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.8934, allocations: 0 / 1.107 GB, free: 12.24 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.8936, allocations: 49.69 kB / 1.107 GB, free: 12.18 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.8936, allocations: 4.625 kB / 1.107 GB, free: 12.18 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.8936, allocations: 0 / 1.107 GB, free: 12.18 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.8936, allocations: 0 / 1.107 GB, free: 12.18 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.106e-05/0.8937, allocations: 21.91 kB / 1.107 GB, free: 12.16 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004454/0.8941, allocations: 278.5 kB / 1.107 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.57e-05/0.8942, allocations: 36.08 kB / 1.108 GB, free: 11.8 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.145e-05/0.8943, allocations: 12.86 kB / 1.108 GB, free: 11.79 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.8943, allocations: 0.625 kB / 1.108 GB, free: 11.79 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001045/0.8944, allocations: 63.22 kB / 1.108 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=5): time 2.825e-06/0.8944, allocations: 7.984 kB / 1.108 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5): time 0.0001756/0.8946, allocations: 55.25 kB / 1.108 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/0.8947, allocations: 59.39 kB / 1.108 GB, free: 11.58 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.79e-05/0.8948, allocations: 101 kB / 1.108 GB, free: 11.47 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.8948, allocations: 26.95 kB / 1.108 GB, free: 11.44 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.206e-05/0.8949, allocations: 88.05 kB / 1.108 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.193e-05/0.8949, allocations: 15.84 kB / 1.108 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-06/0.8949, allocations: 1.219 kB / 1.108 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001343/0.895, allocations: 318.8 kB / 1.108 GB, free: 11.02 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.131e-05/0.8951, allocations: 12.72 kB / 1.108 GB, free: 11 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.44e-05/0.8951, allocations: 40.22 kB / 1.108 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.154e-05/0.8952, allocations: 17.67 kB / 1.108 GB, free: 10.94 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.8952, allocations: 4.797 kB / 1.108 GB, free: 10.94 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001309/0.8954, allocations: 81.03 kB / 1.108 GB, free: 10.86 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.8954, allocations: 4 kB / 1.108 GB, free: 10.85 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.8954, allocations: 0.9688 kB / 1.108 GB, free: 10.85 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.8954, allocations: 4 kB / 1.108 GB, free: 10.85 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.8955, allocations: 20.67 kB / 1.108 GB, free: 10.83 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.8956, allocations: 0.5625 kB / 1.108 GB, free: 10.83 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.559e-05/0.8957, allocations: 12.8 kB / 1.108 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.8957, allocations: 4.594 kB / 1.108 GB, free: 10.81 MB / 0.7136 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 () * 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 9.541e-05/0.8958, allocations: 112.5 kB / 1.109 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.8958, allocations: 4 kB / 1.109 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.896, allocations: 77.61 kB / 1.109 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.896, allocations: 0 / 1.109 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.896, allocations: 0 / 1.109 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.896, allocations: 4.125 kB / 1.109 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002772/0.8963, allocations: 308.3 kB / 1.109 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.8963, allocations: 0 / 1.109 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-05/0.8964, allocations: 19.98 kB / 1.109 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.8964, allocations: 0 / 1.109 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.8964, allocations: 0 / 1.109 GB, free: 10.23 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.8964, allocations: 3.938 kB / 1.109 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8964, allocations: 1.875 kB / 1.109 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.8966, allocations: 162.2 kB / 1.109 GB, free: 10.05 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.8966, allocations: 81.02 kB / 1.109 GB, free: 9.953 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.381e-05/0.8967, allocations: 4 kB / 1.109 GB, free: 9.949 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.085e-05/0.8968, allocations: 11.98 kB / 1.109 GB, free: 9.938 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.8968, allocations: 0 / 1.109 GB, free: 9.938 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.8968, allocations: 7.938 kB / 1.109 GB, free: 9.93 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.082e-05/0.8969, allocations: 91.27 kB / 1.109 GB, free: 9.84 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8969, allocations: 0 / 1.109 GB, free: 9.84 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002505/0.8971, allocations: 19.94 kB / 1.109 GB, free: 9.82 MB / 0.7136 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) * 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.000194/0.8973, allocations: 115.1 kB / 1.109 GB, free: 9.699 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001242/0.8975, allocations: 36 kB / 1.109 GB, free: 9.664 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.8975, allocations: 0 / 1.109 GB, free: 9.664 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.092e-05/0.8975, allocations: 13.34 kB / 1.109 GB, free: 9.652 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/0.8977, allocations: 12.25 kB / 1.109 GB, free: 9.641 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000281/0.898, allocations: 83.31 kB / 1.11 GB, free: 9.539 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.8983, allocations: 0.6848 MB / 1.11 GB, free: 8.828 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.604e-05/0.8983, allocations: 4 kB / 1.11 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.633e-05/0.8984, allocations: 11.42 kB / 1.11 GB, free: 8.812 MB / 0.7136 GB Notification: Performance of SimCode: time 2.5e-07/0.8984, allocations: 0 / 1.11 GB, free: 8.812 MB / 0.7136 GB Notification: Performance of Templates: time 0.002833/0.9012, allocations: 0.6314 MB / 1.111 GB, free: 8.219 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)