Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.686/1.686, allocations: 293 MB / 309 MB, free: 4.809 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.0009818/0.0009816, allocations: 186.3 kB / 378.7 MB, free: 1.008 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.618/1.618, allocations: 205.4 MB / 0.6383 GB, free: 8.23 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.0008058/0.0008061, allocations: 94.89 kB / 0.7527 GB, free: 62.95 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003741/0.0003742, allocations: 12 kB / 0.8768 GB, free: 10.41 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2747, allocations: 116.4 MB / 0.9904 GB, free: 5.867 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7573/1.032, allocations: 139 MB / 1.126 GB, free: 34.77 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/1.032, allocations: 70.41 kB / 1.126 GB, free: 34.71 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.002727/1.035, allocations: 1.046 MB / 1.127 GB, free: 33.91 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.103e-06/1.035, allocations: 0 / 1.127 GB, free: 33.91 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.32e-06/1.035, allocations: 0 / 1.127 GB, free: 33.91 MB / 0.7292 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.0003363/1.035, allocations: 367.9 kB / 1.128 GB, free: 33.52 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/1.035, allocations: 8.031 kB / 1.128 GB, free: 33.51 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/1.036, allocations: 6.156 kB / 1.128 GB, free: 33.5 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.257e-05/1.036, allocations: 173.1 kB / 1.128 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/1.036, allocations: 8.375 kB / 1.128 GB, free: 33.29 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/1.036, allocations: 3.844 kB / 1.128 GB, free: 33.29 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/1.036, allocations: 58.31 kB / 1.128 GB, free: 33.24 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/1.036, allocations: 192 / 1.128 GB, free: 33.24 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/1.036, allocations: 11.5 kB / 1.128 GB, free: 33.23 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/1.036, allocations: 4.562 kB / 1.128 GB, free: 33.23 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001506/1.036, allocations: 45.94 kB / 1.128 GB, free: 33.2 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003214/1.036, allocations: 278.9 kB / 1.128 GB, free: 32.89 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001141/1.036, allocations: 53.64 kB / 1.128 GB, free: 32.84 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.697e-05/1.037, allocations: 28.38 kB / 1.128 GB, free: 32.81 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/1.037, allocations: 8.078 kB / 1.128 GB, free: 32.8 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/1.037, allocations: 71.47 kB / 1.128 GB, free: 32.73 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/1.037, allocations: 0 / 1.128 GB, free: 32.73 MB / 0.7292 GB Notification: Performance of matching and sorting (n=5): time 0.0003168/1.037, allocations: 127.3 kB / 1.128 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/1.037, allocations: 54.45 kB / 1.129 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.708e-05/1.037, allocations: 113.4 kB / 1.129 GB, free: 32.44 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/1.037, allocations: 29.7 kB / 1.129 GB, free: 32.4 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.259e-05/1.037, allocations: 92.78 kB / 1.129 GB, free: 32.31 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/1.037, allocations: 15.28 kB / 1.129 GB, free: 32.3 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-06/1.037, allocations: 0 / 1.129 GB, free: 32.3 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.328e-05/1.037, allocations: 314.8 kB / 1.129 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.26e-05/1.037, allocations: 26.66 kB / 1.129 GB, free: 31.96 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.505e-05/1.038, allocations: 54.78 kB / 1.129 GB, free: 31.9 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/1.038, allocations: 93.77 kB / 1.129 GB, free: 31.81 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.038, allocations: 0.5625 kB / 1.129 GB, free: 31.81 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002112/1.038, allocations: 112.1 kB / 1.129 GB, free: 31.71 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/1.038, allocations: 8 kB / 1.129 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/1.038, allocations: 0 / 1.129 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/1.038, allocations: 0 / 1.129 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.354e-05/1.038, allocations: 16.77 kB / 1.129 GB, free: 31.69 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/1.038, allocations: 5.859 kB / 1.129 GB, free: 31.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.164e-05/1.038, allocations: 15.23 kB / 1.129 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/1.038, allocations: 4.031 kB / 1.129 GB, free: 31.67 MB / 0.7292 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 5.64e-05/1.038, allocations: 125.7 kB / 1.13 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/1.038, allocations: 7.469 kB / 1.13 GB, free: 31.53 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002279/1.038, allocations: 100.9 kB / 1.13 GB, free: 31.44 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/1.039, allocations: 5.172 kB / 1.13 GB, free: 31.44 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/1.039, allocations: 0 / 1.13 GB, free: 31.44 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/1.039, allocations: 0.5 kB / 1.13 GB, free: 31.44 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003169/1.039, allocations: 352 kB / 1.13 GB, free: 31.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/1.039, allocations: 4 kB / 1.13 GB, free: 31.06 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.614e-05/1.039, allocations: 11.61 kB / 1.13 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/1.039, allocations: 4 kB / 1.13 GB, free: 31.05 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/1.039, allocations: 4 kB / 1.13 GB, free: 31.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/1.039, allocations: 0.5 kB / 1.13 GB, free: 31.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/1.039, allocations: 0 / 1.13 GB, free: 31.04 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/1.039, allocations: 198.3 kB / 1.13 GB, free: 30.85 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.165e-05/1.039, allocations: 77.86 kB / 1.13 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/1.039, allocations: 7.328 kB / 1.13 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.374e-05/1.039, allocations: 4 kB / 1.13 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.964e-05/1.039, allocations: 7.469 kB / 1.13 GB, free: 30.74 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/1.039, allocations: 12.62 kB / 1.13 GB, free: 30.73 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.997e-05/1.039, allocations: 87.36 kB / 1.13 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/1.039, allocations: 0 / 1.13 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002182/1.04, allocations: 20 kB / 1.13 GB, free: 30.63 MB / 0.7292 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.0001298/1.04, allocations: 107.6 kB / 1.13 GB, free: 30.52 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002098/1.04, allocations: 70.89 kB / 1.131 GB, free: 30.46 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/1.04, allocations: 0 / 1.131 GB, free: 30.46 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 8.586e-05/1.04, allocations: 30.56 kB / 1.131 GB, free: 30.44 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/1.04, allocations: 8 kB / 1.131 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002636/1.041, allocations: 145.7 kB / 1.131 GB, free: 30.28 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/1.041, allocations: 0.6806 MB / 1.131 GB, free: 29.57 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.752e-05/1.041, allocations: 4 kB / 1.131 GB, free: 29.57 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.013e-05/1.041, allocations: 20.31 kB / 1.131 GB, free: 29.56 MB / 0.7292 GB Notification: Performance of SimCode: time 2.3e-07/1.041, allocations: 0 / 1.131 GB, free: 29.56 MB / 0.7292 GB Notification: Performance of Templates: time 0.002434/1.043, allocations: 0.6414 MB / 1.132 GB, free: 29.2 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)