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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 4.065/4.065, allocations: 433.2 MB / 440.7 MB, free: 4.531 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.461e-05/2.461e-05, allocations: 5.25 kB / 0.5325 GB, free: 12.72 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.217, allocations: 98.74 MB / 0.6289 GB, free: 9.055 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2386/0.4556, allocations: 123.8 MB / 0.7498 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/0.456, allocations: 75.94 kB / 0.7499 GB, free: 13.03 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004196/0.4602, allocations: 0.8603 MB / 0.7507 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.714e-06/0.4603, allocations: 0 / 0.7507 GB, free: 12.17 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.4603, allocations: 0 / 0.7507 GB, free: 12.17 MB / 0.6355 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.000743/0.4611, allocations: 360 kB / 0.7511 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.4612, allocations: 11.97 kB / 0.7511 GB, free: 11.76 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.634e-05/0.4612, allocations: 11.86 kB / 0.7511 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001792/0.4614, allocations: 171 kB / 0.7512 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/0.4615, allocations: 4 kB / 0.7512 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.4615, allocations: 3.984 kB / 0.7512 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001364/0.4616, allocations: 20 kB / 0.7513 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.4618, allocations: 41.69 kB / 0.7513 GB, free: 11.47 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.4618, allocations: 0 / 0.7513 GB, free: 11.47 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.4619, allocations: 4 kB / 0.7513 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.4619, allocations: 4 kB / 0.7513 GB, free: 11.46 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006623/0.4626, allocations: 253.3 kB / 0.7516 GB, free: 11.18 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.4628, allocations: 38.58 kB / 0.7516 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.082e-05/0.4629, allocations: 21.11 kB / 0.7516 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.4629, allocations: 0 / 0.7516 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001843/0.4631, allocations: 67.39 kB / 0.7517 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 6.953e-06/0.4631, allocations: 0 / 0.7517 GB, free: 11.03 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002932/0.4634, allocations: 73.48 kB / 0.7517 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.4635, allocations: 51.41 kB / 0.7518 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.4636, allocations: 97 kB / 0.7519 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.077e-05/0.4637, allocations: 25.7 kB / 0.7519 GB, free: 10.75 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.378e-05/0.4638, allocations: 96.06 kB / 0.752 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.4638, allocations: 15.89 kB / 0.752 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.226e-06/0.4639, allocations: 0 / 0.752 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.464, allocations: 310.8 kB / 0.7523 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.005e-05/0.4641, allocations: 12 kB / 0.7523 GB, free: 10.31 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000102/0.4642, allocations: 44.28 kB / 0.7524 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.212e-05/0.4643, allocations: 23.94 kB / 0.7524 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.4643, allocations: 0 / 0.7524 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002612/0.4646, allocations: 73.72 kB / 0.7525 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.4647, allocations: 4 kB / 0.7525 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.4647, allocations: 7.938 kB / 0.7525 GB, free: 10.14 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.4647, allocations: 4.156 kB / 0.7525 GB, free: 10.14 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.465, allocations: 15.98 kB / 0.7525 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.465, allocations: 7.938 kB / 0.7525 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.4652, allocations: 15.94 kB / 0.7525 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.4652, allocations: 0 / 0.7525 GB, free: 10.1 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 () * 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.000122/0.4654, allocations: 112.9 kB / 0.7526 GB, free: 9.98 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002159/0.4656, allocations: 65.59 kB / 0.7527 GB, free: 9.91 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.4656, allocations: 8 kB / 0.7527 GB, free: 9.902 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.4659, allocations: 78.22 kB / 0.7528 GB, free: 9.82 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.4659, allocations: 7.953 kB / 0.7528 GB, free: 9.812 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.466, allocations: 0 / 0.7528 GB, free: 9.812 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.466, allocations: 0 / 0.7528 GB, free: 9.812 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000532/0.4665, allocations: 295.1 kB / 0.7531 GB, free: 9.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4665, allocations: 0 / 0.7531 GB, free: 9.48 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.4667, allocations: 11.94 kB / 0.7531 GB, free: 9.469 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.4667, allocations: 4 kB / 0.7531 GB, free: 9.465 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.4668, allocations: 16.19 kB / 0.7531 GB, free: 9.449 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.4668, allocations: 4 kB / 0.7531 GB, free: 9.445 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.4668, allocations: 0 / 0.7531 GB, free: 9.445 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002724/0.4671, allocations: 151.5 kB / 0.7532 GB, free: 9.281 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.756e-05/0.4672, allocations: 85.02 kB / 0.7533 GB, free: 9.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.15e-05/0.4672, allocations: 0 / 0.7533 GB, free: 9.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002491/0.4675, allocations: 23.94 kB / 0.7533 GB, free: 9.156 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.4676, allocations: 3.984 kB / 0.7533 GB, free: 9.152 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.4676, allocations: 4 kB / 0.7533 GB, free: 9.148 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.995e-05/0.4677, allocations: 87.53 kB / 0.7534 GB, free: 9.062 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.21e-07/0.4677, allocations: 0 / 0.7534 GB, free: 9.062 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005386/0.4683, allocations: 8 kB / 0.7534 GB, free: 9.055 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) * 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.0007553/0.469, allocations: 0.6968 MB / 0.7541 GB, free: 8.328 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002072/0.4693, allocations: 35.94 kB / 0.7542 GB, free: 8.293 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4693, allocations: 0 / 0.7542 GB, free: 8.293 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.323e-05/0.4694, allocations: 16 kB / 0.7542 GB, free: 8.277 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003488/0.4697, allocations: 12.8 kB / 0.7542 GB, free: 8.266 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006672/0.4704, allocations: 106.9 kB / 0.7543 GB, free: 8.121 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.4708, allocations: 0.6846 MB / 0.755 GB, free: 7.41 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.27e-05/0.4709, allocations: 4.188 kB / 0.755 GB, free: 7.406 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.451e-05/0.471, allocations: 19.38 kB / 0.755 GB, free: 7.391 MB / 0.6355 GB Notification: Performance of SimCode: time 1.012e-06/0.471, allocations: 0 / 0.755 GB, free: 7.391 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06164/0.5326, allocations: 1.04 MB / 0.756 GB, free: 6.359 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003025/0.533, allocations: 155.4 kB / 0.7561 GB, free: 6.16 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.738, allocations: 0 / 0.7561 GB, free: 6.16 MB / 0.6355 GB