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.00124/0.00124, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 186.2 kB / 16.62 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.641/1.641, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.867/1.867, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001858/0.001858, allocations: 70.64 kB / 0.6723 GB, free: 25.94 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3444, allocations: 114.6 MB / 0.7841 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.003681/0.3482, allocations: 0.6759 MB / 0.7848 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001847/0.35, allocations: 1.039 MB / 0.7858 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.678e-05/0.3502, allocations: 4 kB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.336e-05/0.3503, allocations: 7.922 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.921e-05/0.3504, allocations: 3.938 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003755/0.3507, allocations: 39.84 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.3509, allocations: 39.91 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.351, allocations: 16 kB / 0.7859 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.123e-05/0.3511, allocations: 15.92 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.418e-05/0.3512, allocations: 23.91 kB / 0.7859 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.3512, allocations: 4 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.678e-05/0.3513, allocations: 19.92 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.512e-05/0.3513, allocations: 15.92 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.022e-05/0.3513, allocations: 15.94 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.3515, allocations: 51.84 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3515, allocations: 0 / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.804e-06/0.3515, allocations: 0 / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.246e-06/0.3516, allocations: 7.938 kB / 0.7861 GB, free: 10.73 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.0007461/0.3523, allocations: 355.4 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/0.3524, allocations: 8.031 kB / 0.7864 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.3525, allocations: 12.78 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.3526, allocations: 164.3 kB / 0.7866 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.3526, allocations: 4.375 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.3527, allocations: 4.375 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.3529, allocations: 66.16 kB / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3529, allocations: 192 / 0.7866 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.3529, allocations: 7.938 kB / 0.7866 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.3529, allocations: 0 / 0.7866 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.3531, allocations: 35.97 kB / 0.7867 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007096/0.3538, allocations: 272.9 kB / 0.7869 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.354, allocations: 62.42 kB / 0.787 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.3541, allocations: 24.94 kB / 0.787 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.3542, allocations: 0 / 0.787 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.3545, allocations: 71.36 kB / 0.7871 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.603e-06/0.3545, allocations: 0 / 0.7871 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.000475/0.355, allocations: 105.6 kB / 0.7872 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/0.3551, allocations: 59.34 kB / 0.7873 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.3552, allocations: 105.8 kB / 0.7874 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.3552, allocations: 25.7 kB / 0.7874 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.763e-05/0.3553, allocations: 89.11 kB / 0.7875 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.3554, allocations: 15.89 kB / 0.7875 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.363e-05/0.3554, allocations: 21.72 kB / 0.7875 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.3556, allocations: 318.8 kB / 0.7878 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.748e-05/0.3557, allocations: 19.98 kB / 0.7878 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.3558, allocations: 47.41 kB / 0.7879 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.356, allocations: 79.28 kB / 0.7879 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3561, allocations: 0 / 0.7879 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002756/0.3563, allocations: 105.6 kB / 0.788 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3564, allocations: 8 kB / 0.7881 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.3564, allocations: 4 kB / 0.7881 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3564, allocations: 0 / 0.7881 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.3565, allocations: 20.17 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.3565, allocations: 0 / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.797e-05/0.3566, allocations: 15.92 kB / 0.7881 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.3566, allocations: 8 kB / 0.7881 GB, free: 8.391 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 9.517e-05/0.3567, allocations: 117.7 kB / 0.7882 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.3568, allocations: 11.84 kB / 0.7882 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.357, allocations: 97.55 kB / 0.7883 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.357, allocations: 0 / 0.7883 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.3571, allocations: 0 / 0.7883 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3571, allocations: 0 / 0.7883 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.3575, allocations: 334.5 kB / 0.7886 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3575, allocations: 4 kB / 0.7886 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.791e-05/0.3576, allocations: 11.98 kB / 0.7886 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3576, allocations: 0 / 0.7886 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.3576, allocations: 0 / 0.7886 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.3576, allocations: 3.938 kB / 0.7887 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3576, allocations: 480 / 0.7887 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002635/0.3579, allocations: 187.4 kB / 0.7888 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-05/0.3579, allocations: 81.02 kB / 0.7889 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.3579, allocations: 0 / 0.7889 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.825e-05/0.358, allocations: 7.984 kB / 0.7889 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.3581, allocations: 8 kB / 0.7889 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.3581, allocations: 3.938 kB / 0.7889 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.324e-05/0.3582, allocations: 91.25 kB / 0.789 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3582, allocations: 0 / 0.789 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002487/0.3584, allocations: 12 kB / 0.789 GB, free: 7.328 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.000175/0.3586, allocations: 111.2 kB / 0.7891 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000262/0.3589, allocations: 56.08 kB / 0.7892 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3589, allocations: 0 / 0.7892 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.359, allocations: 35.91 kB / 0.7892 GB, free: 7.121 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.3593, allocations: 10.66 kB / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004174/0.3597, allocations: 133.5 kB / 0.7894 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.36, allocations: 0.6807 MB / 0.79 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.44e-05/0.3601, allocations: 4 kB / 0.79 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.3601, allocations: 7.438 kB / 0.79 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.3601, allocations: 0 / 0.79 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of Templates: time 0.003873/0.364, allocations: 0.7518 MB / 0.7908 GB, free: 5.496 MB / 0.6075 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)