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.001447/0.001446, allocations: 105.4 kB / 16.36 MB, free: 6.309 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.001324/0.001324, allocations: 191.2 kB / 17.3 MB, free: 5.871 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.635/1.635, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.991/1.991, allocations: 292.3 MB / 0.5496 GB, free: 17.47 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.001495/0.001496, allocations: 75.89 kB / 0.6729 GB, free: 5.793 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2656, allocations: 114.5 MB / 0.7848 GB, free: 3.129 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001994/0.2677, allocations: 0.6738 MB / 0.7855 GB, free: 2.453 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.2689, allocations: 1.043 MB / 0.7865 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.632e-05/0.269, allocations: 3.938 kB / 0.7865 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.985e-05/0.269, allocations: 3.984 kB / 0.7865 GB, free: 1.387 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.846e-05/0.2691, allocations: 7.922 kB / 0.7865 GB, free: 1.379 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.2694, allocations: 39.84 kB / 0.7865 GB, free: 1.34 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 8.89e-05/0.2695, allocations: 39.91 kB / 0.7866 GB, free: 1.301 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 9.689e-05/0.2696, allocations: 8 kB / 0.7866 GB, free: 1.293 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 6.431e-05/0.2697, allocations: 27.86 kB / 0.7866 GB, free: 1.266 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 4.695e-05/0.2697, allocations: 19.92 kB / 0.7866 GB, free: 1.246 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.2697, allocations: 4 kB / 0.7866 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.048e-05/0.2698, allocations: 11.98 kB / 0.7866 GB, free: 1.23 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.863e-05/0.2698, allocations: 19.91 kB / 0.7867 GB, free: 1.211 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.3e-05/0.2699, allocations: 15.94 kB / 0.7867 GB, free: 1.195 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.27, allocations: 51.84 kB / 0.7867 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.27, allocations: 0 / 0.7867 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.523e-06/0.27, allocations: 0 / 0.7867 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.27, allocations: 0 / 0.7867 GB, free: 1.145 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.0005202/0.2705, allocations: 363.4 kB / 0.7871 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.2706, allocations: 8.031 kB / 0.7871 GB, free: 0.7305 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.48e-05/0.2706, allocations: 8.844 kB / 0.7871 GB, free: 0.7227 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.2707, allocations: 172.3 kB / 0.7872 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.2707, allocations: 384 / 0.7872 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.2708, allocations: 12.31 kB / 0.7873 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.2709, allocations: 58.22 kB / 0.7873 GB, free: 452 kB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.271, allocations: 8.109 kB / 0.7873 GB, free: 444 kB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.271, allocations: 7.938 kB / 0.7873 GB, free: 436 kB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.271, allocations: 0 / 0.7873 GB, free: 436 kB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.2712, allocations: 35.97 kB / 0.7874 GB, free: 400 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004563/0.2716, allocations: 276.9 kB / 0.7876 GB, free: 72 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.2718, allocations: 50.42 kB / 0.7877 GB, free: 12 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.5132/0.785, allocations: 29.3 kB / 0.7877 GB, free: 48.91 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.769e-05/0.785, allocations: 1.969 kB / 0.7877 GB, free: 48.91 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003079/0.7854, allocations: 65.16 kB / 0.7878 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 4.007e-06/0.7854, allocations: 1.312 kB / 0.7878 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.000496/0.7859, allocations: 102.7 kB / 0.7879 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.7859, allocations: 57.27 kB / 0.7879 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.589e-05/0.786, allocations: 105.1 kB / 0.788 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.786, allocations: 28.33 kB / 0.788 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.257e-05/0.7861, allocations: 89.61 kB / 0.7881 GB, free: 48.56 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.7861, allocations: 10.64 kB / 0.7881 GB, free: 48.56 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.05e-05/0.7862, allocations: 18.91 kB / 0.7882 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.332e-05/0.7863, allocations: 322.5 kB / 0.7885 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.532e-05/0.7864, allocations: 22.09 kB / 0.7885 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.7865, allocations: 48.14 kB / 0.7885 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.7866, allocations: 76.59 kB / 0.7886 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.7867, allocations: 3.75 kB / 0.7886 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002368/0.7869, allocations: 106.1 kB / 0.7887 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.7869, allocations: 6 kB / 0.7887 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.7869, allocations: 0 / 0.7887 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.371e-05/0.787, allocations: 2.875 kB / 0.7887 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.7871, allocations: 13.06 kB / 0.7887 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.096e-06/0.7871, allocations: 5.5 kB / 0.7887 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.892e-05/0.7872, allocations: 17 kB / 0.7888 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.7872, allocations: 2.719 kB / 0.7888 GB, free: 48.14 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 7.71e-05/0.7873, allocations: 119.3 kB / 0.7889 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.119e-05/0.7873, allocations: 3.031 kB / 0.7889 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002585/0.7876, allocations: 97.45 kB / 0.789 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.7876, allocations: 5.828 kB / 0.789 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.7876, allocations: 0 / 0.789 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.777e-05/0.7876, allocations: 80.52 kB / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.7877, allocations: 0.5938 kB / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.981e-05/0.7877, allocations: 10.44 kB / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.741e-05/0.7878, allocations: 7.344 kB / 0.7891 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002595/0.788, allocations: 167.4 kB / 0.7892 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002783/0.7883, allocations: 253 kB / 0.7895 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001053/0.7884, allocations: 31.95 kB / 0.7895 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.105e-05/0.7885, allocations: 89.45 kB / 0.7896 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of Backend: time 1.193e-06/0.7885, allocations: 1.969 kB / 0.7896 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005481/0.7891, allocations: 113 kB / 0.7897 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of SimCode: time 0.0004453/0.7895, allocations: 0.5758 MB / 0.7903 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of Templates: time 0.003614/0.7931, allocations: 0.8549 MB / 0.7911 GB, free: 46.86 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)