Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.285/2.285, allocations: 251.1 MB / 266.1 MB, free: 11.59 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00159/0.001589, allocations: 180.6 kB / 325.6 MB, free: 2.801 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.842/2.842, allocations: 205.4 MB / 0.5766 GB, free: 20.8 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001777/0.001777, allocations: 94.31 kB / 0.6811 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000521/0.0005213, allocations: 16.34 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2126, allocations: 106.3 MB / 0.8989 GB, free: 65.42 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001568/0.2143, allocations: 1.088 MB / 0.9 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004995/0.2148, allocations: 226.1 kB / 0.9002 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.219e-05/0.2149, allocations: 0 / 0.9002 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.975e-05/0.2149, allocations: 0 / 0.9002 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.679e-05/0.215, allocations: 15.98 kB / 0.9002 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001961/0.2152, allocations: 15.92 kB / 0.9002 GB, free: 64.07 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.169e-05/0.2153, allocations: 27.95 kB / 0.9002 GB, free: 64.04 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.302e-05/0.2154, allocations: 11.98 kB / 0.9002 GB, free: 64.03 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.9e-05/0.2155, allocations: 11.94 kB / 0.9003 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.27e-05/0.2156, allocations: 19.91 kB / 0.9003 GB, free: 64 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.2156, allocations: 4 kB / 0.9003 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.403e-05/0.2156, allocations: 0 / 0.9003 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.663e-05/0.2157, allocations: 8 kB / 0.9003 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.943e-05/0.2157, allocations: 33.64 kB / 0.9003 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.186e-05/0.2158, allocations: 39.91 kB / 0.9004 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.2158, allocations: 0 / 0.9004 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2158, allocations: 0 / 0.9004 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.94e-06/0.2158, allocations: 0 / 0.9004 GB, free: 63.91 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.0006001/0.2164, allocations: 367.4 kB / 0.9007 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.2165, allocations: 15.97 kB / 0.9007 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.2165, allocations: 0 / 0.9007 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.595e-05/0.2166, allocations: 167 kB / 0.9009 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.2166, allocations: 4 kB / 0.9009 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.2167, allocations: 4 kB / 0.9009 GB, free: 63.27 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.2169, allocations: 65.66 kB / 0.9009 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.217, allocations: 4 kB / 0.9009 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.217, allocations: 4 kB / 0.901 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.217, allocations: 0 / 0.901 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000291/0.2173, allocations: 51.89 kB / 0.901 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004313/0.2177, allocations: 288.7 kB / 0.9013 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.218, allocations: 62.55 kB / 0.9013 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.218, allocations: 3.938 kB / 0.9013 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002614/0.2183, allocations: 83.64 kB / 0.9014 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.104e-06/0.2183, allocations: 0 / 0.9014 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0005891/0.2189, allocations: 125.6 kB / 0.9015 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.219, allocations: 63.36 kB / 0.9016 GB, free: 62.44 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.582e-05/0.219, allocations: 105.8 kB / 0.9017 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.2191, allocations: 25.7 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.227e-05/0.2191, allocations: 95.92 kB / 0.9018 GB, free: 62.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.2192, allocations: 19.8 kB / 0.9018 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-06/0.2192, allocations: 0 / 0.9018 GB, free: 62.18 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.973e-05/0.2192, allocations: 318.8 kB / 0.9021 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.2194, allocations: 27.97 kB / 0.9022 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.2196, allocations: 68.2 kB / 0.9022 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.2198, allocations: 35.98 kB / 0.9023 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2198, allocations: 0 / 0.9023 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004539/0.2202, allocations: 113.5 kB / 0.9024 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.2203, allocations: 8 kB / 0.9024 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.2203, allocations: 0 / 0.9024 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.2203, allocations: 7.984 kB / 0.9024 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.2205, allocations: 16.16 kB / 0.9024 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.2205, allocations: 8.172 kB / 0.9024 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.2207, allocations: 19.86 kB / 0.9024 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.2207, allocations: 8 kB / 0.9024 GB, free: 61.53 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 9.727e-05/0.2208, allocations: 113.8 kB / 0.9025 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.899e-05/0.2208, allocations: 11.92 kB / 0.9026 GB, free: 61.4 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004236/0.2213, allocations: 106 kB / 0.9027 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.2213, allocations: 3.984 kB / 0.9027 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2213, allocations: 3.938 kB / 0.9027 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.2213, allocations: 4 kB / 0.9027 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000573/0.2219, allocations: 362.5 kB / 0.903 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.2219, allocations: 0 / 0.903 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.222, allocations: 12 kB / 0.903 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.222, allocations: 0 / 0.903 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.2221, allocations: 7.984 kB / 0.903 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.2221, allocations: 0 / 0.903 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.2221, allocations: 8.266 kB / 0.903 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003914/0.2225, allocations: 195.4 kB / 0.9032 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.854e-05/0.2225, allocations: 85.09 kB / 0.9033 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.2226, allocations: 11.98 kB / 0.9033 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.2227, allocations: 8 kB / 0.9033 GB, free: 60.51 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.388e-05/0.2228, allocations: 7.938 kB / 0.9033 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.2228, allocations: 4 kB / 0.9033 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.136e-05/0.2229, allocations: 91.25 kB / 0.9034 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4.1e-07/0.2229, allocations: 0 / 0.9034 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003257/0.2232, allocations: 11.91 kB / 0.9034 GB, free: 60.4 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 0.0001332/0.2234, allocations: 107.2 kB / 0.9035 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000386/0.2238, allocations: 72.08 kB / 0.9036 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2238, allocations: 0 / 0.9036 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.224, allocations: 48.34 kB / 0.9037 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.2242, allocations: 8 kB / 0.9037 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003821/0.2246, allocations: 141 kB / 0.9038 GB, free: 59.99 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.2248, allocations: 0.6887 MB / 0.9045 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 4.337e-05/0.2248, allocations: 4.188 kB / 0.9045 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.2249, allocations: 15.42 kB / 0.9045 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of SimCode: time 1.002e-06/0.2249, allocations: 0 / 0.9045 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of Templates: time 0.003236/0.2281, allocations: 0.5434 MB / 0.905 GB, free: 58.72 MB / 0.6042 GB