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.001106/0.001106, allocations: 99.28 kB / 16.27 MB, free: 6 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.001167/0.001167, allocations: 187 kB / 17.2 MB, free: 5.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.498/1.498, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.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.888/1.888, allocations: 292.3 MB / 0.5495 GB, free: 17.5 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.001427/0.001427, allocations: 63.91 kB / 0.6722 GB, free: 6.535 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2592, allocations: 114.6 MB / 0.784 GB, free: 3.863 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002165/0.2615, allocations: 0.6611 MB / 0.7847 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2629, allocations: 1.047 MB / 0.7857 GB, free: 2.137 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.93e-05/0.263, allocations: 4 kB / 0.7857 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.417e-05/0.2631, allocations: 3.938 kB / 0.7857 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.328e-05/0.2631, allocations: 3.938 kB / 0.7857 GB, free: 2.125 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.2634, allocations: 43.83 kB / 0.7858 GB, free: 2.082 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 9.081e-05/0.2636, allocations: 39.92 kB / 0.7858 GB, free: 2.043 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.2637, allocations: 4 kB / 0.7858 GB, free: 2.039 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.062e-05/0.2638, allocations: 27.91 kB / 0.7858 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.734e-05/0.2638, allocations: 15.92 kB / 0.7858 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.2639, allocations: 4 kB / 0.7859 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.834e-05/0.2639, allocations: 27.98 kB / 0.7859 GB, free: 1.965 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.217e-05/0.264, allocations: 11.92 kB / 0.7859 GB, free: 1.953 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.264, allocations: 11.94 kB / 0.7859 GB, free: 1.941 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.2641, allocations: 51.84 kB / 0.7859 GB, free: 1.891 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2642, allocations: 0 / 0.7859 GB, free: 1.891 MB / 0.6544 GB Notification: Performance of FrontEnd: time 4.168e-06/0.2642, allocations: 4 kB / 0.786 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.2642, allocations: 0 / 0.786 GB, free: 1.887 MB / 0.6544 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.0005987/0.2648, allocations: 359.6 kB / 0.7863 GB, free: 1.484 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.2648, allocations: 19.97 kB / 0.7863 GB, free: 1.465 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/0.2649, allocations: 4.844 kB / 0.7863 GB, free: 1.461 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.265, allocations: 168.3 kB / 0.7865 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.265, allocations: 4.375 kB / 0.7865 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.2651, allocations: 4.375 kB / 0.7865 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.2653, allocations: 66.16 kB / 0.7866 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.2653, allocations: 192 / 0.7866 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.2653, allocations: 7.922 kB / 0.7866 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.2653, allocations: 0 / 0.7866 GB, free: 1.172 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.2655, allocations: 39.97 kB / 0.7866 GB, free: 1.133 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004805/0.266, allocations: 280.8 kB / 0.7869 GB, free: 0.8086 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.2661, allocations: 50.48 kB / 0.7869 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.984e-05/0.2662, allocations: 28.94 kB / 0.7869 GB, free: 0.7188 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.2663, allocations: 0 / 0.7869 GB, free: 0.7188 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002192/0.2665, allocations: 75.31 kB / 0.787 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 1.372e-06/0.2665, allocations: 0 / 0.787 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0003854/0.2669, allocations: 97.64 kB / 0.7871 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.982e-05/0.2669, allocations: 55.41 kB / 0.7872 GB, free: 476 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.445e-05/0.267, allocations: 113.8 kB / 0.7873 GB, free: 352 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.2671, allocations: 29.7 kB / 0.7873 GB, free: 316 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.02e-05/0.2671, allocations: 88.05 kB / 0.7874 GB, free: 224 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.2672, allocations: 7.891 kB / 0.7874 GB, free: 216 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.2672, allocations: 21.72 kB / 0.7874 GB, free: 188 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.6011/0.8683, allocations: 317.2 kB / 0.7877 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.8686, allocations: 21.22 kB / 0.7877 GB, free: 48.6 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001398/0.8688, allocations: 50.11 kB / 0.7878 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002076/0.869, allocations: 78.34 kB / 0.7879 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.869, allocations: 0 / 0.7879 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003012/0.8693, allocations: 109.7 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.8693, allocations: 8.875 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.8694, allocations: 0 / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.923e-05/0.8694, allocations: 5.719 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.8695, allocations: 12.38 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.8696, allocations: 0 / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.263e-05/0.8696, allocations: 12.41 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.8697, allocations: 5.312 kB / 0.788 GB, free: 48.5 MB / 0.6544 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.437e-05/0.8698, allocations: 120 kB / 0.7881 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.692e-05/0.8698, allocations: 5.75 kB / 0.7881 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002835/0.8701, allocations: 91.89 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.8701, allocations: 0.5625 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.8701, allocations: 5.312 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.8701, allocations: 0 / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003949/0.8705, allocations: 335.1 kB / 0.7885 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.8705, allocations: 3.812 kB / 0.7885 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.209e-05/0.8706, allocations: 8.031 kB / 0.7885 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.8706, allocations: 6.344 kB / 0.7886 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.8706, allocations: 0 / 0.7886 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.8706, allocations: 6.859 kB / 0.7886 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.8706, allocations: 0 / 0.7886 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002364/0.8709, allocations: 184.5 kB / 0.7887 GB, free: 47.93 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.372e-05/0.8709, allocations: 90.05 kB / 0.7888 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.026e-05/0.8709, allocations: 0 / 0.7888 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.034e-05/0.871, allocations: 11.69 kB / 0.7888 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/0.8711, allocations: 2.719 kB / 0.7888 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.8711, allocations: 0 / 0.7888 GB, free: 47.83 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.719e-05/0.8711, allocations: 89.31 kB / 0.7889 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8711, allocations: 0 / 0.7889 GB, free: 47.76 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002412/0.8714, allocations: 8.688 kB / 0.7889 GB, free: 47.76 MB / 0.6544 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.0001683/0.8716, allocations: 105.2 kB / 0.789 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002648/0.8718, allocations: 61.8 kB / 0.7891 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.8718, allocations: 0.5938 kB / 0.7891 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.872, allocations: 31.81 kB / 0.7891 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.8722, allocations: 7.875 kB / 0.7891 GB, free: 47.67 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003699/0.8726, allocations: 154.4 kB / 0.7893 GB, free: 47.54 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001827/0.8728, allocations: 0.6876 MB / 0.7899 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.025e-05/0.8729, allocations: 11.03 kB / 0.79 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of SimCode: time 4.11e-07/0.8729, allocations: 0 / 0.79 GB, free: 46.84 MB / 0.6544 GB Notification: Performance of Templates: time 0.00282/0.8757, allocations: 0.8167 MB / 0.7908 GB, free: 46.84 MB / 0.6544 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)