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 2.755/2.755, allocations: 287.5 MB / 302.4 MB, free: 8.25 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.001413/0.001413, allocations: 181.2 kB / 371 MB, free: 10.87 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.349/2.349, allocations: 205.4 MB / 0.6297 GB, free: 10.62 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.001038/0.001038, allocations: 93.05 kB / 0.743 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006647/0.000665, allocations: 12.19 kB / 0.8658 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2259, allocations: 115.3 MB / 0.9784 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.0009376/0.2269, allocations: 381.8 kB / 0.9787 GB, free: 27.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001427/0.2284, allocations: 1.033 MB / 0.9797 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.756e-05/0.2285, allocations: 0 / 0.9797 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.531e-05/0.2285, allocations: 4 kB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.24e-05/0.2286, allocations: 3.938 kB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.2288, allocations: 39.89 kB / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.992e-05/0.2289, allocations: 31.92 kB / 0.9798 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.305e-05/0.229, allocations: 11.98 kB / 0.9798 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.251e-05/0.2291, allocations: 15.92 kB / 0.9798 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.402e-05/0.2292, allocations: 19.91 kB / 0.9799 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.2292, allocations: 4 kB / 0.9799 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.035e-05/0.2293, allocations: 15.98 kB / 0.9799 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.422e-05/0.2293, allocations: 4 kB / 0.9799 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.986e-05/0.2293, allocations: 37.64 kB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.782e-05/0.2294, allocations: 35.91 kB / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.2295, allocations: 0 / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.354e-06/0.2295, allocations: 0 / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.549e-06/0.2295, allocations: 0 / 0.98 GB, free: 26.71 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.0005266/0.23, allocations: 351.5 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.2301, allocations: 20.02 kB / 0.9803 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.2301, allocations: 3.906 kB / 0.9803 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.776e-05/0.2302, allocations: 178.9 kB / 0.9805 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.2302, allocations: 0 / 0.9805 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.2303, allocations: 8 kB / 0.9805 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.2306, allocations: 61.67 kB / 0.9805 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2306, allocations: 3.938 kB / 0.9806 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.2306, allocations: 4 kB / 0.9806 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.2306, allocations: 0 / 0.9806 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.2309, allocations: 47.95 kB / 0.9806 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005011/0.2314, allocations: 280.9 kB / 0.9809 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.2316, allocations: 54.5 kB / 0.9809 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.2318, allocations: 36.86 kB / 0.981 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.2318, allocations: 4 kB / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.2321, allocations: 67.39 kB / 0.981 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.873e-06/0.2321, allocations: 0 / 0.981 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0005528/0.2327, allocations: 129.5 kB / 0.9811 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.2327, allocations: 51.41 kB / 0.9812 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.291e-05/0.2328, allocations: 113.7 kB / 0.9813 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.2328, allocations: 25.7 kB / 0.9813 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.2329, allocations: 88.14 kB / 0.9814 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.2329, allocations: 15.8 kB / 0.9814 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-06/0.2329, allocations: 4 kB / 0.9814 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.315e-05/0.233, allocations: 318.8 kB / 0.9817 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.2332, allocations: 23.98 kB / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.2333, allocations: 55.41 kB / 0.9818 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.2335, allocations: 31.98 kB / 0.9818 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2335, allocations: 0 / 0.9818 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003884/0.2339, allocations: 109.6 kB / 0.9819 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.234, allocations: 11.94 kB / 0.982 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.234, allocations: 0 / 0.982 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.234, allocations: 0 / 0.982 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.2342, allocations: 20.11 kB / 0.982 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.515e-06/0.2342, allocations: 4 kB / 0.982 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.2343, allocations: 23.78 kB / 0.982 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.2344, allocations: 0 / 0.982 GB, free: 24.38 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.043e-05/0.2345, allocations: 113.8 kB / 0.9821 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.2345, allocations: 4 kB / 0.9821 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003871/0.2349, allocations: 105.5 kB / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2349, allocations: 0 / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2349, allocations: 3.938 kB / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2349, allocations: 0 / 0.9822 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005401/0.2355, allocations: 354.7 kB / 0.9826 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.2355, allocations: 4.062 kB / 0.9826 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.2356, allocations: 15.98 kB / 0.9826 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.2356, allocations: 0 / 0.9826 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.2356, allocations: 4 kB / 0.9826 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2357, allocations: 3.938 kB / 0.9826 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2357, allocations: 7.953 kB / 0.9826 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000368/0.236, allocations: 187.5 kB / 0.9828 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.653e-05/0.2361, allocations: 77.11 kB / 0.9828 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.292e-05/0.2361, allocations: 11.98 kB / 0.9829 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.2363, allocations: 4 kB / 0.9829 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.2363, allocations: 7.984 kB / 0.9829 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2363, allocations: 3.953 kB / 0.9829 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.004e-05/0.2364, allocations: 87.27 kB / 0.983 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.292e-06/0.2364, allocations: 4 kB / 0.983 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003076/0.2367, allocations: 15.84 kB / 0.983 GB, free: 23.28 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.0001509/0.2369, allocations: 103.2 kB / 0.9831 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003791/0.2373, allocations: 63.95 kB / 0.9831 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.2373, allocations: 0 / 0.9831 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.2375, allocations: 40.16 kB / 0.9832 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.2378, allocations: 5.031 kB / 0.9832 GB, free: 23.06 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003516/0.2382, allocations: 136.7 kB / 0.9833 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.2383, allocations: 0.6887 MB / 0.984 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.01e-05/0.2384, allocations: 4 kB / 0.984 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.22e-05/0.2384, allocations: 11.44 kB / 0.984 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of SimCode: time 8.92e-07/0.2385, allocations: 0 / 0.984 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of Templates: time 0.003573/0.242, allocations: 0.6384 MB / 0.9846 GB, free: 21.54 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)