Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.845/1.845, allocations: 287.5 MB / 302.6 MB, free: 8.348 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.001188/0.001188, allocations: 178.6 kB / 371.2 MB, free: 10.83 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.708/1.708, allocations: 205.4 MB / 0.6298 GB, free: 10.53 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.0008815/0.0008815, allocations: 100.4 kB / 0.7432 GB, free: 6.527 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004463/0.0004463, allocations: 15.56 kB / 0.8661 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2969, allocations: 115.3 MB / 0.9787 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.00124/0.2982, allocations: 389.8 kB / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.2998, allocations: 1.028 MB / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.098e-05/0.3, allocations: 0 / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.338e-05/0.3, allocations: 7.922 kB / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.664e-05/0.3001, allocations: 0 / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.3005, allocations: 39.91 kB / 0.9801 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.902e-05/0.3006, allocations: 35.86 kB / 0.9801 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.3008, allocations: 11.98 kB / 0.9802 GB, free: 26.66 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.3009, allocations: 8 kB / 0.9802 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.271e-05/0.301, allocations: 19.91 kB / 0.9802 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.301, allocations: 4 kB / 0.9802 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.422e-05/0.3011, allocations: 19.92 kB / 0.9802 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.934e-05/0.3011, allocations: 3.984 kB / 0.9802 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.039e-05/0.3012, allocations: 33.7 kB / 0.9802 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.3013, allocations: 27.94 kB / 0.9803 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 1.013e-05/0.3014, allocations: 4 kB / 0.9803 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.845e-06/0.3014, allocations: 0 / 0.9803 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.3014, allocations: 0 / 0.9803 GB, free: 26.54 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.0006223/0.302, allocations: 351.7 kB / 0.9806 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.3021, allocations: 12.03 kB / 0.9806 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.729e-05/0.3021, allocations: 8.844 kB / 0.9806 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.3023, allocations: 176.3 kB / 0.9808 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.3023, allocations: 384 / 0.9808 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.429e-05/0.3023, allocations: 4.375 kB / 0.9808 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.3026, allocations: 66.22 kB / 0.9809 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.3026, allocations: 192 / 0.9809 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.3026, allocations: 3.938 kB / 0.9809 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.3026, allocations: 0 / 0.9809 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.3029, allocations: 51.95 kB / 0.9809 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006079/0.3035, allocations: 284.7 kB / 0.9812 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.3036, allocations: 58.48 kB / 0.9812 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.922e-05/0.3037, allocations: 32.94 kB / 0.9813 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.3038, allocations: 3.938 kB / 0.9813 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002383/0.304, allocations: 75.38 kB / 0.9813 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.134e-06/0.304, allocations: 0 / 0.9813 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0004836/0.3045, allocations: 129.6 kB / 0.9815 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/0.3046, allocations: 51.41 kB / 0.9815 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3047, allocations: 105.8 kB / 0.9816 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.3047, allocations: 25.7 kB / 0.9816 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.409e-05/0.3048, allocations: 92.12 kB / 0.9817 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.3048, allocations: 7.812 kB / 0.9817 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-06/0.3049, allocations: 4 kB / 0.9817 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.305, allocations: 318.8 kB / 0.982 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.492e-05/0.3051, allocations: 27.97 kB / 0.9821 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.3052, allocations: 47.42 kB / 0.9821 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.3054, allocations: 99.27 kB / 0.9822 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3054, allocations: 0 / 0.9822 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002578/0.3057, allocations: 117.4 kB / 0.9823 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.3057, allocations: 4 kB / 0.9823 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3057, allocations: 8.125 kB / 0.9823 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3057, allocations: 0 / 0.9823 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.3059, allocations: 15.98 kB / 0.9824 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.3059, allocations: 0 / 0.9824 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.007e-05/0.306, allocations: 11.94 kB / 0.9824 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.306, allocations: 8 kB / 0.9824 GB, free: 24.13 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 0.0001007/0.3061, allocations: 121.8 kB / 0.9825 GB, free: 24 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.444e-05/0.3061, allocations: 4 kB / 0.9825 GB, free: 24 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002751/0.3064, allocations: 109.5 kB / 0.9826 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.3064, allocations: 0 / 0.9826 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3064, allocations: 0 / 0.9826 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.3064, allocations: 0 / 0.9826 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.3069, allocations: 358.3 kB / 0.9829 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3069, allocations: 0 / 0.9829 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.889e-05/0.307, allocations: 11.98 kB / 0.983 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.307, allocations: 4 kB / 0.983 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.307, allocations: 7.938 kB / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.307, allocations: 0 / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.307, allocations: 0 / 0.983 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.3073, allocations: 191.8 kB / 0.9831 GB, free: 23.26 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.392e-05/0.3073, allocations: 85 kB / 0.9832 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.3074, allocations: 3.938 kB / 0.9832 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-05/0.3074, allocations: 12.06 kB / 0.9832 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.231e-05/0.3075, allocations: 11.92 kB / 0.9833 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.3075, allocations: 7.938 kB / 0.9833 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.749e-05/0.3076, allocations: 83.73 kB / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.3076, allocations: 0 / 0.9833 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002488/0.3078, allocations: 19.98 kB / 0.9834 GB, free: 23.02 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000179/0.308, allocations: 101.1 kB / 0.9835 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002696/0.3083, allocations: 64.08 kB / 0.9835 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3083, allocations: 8.062 kB / 0.9835 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.3084, allocations: 31.97 kB / 0.9836 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.3088, allocations: 12.73 kB / 0.9836 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004882/0.3093, allocations: 136.7 kB / 0.9837 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.3096, allocations: 0.6809 MB / 0.9844 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.956e-05/0.3097, allocations: 7.984 kB / 0.9844 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.321e-05/0.3097, allocations: 7.438 kB / 0.9844 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of SimCode: time 8.42e-07/0.3097, allocations: 0 / 0.9844 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of Templates: time 0.003336/0.3131, allocations: 0.6355 MB / 0.985 GB, free: 21.29 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)