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.001109/0.001109, allocations: 107.4 kB / 16.29 MB, free: 6.43 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.0011/0.0011, allocations: 184 kB / 17.22 MB, free: 5.934 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.698/1.698, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.918/1.918, allocations: 292.3 MB / 0.5495 GB, free: 17.6 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.001492/0.001493, allocations: 71.91 kB / 0.6722 GB, free: 6.535 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3093, allocations: 114.5 MB / 0.7841 GB, free: 3.871 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002277/0.3116, allocations: 0.6663 MB / 0.7847 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001556/0.3132, allocations: 1.047 MB / 0.7858 GB, free: 2.137 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.51e-05/0.3133, allocations: 0 / 0.7858 GB, free: 2.137 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.607e-05/0.3133, allocations: 3.938 kB / 0.7858 GB, free: 2.133 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.612e-05/0.3134, allocations: 7.938 kB / 0.7858 GB, free: 2.125 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003395/0.3138, allocations: 39.84 kB / 0.7858 GB, free: 2.086 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 9.592e-05/0.3139, allocations: 39.91 kB / 0.7858 GB, free: 2.047 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.314, allocations: 15.98 kB / 0.7859 GB, free: 2.031 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 7.528e-05/0.3141, allocations: 19.92 kB / 0.7859 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.116e-05/0.3141, allocations: 19.92 kB / 0.7859 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.3142, allocations: 0 / 0.7859 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 8.087e-05/0.3143, allocations: 27.92 kB / 0.7859 GB, free: 1.965 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.3143, allocations: 11.92 kB / 0.7859 GB, free: 1.953 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 4.674e-05/0.3143, allocations: 23.92 kB / 0.786 GB, free: 1.93 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.3145, allocations: 43.86 kB / 0.786 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.3145, allocations: 3.984 kB / 0.786 GB, free: 1.883 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.134e-06/0.3145, allocations: 4 kB / 0.786 GB, free: 1.879 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.3145, allocations: 0 / 0.786 GB, free: 1.879 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.000629/0.3151, allocations: 359.7 kB / 0.7863 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3152, allocations: 8.031 kB / 0.7864 GB, free: 1.469 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.997e-05/0.3153, allocations: 12.78 kB / 0.7864 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.3154, allocations: 168.3 kB / 0.7865 GB, free: 1.254 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.3154, allocations: 4.375 kB / 0.7865 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.225e-05/0.3154, allocations: 384 / 0.7865 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/0.3156, allocations: 66.17 kB / 0.7866 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.3157, allocations: 192 / 0.7866 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.3157, allocations: 11.86 kB / 0.7866 GB, free: 1.168 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.3157, allocations: 4 kB / 0.7866 GB, free: 1.164 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.3159, allocations: 39.95 kB / 0.7867 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005552/0.3164, allocations: 268.9 kB / 0.7869 GB, free: 0.8125 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.3166, allocations: 58.42 kB / 0.787 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.335e-05/0.3167, allocations: 28.92 kB / 0.787 GB, free: 0.7148 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.3167, allocations: 0 / 0.787 GB, free: 0.7148 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/0.3169, allocations: 67.39 kB / 0.7871 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 3.226e-06/0.3169, allocations: 4 kB / 0.7871 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0003591/0.3173, allocations: 105.6 kB / 0.7872 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.3174, allocations: 55.34 kB / 0.7872 GB, free: 468 kB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.315e-05/0.3175, allocations: 109.8 kB / 0.7873 GB, free: 348 kB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.3175, allocations: 25.7 kB / 0.7873 GB, free: 316 kB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.948e-05/0.3175, allocations: 88.05 kB / 0.7874 GB, free: 224 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.3176, allocations: 15.89 kB / 0.7874 GB, free: 208 kB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.093e-05/0.3176, allocations: 25.7 kB / 0.7875 GB, free: 176 kB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.5714/0.889, allocations: 312.1 kB / 0.7878 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.8893, allocations: 19.41 kB / 0.7878 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.8894, allocations: 48.83 kB / 0.7878 GB, free: 48.56 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.8896, allocations: 84.69 kB / 0.7879 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.8896, allocations: 0 / 0.7879 GB, free: 48.53 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002726/0.8899, allocations: 98.84 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.8899, allocations: 5.281 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.8899, allocations: 0 / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.89, allocations: 4 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.8901, allocations: 18.41 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.8901, allocations: 2.812 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.823e-05/0.8902, allocations: 16.3 kB / 0.788 GB, free: 48.5 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.8902, allocations: 3.062 kB / 0.7881 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 8.097e-05/0.8903, allocations: 112.3 kB / 0.7882 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.8903, allocations: 13.72 kB / 0.7882 GB, free: 48.38 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.8906, allocations: 91.16 kB / 0.7883 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.8906, allocations: 2.969 kB / 0.7883 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.8906, allocations: 3.938 kB / 0.7883 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.8906, allocations: 1.844 kB / 0.7883 GB, free: 48.35 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003596/0.891, allocations: 331.1 kB / 0.7886 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.891, allocations: 0.5938 kB / 0.7886 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.037e-05/0.891, allocations: 14.45 kB / 0.7886 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.891, allocations: 4.594 kB / 0.7886 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.8911, allocations: 3.875 kB / 0.7886 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.8911, allocations: 0 / 0.7886 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.8911, allocations: 0.5 kB / 0.7886 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.8913, allocations: 185.8 kB / 0.7888 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.179e-05/0.8913, allocations: 83.98 kB / 0.7889 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.8914, allocations: 4.516 kB / 0.7889 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.144e-05/0.8914, allocations: 3.75 kB / 0.7889 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.8915, allocations: 9.75 kB / 0.7889 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.8915, allocations: 0 / 0.7889 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.644e-05/0.8915, allocations: 90.92 kB / 0.789 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8915, allocations: 0 / 0.789 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002334/0.8918, allocations: 8.75 kB / 0.789 GB, free: 47.75 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.0001511/0.8919, allocations: 103.2 kB / 0.7891 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002194/0.8922, allocations: 59.84 kB / 0.7891 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.8922, allocations: 0 / 0.7891 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 8.879e-05/0.8923, allocations: 28.08 kB / 0.7892 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002654/0.8925, allocations: 10.53 kB / 0.7892 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000312/0.8929, allocations: 138.1 kB / 0.7893 GB, free: 47.56 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.893, allocations: 0.6807 MB / 0.79 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 2.734e-05/0.893, allocations: 2.875 kB / 0.79 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.219e-05/0.8931, allocations: 10.84 kB / 0.79 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.8931, allocations: 2.688 kB / 0.79 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of Templates: time 0.003078/0.8962, allocations: 0.7361 MB / 0.7907 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)