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.001246/0.001246, allocations: 108 kB / 15.61 MB, free: 148 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.001223/0.001223, allocations: 194 kB / 16.53 MB, free: 6.664 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.737/1.737, allocations: 205.1 MB / 222.4 MB, free: 4.535 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.81/1.81, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.001443/0.001443, allocations: 65.16 kB / 0.6715 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2969, allocations: 114.5 MB / 0.7834 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002061/0.299, allocations: 0.6778 MB / 0.784 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00137/0.3004, allocations: 1.039 MB / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.753e-05/0.3005, allocations: 0 / 0.785 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.183e-05/0.3005, allocations: 3.938 kB / 0.785 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.32e-05/0.3006, allocations: 11.86 kB / 0.7851 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003019/0.3009, allocations: 47.84 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.672e-05/0.301, allocations: 35.92 kB / 0.7851 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.3011, allocations: 19.97 kB / 0.7852 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.063e-05/0.3012, allocations: 19.92 kB / 0.7852 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.694e-05/0.3013, allocations: 15.92 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.3013, allocations: 4 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.391e-05/0.3014, allocations: 23.92 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.245e-05/0.3014, allocations: 11.92 kB / 0.7852 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.837e-05/0.3015, allocations: 15.92 kB / 0.7852 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.3016, allocations: 47.88 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.3017, allocations: 0 / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3017, allocations: 0 / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.3017, allocations: 4 kB / 0.7853 GB, free: 11.47 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.0005966/0.3023, allocations: 355.7 kB / 0.7856 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3023, allocations: 12.03 kB / 0.7856 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.404e-05/0.3024, allocations: 4.844 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.3025, allocations: 176.3 kB / 0.7858 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.3025, allocations: 384 / 0.7858 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.3026, allocations: 12.31 kB / 0.7858 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.3028, allocations: 58.23 kB / 0.7859 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3028, allocations: 192 / 0.7859 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.3028, allocations: 3.938 kB / 0.7859 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3028, allocations: 0 / 0.7859 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000189/0.303, allocations: 47.89 kB / 0.7859 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005006/0.3035, allocations: 268.9 kB / 0.7862 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001515/0.3037, allocations: 54.48 kB / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.3038, allocations: 28.94 kB / 0.7863 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.3038, allocations: 3.984 kB / 0.7863 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.3041, allocations: 71.33 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.513e-06/0.3041, allocations: 0 / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0004646/0.3046, allocations: 101.6 kB / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.3046, allocations: 55.39 kB / 0.7865 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.954e-05/0.3047, allocations: 105.8 kB / 0.7866 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.3047, allocations: 33.7 kB / 0.7866 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.711e-05/0.3048, allocations: 88.05 kB / 0.7867 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.427e-05/0.3048, allocations: 4.969 kB / 0.7867 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.3049, allocations: 33.64 kB / 0.7867 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.3051, allocations: 310.8 kB / 0.787 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.3052, allocations: 19.98 kB / 0.7871 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.3053, allocations: 51.66 kB / 0.7871 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/0.3055, allocations: 79.27 kB / 0.7872 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3056, allocations: 11.94 kB / 0.7872 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002533/0.3058, allocations: 101.5 kB / 0.7873 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.3058, allocations: 4 kB / 0.7873 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.3059, allocations: 0 / 0.7873 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.3059, allocations: 4 kB / 0.7873 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.306, allocations: 11.98 kB / 0.7873 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.306, allocations: 7.922 kB / 0.7873 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.133e-05/0.3061, allocations: 16.06 kB / 0.7873 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.3061, allocations: 4 kB / 0.7873 GB, free: 9.121 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.0001036/0.3062, allocations: 114.4 kB / 0.7875 GB, free: 9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.455e-05/0.3062, allocations: 7.906 kB / 0.7875 GB, free: 8.992 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.3065, allocations: 93.61 kB / 0.7875 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3065, allocations: 0 / 0.7875 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.3066, allocations: 3.938 kB / 0.7876 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3066, allocations: 4 kB / 0.7876 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004802/0.3071, allocations: 342.4 kB / 0.7879 GB, free: 8.492 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3071, allocations: 4 kB / 0.7879 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.682e-05/0.3071, allocations: 4 kB / 0.7879 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3071, allocations: 3.984 kB / 0.7879 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.3072, allocations: 3.984 kB / 0.7879 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3072, allocations: 4 kB / 0.7879 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3072, allocations: 4 kB / 0.7879 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.3075, allocations: 179.4 kB / 0.7881 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.077e-05/0.3075, allocations: 85.02 kB / 0.7882 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.3076, allocations: 192 / 0.7882 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-05/0.3077, allocations: 11.98 kB / 0.7882 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.3077, allocations: 7.984 kB / 0.7882 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.3078, allocations: 11.94 kB / 0.7882 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.269e-05/0.3078, allocations: 79.28 kB / 0.7883 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3078, allocations: 0 / 0.7883 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002531/0.3081, allocations: 12 kB / 0.7883 GB, free: 8.055 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.0001808/0.3083, allocations: 103.2 kB / 0.7884 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000269/0.3086, allocations: 60.08 kB / 0.7884 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.3086, allocations: 8.062 kB / 0.7884 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.3087, allocations: 27.92 kB / 0.7885 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.309, allocations: 15.86 kB / 0.7885 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003506/0.3093, allocations: 132.7 kB / 0.7886 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.3097, allocations: 0.6846 MB / 0.7893 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.035e-05/0.3097, allocations: 3.984 kB / 0.7893 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.755e-05/0.3097, allocations: 11.44 kB / 0.7893 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.3097, allocations: 0 / 0.7893 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of Templates: time 0.003347/0.3131, allocations: 0.7404 MB / 0.79 GB, free: 6.227 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)