Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.567/1.567, allocations: 297.8 MB / 313.7 MB, free: 148 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000922/0.000922, allocations: 178.7 kB / 384.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 223.2 MB / 0.6626 GB, free: 4.254 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008308/0.000831, allocations: 97.86 kB / 0.7808 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.00037/0.0003701, allocations: 13.69 kB / 0.9088 GB, free: 2.836 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6179/0.6183, allocations: 120.3 MB / 1.026 GB, free: 55.86 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1758/0.7942, allocations: 141.2 MB / 1.164 GB, free: 2.281 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001884/0.7944, allocations: 66.45 kB / 1.164 GB, free: 2.227 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.002724/0.7971, allocations: 1.052 MB / 1.165 GB, free: 1.418 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.823e-06/0.7972, allocations: 1.375 kB / 1.165 GB, free: 1.418 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.7972, allocations: 0 / 1.165 GB, free: 1.418 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.0003113/0.7975, allocations: 368.8 kB / 1.166 GB, free: 1.023 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.7975, allocations: 8.031 kB / 1.166 GB, free: 1.016 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.7976, allocations: 5.922 kB / 1.166 GB, free: 1.012 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.957e-05/0.7976, allocations: 176 kB / 1.166 GB, free: 0.8047 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.7976, allocations: 4.375 kB / 1.166 GB, free: 0.8008 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.286e-05/0.7977, allocations: 5.609 kB / 1.166 GB, free: 0.7969 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.7978, allocations: 61.77 kB / 1.166 GB, free: 0.7422 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.7978, allocations: 1.781 kB / 1.166 GB, free: 0.7422 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.7979, allocations: 7.938 kB / 1.166 GB, free: 0.7344 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.7979, allocations: 0 / 1.166 GB, free: 0.7344 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.7981, allocations: 50.44 kB / 1.166 GB, free: 0.6992 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003305/0.7984, allocations: 275.3 kB / 1.166 GB, free: 408 kB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.7985, allocations: 52.16 kB / 1.166 GB, free: 356 kB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.746e-05/0.7986, allocations: 31.62 kB / 1.166 GB, free: 328 kB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.7986, allocations: 5.406 kB / 1.166 GB, free: 324 kB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.7988, allocations: 77.52 kB / 1.166 GB, free: 248 kB / 0.7292 GB Notification: Performance of pre-optimization done (n=5): time 1.363e-06/0.7988, allocations: 0.5312 kB / 1.166 GB, free: 248 kB / 0.7292 GB Notification: Performance of matching and sorting (n=5): time 0.0003179/0.7991, allocations: 122.5 kB / 1.166 GB, free: 140 kB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.7992, allocations: 56.56 kB / 1.166 GB, free: 72 kB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.494e-05/0.7993, allocations: 113.6 kB / 1.167 GB, free: 15.95 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.7993, allocations: 25.7 kB / 1.167 GB, free: 15.92 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 3.644e-05/0.7993, allocations: 84.97 kB / 1.167 GB, free: 15.84 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.7993, allocations: 20.59 kB / 1.167 GB, free: 15.82 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-06/0.7994, allocations: 0 / 1.167 GB, free: 15.82 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.791e-05/0.7995, allocations: 318.6 kB / 1.167 GB, free: 15.5 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.438e-05/0.7996, allocations: 32.08 kB / 1.167 GB, free: 15.48 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.7997, allocations: 53.64 kB / 1.167 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.7999, allocations: 89.81 kB / 1.167 GB, free: 15.34 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7999, allocations: 0 / 1.167 GB, free: 15.34 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002474/0.8001, allocations: 115.5 kB / 1.167 GB, free: 15.24 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.8001, allocations: 4.5 kB / 1.167 GB, free: 15.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.8002, allocations: 1.266 kB / 1.167 GB, free: 15.23 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.8002, allocations: 4 kB / 1.167 GB, free: 15.23 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.8003, allocations: 17.2 kB / 1.167 GB, free: 15.22 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.8003, allocations: 0 / 1.167 GB, free: 15.22 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.627e-05/0.8004, allocations: 14.14 kB / 1.167 GB, free: 15.21 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.8004, allocations: 4 kB / 1.167 GB, free: 15.21 MB / 0.7448 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 6.576e-05/0.8005, allocations: 114.5 kB / 1.167 GB, free: 15.09 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.214e-05/0.8005, allocations: 8.609 kB / 1.167 GB, free: 15.08 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002455/0.8007, allocations: 105.8 kB / 1.168 GB, free: 14.99 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.8007, allocations: 0.7812 kB / 1.168 GB, free: 14.99 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.8008, allocations: 4 kB / 1.168 GB, free: 14.99 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.8008, allocations: 3.297 kB / 1.168 GB, free: 14.99 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003751/0.8011, allocations: 348.7 kB / 1.168 GB, free: 14.62 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.8012, allocations: 8 kB / 1.168 GB, free: 14.61 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.938e-05/0.8012, allocations: 11.09 kB / 1.168 GB, free: 14.6 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.8012, allocations: 0 / 1.168 GB, free: 14.6 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.8012, allocations: 8.219 kB / 1.168 GB, free: 14.6 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.8013, allocations: 0 / 1.168 GB, free: 14.6 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.8013, allocations: 0.75 kB / 1.168 GB, free: 14.6 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002463/0.8015, allocations: 197 kB / 1.168 GB, free: 14.4 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.8016, allocations: 82.38 kB / 1.168 GB, free: 14.3 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.586e-05/0.8016, allocations: 2.031 kB / 1.168 GB, free: 14.3 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.864e-05/0.8017, allocations: 6.672 kB / 1.168 GB, free: 14.3 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.8017, allocations: 6.156 kB / 1.168 GB, free: 14.3 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.8017, allocations: 11.88 kB / 1.168 GB, free: 14.29 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.878e-05/0.8018, allocations: 90.33 kB / 1.168 GB, free: 14.2 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8018, allocations: 0 / 1.168 GB, free: 14.2 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002331/0.802, allocations: 12.8 kB / 1.168 GB, free: 14.19 MB / 0.7448 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.0001299/0.8021, allocations: 114.4 kB / 1.168 GB, free: 14.07 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002174/0.8024, allocations: 68.17 kB / 1.169 GB, free: 14.02 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.8024, allocations: 1.125 kB / 1.169 GB, free: 14.02 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 9.602e-05/0.8025, allocations: 33.58 kB / 1.169 GB, free: 13.99 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.8027, allocations: 6.719 kB / 1.169 GB, free: 13.98 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002679/0.803, allocations: 142 kB / 1.169 GB, free: 13.82 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.8032, allocations: 0.6817 MB / 1.169 GB, free: 13.12 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.913e-05/0.8032, allocations: 1.547 kB / 1.169 GB, free: 13.12 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.191e-05/0.8033, allocations: 12.14 kB / 1.169 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of SimCode: time 2.2e-07/0.8033, allocations: 0 / 1.169 GB, free: 13.11 MB / 0.7448 GB Notification: Performance of Templates: time 0.002397/0.8057, allocations: 0.6489 MB / 1.17 GB, free: 12.75 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)