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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01055/0.01055, allocations: 106.6 kB / 15.05 MB, free: 5.93 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.001098/0.001098, allocations: 186.4 kB / 15.94 MB, free: 5.895 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.027/2.027, allocations: 194.6 MB / 211.3 MB, free: 11.04 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.193/2.193, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004751/0.0004751, allocations: 12 kB / 0.587 GB, free: 2.062 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6633/0.6639, allocations: 98.72 MB / 0.6834 GB, free: 16.75 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2232/0.8871, allocations: 124.5 MB / 0.8051 GB, free: 1.617 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.8874, allocations: 71.95 kB / 0.8051 GB, free: 1.547 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003596/0.891, allocations: 0.8735 MB / 0.806 GB, free: 0.6719 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.334e-06/0.8911, allocations: 0 / 0.806 GB, free: 0.6719 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.784e-06/0.8911, allocations: 0 / 0.806 GB, free: 0.6719 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006386/0.8918, allocations: 363.2 kB / 0.8063 GB, free: 276 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.8918, allocations: 8.031 kB / 0.8063 GB, free: 268 kB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.473e-05/0.8919, allocations: 34.56 kB / 0.8064 GB, free: 224 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.8919, allocations: 7.938 kB / 0.8064 GB, free: 216 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.8921, allocations: 174.9 kB / 0.8065 GB, free: 0 / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/0.8921, allocations: 4.078 kB / 0.8066 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.8922, allocations: 4 kB / 0.8066 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.8925, allocations: 77.5 kB / 0.8066 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.8925, allocations: 4 kB / 0.8066 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.8925, allocations: 0 / 0.8066 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-06/0.8925, allocations: 0 / 0.8066 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/0.8928, allocations: 47.95 kB / 0.8067 GB, free: 15.86 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005297/0.8934, allocations: 280.8 kB / 0.8069 GB, free: 15.54 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.8937, allocations: 66.48 kB / 0.807 GB, free: 15.46 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.8938, allocations: 4 kB / 0.807 GB, free: 15.46 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003089/0.8941, allocations: 83.62 kB / 0.8071 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.024e-06/0.8941, allocations: 0 / 0.8071 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0006705/0.8948, allocations: 141.4 kB / 0.8072 GB, free: 15.22 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.8948, allocations: 55.41 kB / 0.8073 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.231e-05/0.8949, allocations: 96.98 kB / 0.8074 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.895, allocations: 29.7 kB / 0.8074 GB, free: 15.02 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.499e-05/0.895, allocations: 88.14 kB / 0.8075 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.578e-05/0.8951, allocations: 19.81 kB / 0.8075 GB, free: 14.91 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-06/0.8951, allocations: 4 kB / 0.8075 GB, free: 14.9 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.8952, allocations: 314.8 kB / 0.8078 GB, free: 14.59 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.8954, allocations: 27.98 kB / 0.8078 GB, free: 14.56 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.8956, allocations: 68.2 kB / 0.8079 GB, free: 14.48 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001867/0.8959, allocations: 31.98 kB / 0.8079 GB, free: 14.45 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.8959, allocations: 8 kB / 0.8079 GB, free: 14.44 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004692/0.8964, allocations: 113.5 kB / 0.808 GB, free: 14.32 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.8964, allocations: 9.562 kB / 0.8081 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.8964, allocations: 160 / 0.8081 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.8964, allocations: 4 kB / 0.8081 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.8966, allocations: 15.98 kB / 0.8081 GB, free: 14.29 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.8966, allocations: 7.953 kB / 0.8081 GB, free: 14.29 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.8968, allocations: 19.89 kB / 0.8081 GB, free: 14.27 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.8968, allocations: 4 kB / 0.8081 GB, free: 14.26 MB / 0.6355 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 0.0001171/0.8969, allocations: 117.8 kB / 0.8082 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.897, allocations: 4 kB / 0.8082 GB, free: 14.13 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004987/0.8975, allocations: 110 kB / 0.8083 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.8975, allocations: 0 / 0.8083 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.8975, allocations: 0 / 0.8083 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.8975, allocations: 7.938 kB / 0.8083 GB, free: 14.01 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007086/0.8982, allocations: 366.3 kB / 0.8087 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.8983, allocations: 0 / 0.8087 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.8984, allocations: 11.98 kB / 0.8087 GB, free: 13.58 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.8984, allocations: 4 kB / 0.8087 GB, free: 13.58 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.8984, allocations: 4 kB / 0.8087 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.8985, allocations: 3.953 kB / 0.8087 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.8985, allocations: 4.188 kB / 0.8087 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004785/0.899, allocations: 199.9 kB / 0.8089 GB, free: 13.36 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.899, allocations: 88.89 kB / 0.809 GB, free: 13.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.8991, allocations: 4 kB / 0.809 GB, free: 13.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.8992, allocations: 15.98 kB / 0.809 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.8993, allocations: 7.938 kB / 0.809 GB, free: 13.22 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.8993, allocations: 4 kB / 0.809 GB, free: 13.22 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.589e-05/0.8994, allocations: 83.28 kB / 0.8091 GB, free: 13.14 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.31e-07/0.8994, allocations: 4 kB / 0.8091 GB, free: 13.13 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002987/0.8997, allocations: 8 kB / 0.8091 GB, free: 13.12 MB / 0.6355 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.000869/0.9006, allocations: 0.7344 MB / 0.8098 GB, free: 12.36 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004224/0.901, allocations: 71.89 kB / 0.8099 GB, free: 12.29 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.9011, allocations: 320 / 0.8099 GB, free: 12.29 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001965/0.9013, allocations: 43.91 kB / 0.8099 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.9016, allocations: 9.844 kB / 0.8099 GB, free: 12.24 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009314/0.9025, allocations: 0.9607 MB / 0.8109 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.9028, allocations: 0.6887 MB / 0.8116 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.339e-05/0.9029, allocations: 4.188 kB / 0.8116 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.338e-05/0.903, allocations: 15.38 kB / 0.8116 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of SimCode: time 1.142e-06/0.903, allocations: 3.938 kB / 0.8116 GB, free: 10.48 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.9254, allocations: 1.344 MB / 0.8129 GB, free: 9.242 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003432/0.9258, allocations: 185.5 kB / 0.8131 GB, free: 9.004 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.383/3.309, allocations: 0 / 0.8131 GB, free: 9.004 MB / 0.6355 GB