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.829/1.829, allocations: 288.3 MB / 303.2 MB, free: 8.203 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.001053/0.001053, allocations: 191.6 kB / 371.9 MB, free: 10.25 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.789/1.789, allocations: 205.4 MB / 0.6306 GB, free: 9.988 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.0009254/0.0009255, allocations: 94.81 kB / 0.7439 GB, free: 5.91 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000381/0.000381, allocations: 15.08 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2672, allocations: 115.3 MB / 0.9794 GB, free: 27.66 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008545/0.2681, allocations: 386 kB / 0.9798 GB, free: 27.28 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2692, allocations: 1.033 MB / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.078e-05/0.2693, allocations: 0 / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.2693, allocations: 0 / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.907e-05/0.2694, allocations: 3.984 kB / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002205/0.2696, allocations: 31.86 kB / 0.9808 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.097e-05/0.2697, allocations: 27.97 kB / 0.9809 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.2698, allocations: 11.97 kB / 0.9809 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.233e-05/0.2699, allocations: 11.94 kB / 0.9809 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.92e-05/0.2699, allocations: 19.92 kB / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.223e-05/0.27, allocations: 0 / 0.9809 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.096e-05/0.27, allocations: 15.92 kB / 0.9809 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.295e-05/0.27, allocations: 11.97 kB / 0.9809 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.809e-05/0.2701, allocations: 33.64 kB / 0.981 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.456e-05/0.2702, allocations: 27.94 kB / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2702, allocations: 0 / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.763e-06/0.2702, allocations: 4 kB / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.2702, allocations: 4 kB / 0.981 GB, free: 26.02 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.0004524/0.2706, allocations: 355.5 kB / 0.9813 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2707, allocations: 8.031 kB / 0.9814 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.2707, allocations: 7.906 kB / 0.9814 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.713e-05/0.2708, allocations: 167 kB / 0.9815 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.2709, allocations: 8 kB / 0.9815 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.2709, allocations: 4 kB / 0.9815 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.2711, allocations: 65.66 kB / 0.9816 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2711, allocations: 0 / 0.9816 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.2711, allocations: 4 kB / 0.9816 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.2711, allocations: 4 kB / 0.9816 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.2713, allocations: 47.91 kB / 0.9816 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004245/0.2717, allocations: 280.9 kB / 0.9819 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.2719, allocations: 54.55 kB / 0.982 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.2719, allocations: 0 / 0.982 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.2721, allocations: 75.42 kB / 0.982 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.183e-06/0.2721, allocations: 0 / 0.982 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0003838/0.2725, allocations: 125.5 kB / 0.9822 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.2726, allocations: 51.41 kB / 0.9822 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.186e-05/0.2727, allocations: 121.8 kB / 0.9823 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.2727, allocations: 25.7 kB / 0.9824 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.096e-05/0.2727, allocations: 88.14 kB / 0.9824 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.2727, allocations: 7.812 kB / 0.9824 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.2727, allocations: 0 / 0.9824 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.782e-05/0.2728, allocations: 326.8 kB / 0.9828 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-05/0.2729, allocations: 23.98 kB / 0.9828 GB, free: 24 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.2731, allocations: 59.34 kB / 0.9828 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.2732, allocations: 31.98 kB / 0.9829 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2732, allocations: 3.938 kB / 0.9829 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002454/0.2734, allocations: 105.6 kB / 0.983 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.2735, allocations: 8.125 kB / 0.983 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.2735, allocations: 4 kB / 0.983 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2735, allocations: 0 / 0.983 GB, free: 23.77 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.2736, allocations: 19.92 kB / 0.983 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.2736, allocations: 4 kB / 0.983 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.482e-05/0.2737, allocations: 19.84 kB / 0.983 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.2737, allocations: 3.984 kB / 0.983 GB, free: 23.73 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 7.22e-05/0.2738, allocations: 121.8 kB / 0.9831 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.939e-06/0.2738, allocations: 4 kB / 0.9831 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002482/0.2741, allocations: 101.5 kB / 0.9832 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2741, allocations: 0 / 0.9832 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2741, allocations: 0 / 0.9832 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.2741, allocations: 4 kB / 0.9832 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003537/0.2745, allocations: 346.8 kB / 0.9836 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2745, allocations: 0 / 0.9836 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.877e-05/0.2746, allocations: 23.97 kB / 0.9836 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2746, allocations: 4 kB / 0.9836 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-06/0.2746, allocations: 0 / 0.9836 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2746, allocations: 0 / 0.9836 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.2746, allocations: 3.938 kB / 0.9836 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.2748, allocations: 191.5 kB / 0.9838 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.2749, allocations: 81.09 kB / 0.9839 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.2749, allocations: 8 kB / 0.9839 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.367e-05/0.275, allocations: 4 kB / 0.9839 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.634e-05/0.275, allocations: 7.984 kB / 0.9839 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-06/0.275, allocations: 0 / 0.9839 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.623e-05/0.275, allocations: 87.27 kB / 0.984 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2751, allocations: 7.938 kB / 0.984 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002251/0.2753, allocations: 15.91 kB / 0.984 GB, free: 22.63 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.0001549/0.2754, allocations: 103.2 kB / 0.9841 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002253/0.2757, allocations: 75.89 kB / 0.9842 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2757, allocations: 0 / 0.9842 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.971e-05/0.2758, allocations: 35.91 kB / 0.9842 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.276, allocations: 8.625 kB / 0.9842 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002967/0.2763, allocations: 140.9 kB / 0.9843 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.2764, allocations: 0.6887 MB / 0.985 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.96e-05/0.2765, allocations: 0 / 0.985 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.066e-05/0.2765, allocations: 11.44 kB / 0.985 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.2765, allocations: 0 / 0.985 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of Templates: time 0.00276/0.2793, allocations: 0.6307 MB / 0.9856 GB, free: 20.89 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)