Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.737/1.737, allocations: 288.4 MB / 304.3 MB, free: 8.086 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009736/0.0009738, allocations: 185.5 kB / 372.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.679/1.679, allocations: 205.4 MB / 0.6316 GB, free: 9.895 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008036/0.0008036, allocations: 86.34 kB / 0.745 GB, free: 5.793 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000735/0.0007351, allocations: 12.28 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2815, allocations: 115.3 MB / 0.9807 GB, free: 27.35 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001066/0.2826, allocations: 390 kB / 0.9811 GB, free: 26.97 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001689/0.2843, allocations: 1.033 MB / 0.9821 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.885e-05/0.2844, allocations: 4 kB / 0.9821 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.923e-05/0.2844, allocations: 3.938 kB / 0.9821 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.641e-05/0.2845, allocations: 3.984 kB / 0.9821 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.2848, allocations: 31.92 kB / 0.9822 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9e-05/0.2849, allocations: 35.84 kB / 0.9822 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.2851, allocations: 11.98 kB / 0.9822 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.823e-05/0.2852, allocations: 15.98 kB / 0.9822 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.396e-05/0.2853, allocations: 11.92 kB / 0.9822 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.2853, allocations: 7.938 kB / 0.9822 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.151e-05/0.2854, allocations: 23.92 kB / 0.9823 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.605e-05/0.2854, allocations: 7.984 kB / 0.9823 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.92e-05/0.2855, allocations: 41.62 kB / 0.9823 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.2856, allocations: 23.94 kB / 0.9823 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.2856, allocations: 8 kB / 0.9823 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.905e-06/0.2856, allocations: 0 / 0.9823 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.2856, allocations: 0 / 0.9823 GB, free: 25.69 MB / 0.6198 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.0005592/0.2862, allocations: 351.7 kB / 0.9827 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.206e-05/0.2863, allocations: 8.031 kB / 0.9827 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.712e-05/0.2863, allocations: 12.83 kB / 0.9827 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.2864, allocations: 172.3 kB / 0.9829 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.2865, allocations: 4.375 kB / 0.9829 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.2865, allocations: 384 / 0.9829 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.2868, allocations: 62.23 kB / 0.9829 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.2868, allocations: 8.125 kB / 0.9829 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.2869, allocations: 7.938 kB / 0.9829 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2869, allocations: 0 / 0.9829 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002575/0.2871, allocations: 47.95 kB / 0.983 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000571/0.2877, allocations: 284.8 kB / 0.9833 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.2879, allocations: 54.5 kB / 0.9833 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.2881, allocations: 32.92 kB / 0.9833 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.2881, allocations: 4 kB / 0.9834 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.2884, allocations: 67.39 kB / 0.9834 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.964e-06/0.2884, allocations: 0 / 0.9834 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.000512/0.2889, allocations: 133.8 kB / 0.9835 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.289, allocations: 51.41 kB / 0.9836 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.053e-05/0.289, allocations: 109.8 kB / 0.9837 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.2891, allocations: 29.7 kB / 0.9837 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.2891, allocations: 88.14 kB / 0.9838 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.2892, allocations: 15.81 kB / 0.9838 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.722e-06/0.2892, allocations: 4 kB / 0.9838 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.959e-05/0.2892, allocations: 314.8 kB / 0.9841 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.2894, allocations: 23.98 kB / 0.9842 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.2895, allocations: 55.41 kB / 0.9842 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.2898, allocations: 91.33 kB / 0.9843 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2898, allocations: 3.938 kB / 0.9843 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003698/0.2902, allocations: 113.5 kB / 0.9844 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.2902, allocations: 10.03 kB / 0.9844 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2903, allocations: 0 / 0.9844 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2903, allocations: 0 / 0.9844 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.2904, allocations: 15.98 kB / 0.9844 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2905, allocations: 7.938 kB / 0.9844 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.98e-05/0.2906, allocations: 15.92 kB / 0.9845 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.2906, allocations: 4.031 kB / 0.9845 GB, free: 23.29 MB / 0.6198 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 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.146e-05/0.2907, allocations: 117.8 kB / 0.9846 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/0.2907, allocations: 4 kB / 0.9846 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003509/0.2911, allocations: 109.5 kB / 0.9847 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2911, allocations: 3.984 kB / 0.9847 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2911, allocations: 0 / 0.9847 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.561e-05/0.2911, allocations: 81.02 kB / 0.9848 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/0.2912, allocations: 11.92 kB / 0.9848 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.734e-05/0.2913, allocations: 4 kB / 0.9848 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.2913, allocations: 11.92 kB / 0.9848 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004066/0.2917, allocations: 180.9 kB / 0.985 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003427/0.2921, allocations: 262.8 kB / 0.9852 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000138/0.2922, allocations: 31.97 kB / 0.9852 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.54e-05/0.2923, allocations: 83.28 kB / 0.9853 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of Backend: time 7.41e-07/0.2923, allocations: 0 / 0.9853 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006678/0.293, allocations: 134.3 kB / 0.9854 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0004796/0.2935, allocations: 0.5799 MB / 0.986 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of Templates: time 0.003786/0.2973, allocations: 0.7407 MB / 0.9867 GB, free: 20.85 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)