Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.7.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.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.674/1.674, allocations: 252 MB / 267.6 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009381/0.0009382, allocations: 172.7 kB / 327.3 MB, free: 2.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.847/1.847, allocations: 205.4 MB / 0.5783 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006977/0.0006978, allocations: 99.56 kB / 0.6829 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005873/0.0005875, allocations: 11.47 kB / 0.797 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2367, allocations: 106.3 MB / 0.9008 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001333/0.2381, allocations: 1.093 MB / 0.9019 GB, free: 62.78 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003834/0.2385, allocations: 220.3 kB / 0.9021 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.2386, allocations: 0 / 0.9021 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.494e-05/0.2386, allocations: 3.938 kB / 0.9021 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.754e-05/0.2387, allocations: 7.922 kB / 0.9021 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/0.2388, allocations: 23.97 kB / 0.9022 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.411e-05/0.2389, allocations: 43.86 kB / 0.9022 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.239, allocations: 4 kB / 0.9022 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.293e-05/0.2391, allocations: 15.92 kB / 0.9022 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.202e-05/0.2391, allocations: 23.86 kB / 0.9022 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.2392, allocations: 0 / 0.9022 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.249e-05/0.2392, allocations: 4 kB / 0.9022 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.24e-05/0.2392, allocations: 7.969 kB / 0.9022 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.739e-05/0.2392, allocations: 33.7 kB / 0.9023 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.41e-05/0.2393, allocations: 31.94 kB / 0.9023 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2393, allocations: 4 kB / 0.9023 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.885e-06/0.2393, allocations: 0 / 0.9023 GB, free: 62.35 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.2393, allocations: 0 / 0.9023 GB, free: 62.35 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004831/0.2398, allocations: 363.4 kB / 0.9027 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.2399, allocations: 11.97 kB / 0.9027 GB, free: 61.94 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.2399, allocations: 8 kB / 0.9027 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.963e-05/0.24, allocations: 171 kB / 0.9028 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.24, allocations: 4 kB / 0.9028 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.24, allocations: 4 kB / 0.9028 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001826/0.2402, allocations: 61.67 kB / 0.9029 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.2402, allocations: 3.984 kB / 0.9029 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.2403, allocations: 0 / 0.9029 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.2403, allocations: 4 kB / 0.9029 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001695/0.2404, allocations: 51.97 kB / 0.903 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003427/0.2408, allocations: 292.7 kB / 0.9032 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.2409, allocations: 62.61 kB / 0.9033 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.286e-05/0.241, allocations: 32.89 kB / 0.9033 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.2411, allocations: 8 kB / 0.9033 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.2413, allocations: 79.31 kB / 0.9034 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.2413, allocations: 0 / 0.9034 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0003707/0.2417, allocations: 129.6 kB / 0.9035 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/0.2417, allocations: 55.41 kB / 0.9036 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.438e-05/0.2418, allocations: 117.7 kB / 0.9037 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.2418, allocations: 25.7 kB / 0.9037 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.685e-05/0.2418, allocations: 96.06 kB / 0.9038 GB, free: 60.6 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.48e-05/0.2418, allocations: 11.81 kB / 0.9038 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-06/0.2418, allocations: 4 kB / 0.9038 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 3.944e-05/0.2419, allocations: 314.8 kB / 0.9041 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-05/0.242, allocations: 27.97 kB / 0.9042 GB, free: 60.24 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.57e-05/0.2421, allocations: 76.14 kB / 0.9042 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.415e-05/0.2422, allocations: 27.98 kB / 0.9043 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2422, allocations: 0 / 0.9043 GB, free: 60.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002252/0.2424, allocations: 121.5 kB / 0.9044 GB, free: 60 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.2424, allocations: 4 kB / 0.9044 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.2424, allocations: 3.984 kB / 0.9044 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.2425, allocations: 8.156 kB / 0.9044 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.415e-05/0.2426, allocations: 12 kB / 0.9044 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.2426, allocations: 3.984 kB / 0.9044 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.202e-05/0.2427, allocations: 15.86 kB / 0.9044 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.2427, allocations: 8 kB / 0.9044 GB, free: 59.94 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 5.986e-05/0.2427, allocations: 118 kB / 0.9045 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.106e-05/0.2427, allocations: 7.984 kB / 0.9046 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002454/0.243, allocations: 110 kB / 0.9047 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.243, allocations: 4 kB / 0.9047 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.243, allocations: 0 / 0.9047 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.243, allocations: 0 / 0.9047 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003282/0.2434, allocations: 374.4 kB / 0.905 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2434, allocations: 0 / 0.905 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.641e-05/0.2434, allocations: 12 kB / 0.905 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2435, allocations: 384 / 0.905 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.2435, allocations: 7.984 kB / 0.905 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2435, allocations: 4 kB / 0.905 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.2435, allocations: 3.953 kB / 0.905 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002273/0.2437, allocations: 199.5 kB / 0.9052 GB, free: 59.03 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.944e-05/0.2437, allocations: 85.02 kB / 0.9053 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.2438, allocations: 3.984 kB / 0.9053 GB, free: 58.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.311e-05/0.2439, allocations: 8 kB / 0.9053 GB, free: 58.92 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.22e-05/0.2439, allocations: 11.98 kB / 0.9053 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-06/0.2439, allocations: 3.953 kB / 0.9053 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.564e-05/0.244, allocations: 87.27 kB / 0.9054 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3e-07/0.244, allocations: 0 / 0.9054 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000202/0.2442, allocations: 16 kB / 0.9054 GB, free: 58.8 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 9.421e-05/0.2443, allocations: 99.19 kB / 0.9055 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002288/0.2445, allocations: 76.14 kB / 0.9056 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.2445, allocations: 4.062 kB / 0.9056 GB, free: 58.62 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.2446, allocations: 43.84 kB / 0.9057 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.2449, allocations: 9.266 kB / 0.9057 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002886/0.2452, allocations: 166.3 kB / 0.9058 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.2453, allocations: 0.6888 MB / 0.9065 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.674e-05/0.2453, allocations: 7.438 kB / 0.9065 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of SimCode: time 3.31e-07/0.2453, allocations: 0 / 0.9065 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of Templates: time 0.001811/0.2471, allocations: 0.7967 MB / 0.9073 GB, free: 56.85 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)