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/ModelicaServices 4.0.0+maint.om/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009583/0.0009623, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0131/0.0131, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.774/1.774, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.992/1.992, allocations: 292.7 MB / 0.5502 GB, free: 14.48 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005409/0.000541, allocations: 16.25 kB / 0.6743 GB, free: 25.67 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3029, allocations: 116.3 MB / 0.7879 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001001/0.3039, allocations: 409.4 kB / 0.7883 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.3054, allocations: 1.037 MB / 0.7893 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.813e-05/0.3055, allocations: 0 / 0.7893 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.022e-05/0.3055, allocations: 3.938 kB / 0.7893 GB, free: 10.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.566e-05/0.3056, allocations: 8 kB / 0.7893 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.3059, allocations: 39.89 kB / 0.7893 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.894e-05/0.3059, allocations: 31.92 kB / 0.7894 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.3061, allocations: 8 kB / 0.7894 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.373e-05/0.3061, allocations: 23.86 kB / 0.7894 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.93e-05/0.3062, allocations: 19.91 kB / 0.7894 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.3062, allocations: 0 / 0.7894 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.674e-05/0.3063, allocations: 11.98 kB / 0.7894 GB, free: 9.988 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.049e-05/0.3063, allocations: 11.94 kB / 0.7894 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.982e-05/0.3064, allocations: 45.62 kB / 0.7895 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.3065, allocations: 47.84 kB / 0.7895 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3065, allocations: 0 / 0.7895 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.557e-06/0.3065, allocations: 0 / 0.7895 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.3066, allocations: 0 / 0.7895 GB, free: 9.879 MB / 0.6075 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.0006227/0.3072, allocations: 351.7 kB / 0.7899 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3072, allocations: 12.03 kB / 0.7899 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.731e-05/0.3073, allocations: 8.844 kB / 0.7899 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.3075, allocations: 168.3 kB / 0.79 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.3075, allocations: 4.375 kB / 0.7901 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.3075, allocations: 8.312 kB / 0.7901 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.3077, allocations: 70.17 kB / 0.7901 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3078, allocations: 192 / 0.7901 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.739e-05/0.3078, allocations: 11.91 kB / 0.7901 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3078, allocations: 0 / 0.7901 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.308, allocations: 47.97 kB / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005669/0.3086, allocations: 276.9 kB / 0.7904 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00015/0.3087, allocations: 62.53 kB / 0.7905 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.3088, allocations: 32.83 kB / 0.7905 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.3089, allocations: 0 / 0.7905 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.3091, allocations: 75.39 kB / 0.7906 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.793e-06/0.3091, allocations: 0 / 0.7906 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0004497/0.3096, allocations: 121.6 kB / 0.7907 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.3097, allocations: 59.34 kB / 0.7908 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.3098, allocations: 105.8 kB / 0.7909 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.3098, allocations: 29.7 kB / 0.7909 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.601e-05/0.3099, allocations: 88.12 kB / 0.791 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.3099, allocations: 11.81 kB / 0.791 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.1e-05/0.31, allocations: 25.64 kB / 0.791 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3101, allocations: 314.8 kB / 0.7913 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.3102, allocations: 27.97 kB / 0.7914 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.3104, allocations: 55.42 kB / 0.7914 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.3106, allocations: 91.27 kB / 0.7915 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3106, allocations: 0 / 0.7915 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003073/0.3109, allocations: 105.5 kB / 0.7916 GB, free: 7.508 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.3109, allocations: 12.11 kB / 0.7916 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3109, allocations: 4 kB / 0.7916 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.311, allocations: 0 / 0.7916 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.3111, allocations: 19.92 kB / 0.7916 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3111, allocations: 4 kB / 0.7916 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.087e-05/0.3112, allocations: 11.94 kB / 0.7916 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.3112, allocations: 4 kB / 0.7917 GB, free: 7.453 MB / 0.6075 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.3113, allocations: 125.8 kB / 0.7918 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.508e-05/0.3114, allocations: 0 / 0.7918 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/0.3117, allocations: 101.6 kB / 0.7919 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.341e-06/0.3117, allocations: 0 / 0.7919 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3117, allocations: 7.922 kB / 0.7919 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3117, allocations: 4 kB / 0.7919 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004463/0.3121, allocations: 346.8 kB / 0.7922 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3122, allocations: 0 / 0.7922 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.383e-05/0.3122, allocations: 19.98 kB / 0.7922 GB, free: 6.785 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3122, allocations: 4 kB / 0.7922 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.3123, allocations: 3.938 kB / 0.7922 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3123, allocations: 0 / 0.7922 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3123, allocations: 0 / 0.7922 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003159/0.3126, allocations: 191.5 kB / 0.7924 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-05/0.3126, allocations: 81.02 kB / 0.7925 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.3127, allocations: 7.984 kB / 0.7925 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.761e-05/0.3128, allocations: 8 kB / 0.7925 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.3128, allocations: 7.984 kB / 0.7925 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.358e-06/0.3128, allocations: 3.938 kB / 0.7925 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.292e-05/0.3129, allocations: 83.75 kB / 0.7926 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3129, allocations: 8 kB / 0.7926 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002568/0.3132, allocations: 12 kB / 0.7926 GB, free: 6.348 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001864/0.3134, allocations: 99.23 kB / 0.7927 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002667/0.3136, allocations: 71.89 kB / 0.7928 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3137, allocations: 7.938 kB / 0.7928 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.3138, allocations: 35.92 kB / 0.7928 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.3141, allocations: 7.984 kB / 0.7928 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.3145, allocations: 141 kB / 0.793 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002998/0.3148, allocations: 0.6809 MB / 0.7936 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.953e-05/0.3149, allocations: 11.92 kB / 0.7936 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.335e-05/0.3149, allocations: 7.438 kB / 0.7937 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.3149, allocations: 0 / 0.7937 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of Templates: time 0.003466/0.3184, allocations: 0.6503 MB / 0.7943 GB, free: 4.59 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: