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 3.021/3.021, allocations: 287.3 MB / 302.3 MB, free: 8.316 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.001564/0.001564, allocations: 177.1 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.192/2.192, allocations: 205.4 MB / 0.6295 GB, free: 10.6 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.001079/0.001079, allocations: 94.86 kB / 0.7428 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005065/0.0005067, allocations: 19.72 kB / 0.8656 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.255, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0008828/0.2559, allocations: 393.8 kB / 0.9786 GB, free: 28 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001356/0.2573, allocations: 1.025 MB / 0.9796 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.811e-05/0.2574, allocations: 3.938 kB / 0.9796 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.601e-05/0.2574, allocations: 3.984 kB / 0.9796 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.229e-05/0.2575, allocations: 4 kB / 0.9796 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.2577, allocations: 31.84 kB / 0.9796 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.64e-05/0.2578, allocations: 23.97 kB / 0.9796 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.86e-05/0.2579, allocations: 8 kB / 0.9796 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.414e-05/0.258, allocations: 19.91 kB / 0.9797 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.047e-05/0.2581, allocations: 19.92 kB / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.2581, allocations: 0 / 0.9797 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.387e-05/0.2581, allocations: 15.98 kB / 0.9797 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.539e-05/0.2582, allocations: 11.92 kB / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.924e-05/0.2582, allocations: 29.7 kB / 0.9797 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.054e-05/0.2583, allocations: 31.92 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2583, allocations: 3.938 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2583, allocations: 0 / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.2584, allocations: 7.938 kB / 0.9798 GB, free: 26.74 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.0005004/0.2589, allocations: 355.5 kB / 0.9801 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2589, allocations: 12.02 kB / 0.9801 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.531e-05/0.259, allocations: 7.906 kB / 0.9801 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.603e-05/0.2591, allocations: 167 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.2591, allocations: 8 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.2591, allocations: 0 / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.2594, allocations: 69.67 kB / 0.9804 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2594, allocations: 4 kB / 0.9804 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.2594, allocations: 0 / 0.9804 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2594, allocations: 3.984 kB / 0.9804 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002816/0.2597, allocations: 51.91 kB / 0.9804 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004875/0.2602, allocations: 276.9 kB / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.2604, allocations: 46.56 kB / 0.9807 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.2605, allocations: 4.078 kB / 0.9807 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.2608, allocations: 75.33 kB / 0.9808 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.294e-06/0.2608, allocations: 0 / 0.9808 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0005552/0.2613, allocations: 121.5 kB / 0.9809 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.2614, allocations: 63.38 kB / 0.981 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.607e-05/0.2615, allocations: 109.8 kB / 0.9811 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.2615, allocations: 33.7 kB / 0.9811 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.634e-05/0.2616, allocations: 84.14 kB / 0.9812 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.2616, allocations: 11.81 kB / 0.9812 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.2616, allocations: 0 / 0.9812 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.101e-05/0.2617, allocations: 318.8 kB / 0.9815 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001496/0.2618, allocations: 23.98 kB / 0.9815 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.262, allocations: 59.34 kB / 0.9816 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.2622, allocations: 31.98 kB / 0.9816 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.2622, allocations: 4 kB / 0.9816 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003843/0.2626, allocations: 113.5 kB / 0.9817 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2626, allocations: 5.875 kB / 0.9817 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2626, allocations: 128 / 0.9817 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.2627, allocations: 8 kB / 0.9818 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.2628, allocations: 19.92 kB / 0.9818 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.2629, allocations: 480 / 0.9818 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.263, allocations: 15.84 kB / 0.9818 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.263, allocations: 3.953 kB / 0.9818 GB, free: 24.45 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.601e-05/0.2631, allocations: 117.8 kB / 0.9819 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.586e-05/0.2631, allocations: 11.94 kB / 0.9819 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003809/0.2635, allocations: 93.62 kB / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.2635, allocations: 3.984 kB / 0.982 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2635, allocations: 3.938 kB / 0.982 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2636, allocations: 4 kB / 0.982 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005241/0.2641, allocations: 346.8 kB / 0.9823 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2641, allocations: 4 kB / 0.9824 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.2642, allocations: 16.05 kB / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2642, allocations: 4 kB / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.2643, allocations: 0 / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2643, allocations: 0 / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2643, allocations: 0 / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003626/0.2646, allocations: 203.4 kB / 0.9826 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.688e-05/0.2647, allocations: 85.09 kB / 0.9826 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.949e-05/0.2647, allocations: 0 / 0.9826 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.2649, allocations: 4 kB / 0.9827 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.405e-05/0.2649, allocations: 7.984 kB / 0.9827 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.265, allocations: 0 / 0.9827 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.067e-05/0.265, allocations: 95.22 kB / 0.9827 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.4e-07/0.265, allocations: 0 / 0.9827 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003316/0.2654, allocations: 15.91 kB / 0.9828 GB, free: 23.35 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.0001591/0.2655, allocations: 103.2 kB / 0.9829 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003716/0.2659, allocations: 68.08 kB / 0.9829 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2659, allocations: 4.062 kB / 0.9829 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001655/0.2661, allocations: 31.92 kB / 0.983 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.2664, allocations: 7.984 kB / 0.983 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/0.2667, allocations: 144.6 kB / 0.9831 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.2669, allocations: 0.6887 MB / 0.9838 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.207e-05/0.2669, allocations: 0 / 0.9838 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.076e-05/0.267, allocations: 11.44 kB / 0.9838 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of SimCode: time 6.11e-07/0.267, allocations: 0 / 0.9838 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of Templates: time 0.003449/0.2704, allocations: 0.6319 MB / 0.9844 GB, free: 21.61 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)