Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.009095/0.009095, allocations: 108.2 kB / 15.06 MB, free: 5.562 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001108/0.001108, allocations: 184.4 kB / 15.95 MB, free: 5.523 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.128/2.128, allocations: 194.6 MB / 211.3 MB, free: 11.3 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.371/2.371, allocations: 236.2 MB / 492.6 MB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004766/0.0004768, allocations: 19.98 kB / 0.5869 GB, free: 2.195 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5422/0.5427, allocations: 98.71 MB / 0.6833 GB, free: 16.86 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001507/0.5442, allocations: 1.082 MB / 0.6844 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0004698/0.5447, allocations: 215.7 kB / 0.6846 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.673e-05/0.5448, allocations: 1.062 kB / 0.6846 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 1.909e-05/0.5448, allocations: 0.5625 kB / 0.6846 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 5.707e-05/0.5449, allocations: 10.53 kB / 0.6846 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.000152/0.545, allocations: 19.64 kB / 0.6846 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 6.542e-05/0.5451, allocations: 29.2 kB / 0.6847 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 8.71e-05/0.5452, allocations: 10.8 kB / 0.6847 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 6.006e-05/0.5453, allocations: 17.16 kB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 4.839e-05/0.5453, allocations: 17.88 kB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.5454, allocations: 2.469 kB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.26e-05/0.5454, allocations: 1.125 kB / 0.6847 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 1.679e-05/0.5454, allocations: 7.297 kB / 0.6847 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 3.012e-05/0.5455, allocations: 34.67 kB / 0.6848 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 7.544e-05/0.5455, allocations: 30.78 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.752e-06/0.5456, allocations: 0 / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.17e-06/0.5456, allocations: 1.312 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.125e-06/0.5456, allocations: 0 / 0.6848 GB, free: 15.81 MB / 0.5261 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.0004757/0.5461, allocations: 365.4 kB / 0.6851 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.5461, allocations: 8.594 kB / 0.6851 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.5462, allocations: 3.719 kB / 0.6851 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.572e-05/0.5463, allocations: 169.7 kB / 0.6853 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.5463, allocations: 7.156 kB / 0.6853 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.5463, allocations: 2.438 kB / 0.6853 GB, free: 15.24 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/0.5466, allocations: 73.45 kB / 0.6854 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.5466, allocations: 1.125 kB / 0.6854 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.5466, allocations: 0.6562 kB / 0.6854 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.353e-06/0.5466, allocations: 1.344 kB / 0.6854 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002359/0.5469, allocations: 55.67 kB / 0.6854 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004565/0.5473, allocations: 283.4 kB / 0.6857 GB, free: 14.89 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002009/0.5476, allocations: 67.3 kB / 0.6858 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.5476, allocations: 0.7031 kB / 0.6858 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.5478, allocations: 80.97 kB / 0.6859 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=6): time 3.248e-06/0.5479, allocations: 4 kB / 0.6859 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of matching and sorting (n=6): time 0.0005057/0.5484, allocations: 133.9 kB / 0.686 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/0.5484, allocations: 65.31 kB / 0.686 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.429e-05/0.5485, allocations: 104.8 kB / 0.6861 GB, free: 14.56 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.5485, allocations: 31.72 kB / 0.6862 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.568e-05/0.5486, allocations: 86.16 kB / 0.6863 GB, free: 14.44 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.5486, allocations: 15.73 kB / 0.6863 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-06/0.5486, allocations: 1.5 kB / 0.6863 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.627e-05/0.5487, allocations: 317.9 kB / 0.6866 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.5488, allocations: 32.3 kB / 0.6866 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.549, allocations: 61.72 kB / 0.6867 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.5491, allocations: 37.02 kB / 0.6867 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.243e-06/0.5491, allocations: 0 / 0.6867 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003463/0.5495, allocations: 122.1 kB / 0.6868 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.5495, allocations: 8.203 kB / 0.6868 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.227e-06/0.5496, allocations: 1.031 kB / 0.6868 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.5496, allocations: 6.766 kB / 0.6868 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.5497, allocations: 20.31 kB / 0.6869 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.5497, allocations: 1.531 kB / 0.6869 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.295e-05/0.5498, allocations: 18.64 kB / 0.6869 GB, free: 13.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.5499, allocations: 2 kB / 0.6869 GB, free: 13.97 MB / 0.5261 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 8.428e-05/0.55, allocations: 115.4 kB / 0.687 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.832e-05/0.55, allocations: 1.969 kB / 0.687 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003565/0.5504, allocations: 117.5 kB / 0.6871 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.601e-06/0.5504, allocations: 0 / 0.6871 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.151e-06/0.5504, allocations: 1.125 kB / 0.6871 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.815e-06/0.5504, allocations: 0.6562 kB / 0.6871 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005148/0.5509, allocations: 376.4 kB / 0.6875 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.551, allocations: 1.438 kB / 0.6875 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.373e-05/0.551, allocations: 11.78 kB / 0.6875 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.406e-06/0.5511, allocations: 0 / 0.6875 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.5511, allocations: 1.344 kB / 0.6875 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.618e-06/0.5511, allocations: 5.625 kB / 0.6875 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.54e-06/0.5511, allocations: 4.328 kB / 0.6875 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003444/0.5515, allocations: 202.5 kB / 0.6877 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.476e-05/0.5515, allocations: 83.27 kB / 0.6878 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/0.5515, allocations: 2.266 kB / 0.6878 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.5517, allocations: 10.45 kB / 0.6878 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/0.5517, allocations: 13.95 kB / 0.6878 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.5518, allocations: 1.594 kB / 0.6878 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.397e-05/0.5518, allocations: 90.45 kB / 0.6879 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.99e-07/0.5518, allocations: 3.938 kB / 0.6879 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003378/0.5522, allocations: 12.95 kB / 0.6879 GB, free: 13.09 MB / 0.5261 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.0001048/0.5523, allocations: 99.64 kB / 0.688 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003342/0.5526, allocations: 75.59 kB / 0.6881 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.758e-06/0.5526, allocations: 0 / 0.6881 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.5528, allocations: 37.44 kB / 0.6881 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.553, allocations: 9.5 kB / 0.6881 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003614/0.5534, allocations: 141.2 kB / 0.6882 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000131/0.5536, allocations: 0.6851 MB / 0.6889 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.056e-05/0.5536, allocations: 4.016 kB / 0.6889 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.986e-05/0.5537, allocations: 14.75 kB / 0.6889 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of SimCode: time 1.359e-06/0.5537, allocations: 0 / 0.6889 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of Templates: time 0.003238/0.5569, allocations: 0.5541 MB / 0.6895 GB, free: 12.07 MB / 0.5261 GB