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.7/1.7, allocations: 285.6 MB / 293.1 MB, free: 10.19 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.001044/0.001044, allocations: 180.9 kB / 361.4 MB, free: 6.832 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.5/1.5, allocations: 205.2 MB / 0.62 GB, free: 11.65 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.0008297/0.0008298, allocations: 101.5 kB / 0.733 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.6e-05/1.602e-05, allocations: 4 kB / 0.8518 GB, free: 2.719 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7373/0.7373, allocations: 115.3 MB / 0.9644 GB, free: 78.91 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.204/0.9413, allocations: 137.2 MB / 1.098 GB, free: 2.613 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.9417, allocations: 75.7 kB / 1.098 GB, free: 2.543 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003152/0.9449, allocations: 1.028 MB / 1.099 GB, free: 1.535 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.182e-06/0.9449, allocations: 0.5625 kB / 1.099 GB, free: 1.535 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.9449, allocations: 4 kB / 1.099 GB, free: 1.531 MB / 0.698 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.0004502/0.9454, allocations: 348.2 kB / 1.1 GB, free: 1.148 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.9454, allocations: 12.66 kB / 1.1 GB, free: 1.137 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.84e-05/0.9455, allocations: 8.938 kB / 1.1 GB, free: 1.129 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.9456, allocations: 175.4 kB / 1.1 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.9456, allocations: 0 / 1.1 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.189e-05/0.9456, allocations: 0.75 kB / 1.1 GB, free: 0.9219 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.231e-05/0.9457, allocations: 20 kB / 1.1 GB, free: 0.9023 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.734e-05/0.9459, allocations: 45.69 kB / 1.1 GB, free: 0.8555 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.9459, allocations: 0 / 1.1 GB, free: 0.8555 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.9459, allocations: 4.172 kB / 1.1 GB, free: 0.8555 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.9459, allocations: 0 / 1.1 GB, free: 0.8555 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000453/0.9464, allocations: 263.9 kB / 1.1 GB, free: 0.5625 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.922e-05/0.9464, allocations: 30.56 kB / 1.1 GB, free: 0.5234 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.836e-05/0.9465, allocations: 13.67 kB / 1.1 GB, free: 0.5078 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.9465, allocations: 4.594 kB / 1.1 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001036/0.9466, allocations: 56.34 kB / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.393e-06/0.9466, allocations: 0.5625 kB / 1.1 GB, free: 448 kB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0001649/0.9468, allocations: 57.62 kB / 1.1 GB, free: 384 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.9469, allocations: 57.69 kB / 1.1 GB, free: 316 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.542e-05/0.9469, allocations: 93 kB / 1.101 GB, free: 216 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.947, allocations: 33.53 kB / 1.101 GB, free: 180 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.346e-05/0.947, allocations: 84.05 kB / 1.101 GB, free: 92 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.9471, allocations: 16.42 kB / 1.101 GB, free: 76 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-06/0.9471, allocations: 4 kB / 1.101 GB, free: 72 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001841/0.9473, allocations: 315.4 kB / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.567e-05/0.9473, allocations: 9.344 kB / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.634e-05/0.9474, allocations: 43.8 kB / 1.101 GB, free: 15.7 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.9475, allocations: 19.89 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.9475, allocations: 0.875 kB / 1.101 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001879/0.9477, allocations: 83.39 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.9478, allocations: 4 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.9478, allocations: 0 / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.9478, allocations: 4 kB / 1.101 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.9479, allocations: 24.73 kB / 1.101 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.948, allocations: 3.938 kB / 1.101 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8e-05/0.948, allocations: 11.98 kB / 1.101 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.9481, allocations: 4 kB / 1.101 GB, free: 15.55 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 8.583e-05/0.9482, allocations: 104.9 kB / 1.101 GB, free: 15.44 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.9482, allocations: 4 kB / 1.101 GB, free: 15.43 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001441/0.9483, allocations: 69.92 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.9483, allocations: 1.312 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.9484, allocations: 1.875 kB / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.9484, allocations: 0 / 1.101 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002981/0.9487, allocations: 286.4 kB / 1.102 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.9487, allocations: 3.984 kB / 1.102 GB, free: 15.04 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.727e-05/0.9488, allocations: 12.12 kB / 1.102 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.9488, allocations: 4 kB / 1.102 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.9488, allocations: 3.938 kB / 1.102 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.9488, allocations: 3.984 kB / 1.102 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.9488, allocations: 0 / 1.102 GB, free: 15.01 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000165/0.949, allocations: 155.5 kB / 1.102 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.647e-05/0.9491, allocations: 81.02 kB / 1.102 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.9491, allocations: 8 kB / 1.102 GB, free: 14.74 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.812e-05/0.9492, allocations: 7.984 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.708e-05/0.9492, allocations: 4 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.9493, allocations: 3.938 kB / 1.102 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.575e-05/0.9493, allocations: 83.28 kB / 1.102 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9493, allocations: 0 / 1.102 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.00024/0.9496, allocations: 23.92 kB / 1.102 GB, free: 14.62 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.0002023/0.9498, allocations: 111.6 kB / 1.102 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001105/0.9499, allocations: 33.25 kB / 1.102 GB, free: 14.47 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.9499, allocations: 0 / 1.102 GB, free: 14.47 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.889e-05/0.9499, allocations: 19.92 kB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.9502, allocations: 14.16 kB / 1.102 GB, free: 14.44 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002632/0.9504, allocations: 74.34 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.9508, allocations: 0.6926 MB / 1.103 GB, free: 13.63 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.456e-05/0.9508, allocations: 0 / 1.103 GB, free: 13.63 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.794e-05/0.9508, allocations: 11.44 kB / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of SimCode: time 3.11e-07/0.9508, allocations: 0 / 1.103 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of Templates: time 0.002826/0.9537, allocations: 0.602 MB / 1.104 GB, free: 13.06 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)