Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.7.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.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.315/1.315, allocations: 252 MB / 267.9 MB, free: 10.94 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009532/0.0009533, allocations: 186.2 kB / 327.6 MB, free: 2.176 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.62/1.62, allocations: 205.4 MB / 0.5785 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008/0.0008, allocations: 80.27 kB / 0.6831 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.0003769, allocations: 12.59 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2131, allocations: 106.3 MB / 0.9012 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1564/0.3695, allocations: 131.7 MB / 1.03 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.3698, allocations: 75.89 kB / 1.03 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002234/0.3721, allocations: 0.8694 MB / 1.031 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.857e-06/0.3721, allocations: 0 / 1.031 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.3721, allocations: 3.938 kB / 1.031 GB, free: 10.93 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.0004302/0.3725, allocations: 359.4 kB / 1.031 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3726, allocations: 12.03 kB / 1.031 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.304e-05/0.3726, allocations: 8.844 kB / 1.031 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.3727, allocations: 176.2 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.3728, allocations: 384 / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.3728, allocations: 4.375 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001813/0.373, allocations: 66.22 kB / 1.031 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.373, allocations: 192 / 1.031 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.373, allocations: 7.938 kB / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.373, allocations: 0 / 1.031 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.3732, allocations: 51.97 kB / 1.031 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004002/0.3736, allocations: 284.7 kB / 1.032 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.3738, allocations: 66.55 kB / 1.032 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.514e-05/0.3739, allocations: 36.89 kB / 1.032 GB, free: 9.719 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.114e-05/0.3739, allocations: 11.98 kB / 1.032 GB, free: 9.707 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.3741, allocations: 75.27 kB / 1.032 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 1.263e-06/0.3742, allocations: 0 / 1.032 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0003891/0.3745, allocations: 133.6 kB / 1.032 GB, free: 9.484 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.3746, allocations: 55.41 kB / 1.032 GB, free: 9.418 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.791e-05/0.3747, allocations: 109.8 kB / 1.032 GB, free: 9.301 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.3747, allocations: 25.7 kB / 1.032 GB, free: 9.27 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.325e-05/0.3748, allocations: 92.12 kB / 1.032 GB, free: 9.176 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.3748, allocations: 15.75 kB / 1.032 GB, free: 9.16 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.3748, allocations: 8 kB / 1.032 GB, free: 9.152 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.375, allocations: 310.8 kB / 1.033 GB, free: 8.84 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.149e-05/0.3751, allocations: 31.97 kB / 1.033 GB, free: 8.809 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.3752, allocations: 68.2 kB / 1.033 GB, free: 8.727 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.3754, allocations: 96.14 kB / 1.033 GB, free: 8.617 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3754, allocations: 4 kB / 1.033 GB, free: 8.613 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000235/0.3756, allocations: 121.6 kB / 1.033 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3757, allocations: 8 kB / 1.033 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3757, allocations: 256 / 1.033 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3757, allocations: 0 / 1.033 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.924e-05/0.3758, allocations: 23.92 kB / 1.033 GB, free: 8.457 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.3758, allocations: 4 kB / 1.033 GB, free: 8.453 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.372e-05/0.3759, allocations: 19.92 kB / 1.033 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.3759, allocations: 4 kB / 1.033 GB, free: 8.43 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 9.211e-05/0.376, allocations: 123.4 kB / 1.033 GB, free: 8.301 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.376, allocations: 0 / 1.033 GB, free: 8.301 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002732/0.3763, allocations: 114 kB / 1.033 GB, free: 8.184 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3763, allocations: 0 / 1.033 GB, free: 8.184 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3763, allocations: 0 / 1.033 GB, free: 8.184 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3763, allocations: 0 / 1.033 GB, free: 8.184 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004223/0.3767, allocations: 370.5 kB / 1.034 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3768, allocations: 0 / 1.034 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-05/0.3768, allocations: 11.98 kB / 1.034 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3768, allocations: 0 / 1.034 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.3768, allocations: 0 / 1.034 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.3769, allocations: 0 / 1.034 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3769, allocations: 4 kB / 1.034 GB, free: 7.75 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002753/0.3771, allocations: 207.3 kB / 1.034 GB, free: 7.531 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.712e-05/0.3772, allocations: 77.3 kB / 1.034 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.3772, allocations: 3.938 kB / 1.034 GB, free: 7.434 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.631e-05/0.3773, allocations: 15.92 kB / 1.034 GB, free: 7.418 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.783e-05/0.3774, allocations: 12 kB / 1.034 GB, free: 7.406 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.3774, allocations: 12.11 kB / 1.034 GB, free: 7.395 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.866e-05/0.3774, allocations: 79.28 kB / 1.034 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3774, allocations: 0 / 1.034 GB, free: 7.316 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002189/0.3777, allocations: 15.91 kB / 1.034 GB, free: 7.301 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.0001208/0.3778, allocations: 95.25 kB / 1.034 GB, free: 7.199 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002375/0.378, allocations: 87.88 kB / 1.034 GB, free: 7.113 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.378, allocations: 0 / 1.034 GB, free: 7.113 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.471e-05/0.3781, allocations: 31.98 kB / 1.034 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.3784, allocations: 14.53 kB / 1.034 GB, free: 7.07 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003446/0.3787, allocations: 145.8 kB / 1.034 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.379, allocations: 0.6809 MB / 1.035 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.978e-05/0.3791, allocations: 4 kB / 1.035 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.849e-05/0.3791, allocations: 15.42 kB / 1.035 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of SimCode: time 2.31e-07/0.3791, allocations: 4 kB / 1.035 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of Templates: time 0.002472/0.3816, allocations: 0.5547 MB / 1.036 GB, free: 5.617 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)