Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_7_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.3/package.mo): time 0.01027/0.01027, allocations: 89.81 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001179/0.001179, allocations: 175.5 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.07/2.07, allocations: 205.5 MB / 222.2 MB, free: 13.57 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.539/2.539, allocations: 252.8 MB / 0.511 GB, free: 8.277 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005997/0.0005999, allocations: 13.69 kB / 0.6243 GB, free: 21.18 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2857, allocations: 106.2 MB / 0.7281 GB, free: 8.062 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001829/0.2876, allocations: 1.092 MB / 0.7291 GB, free: 6.957 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0007166/0.2883, allocations: 220.9 kB / 0.7294 GB, free: 6.738 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.005e-05/0.2884, allocations: 4 kB / 0.7294 GB, free: 6.734 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 2.918e-05/0.2885, allocations: 3.938 kB / 0.7294 GB, free: 6.73 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 9.942e-05/0.2886, allocations: 11.98 kB / 0.7294 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002313/0.2888, allocations: 11.98 kB / 0.7294 GB, free: 6.707 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.289, allocations: 23.97 kB / 0.7294 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.2891, allocations: 15.97 kB / 0.7294 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 9.386e-05/0.2892, allocations: 11.94 kB / 0.7294 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 7.374e-05/0.2893, allocations: 15.92 kB / 0.7294 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.2894, allocations: 4 kB / 0.7295 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.84e-05/0.2894, allocations: 0 / 0.7295 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 3.351e-05/0.2895, allocations: 19.92 kB / 0.7295 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.739e-05/0.2895, allocations: 29.7 kB / 0.7295 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.2897, allocations: 31.92 kB / 0.7295 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2897, allocations: 0 / 0.7295 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd: time 6.222e-06/0.2897, allocations: 0 / 0.7295 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.2897, allocations: 3.938 kB / 0.7295 GB, free: 6.547 MB / 0.5573 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.001008/0.2907, allocations: 367.5 kB / 0.7299 GB, free: 6.141 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.324e-05/0.2908, allocations: 8.031 kB / 0.7299 GB, free: 6.133 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.5e-05/0.2909, allocations: 38.55 kB / 0.7299 GB, free: 6.086 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.982e-05/0.291, allocations: 4 kB / 0.7299 GB, free: 6.082 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.2912, allocations: 167 kB / 0.7301 GB, free: 5.879 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.2912, allocations: 7.938 kB / 0.7301 GB, free: 5.871 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.2913, allocations: 4 kB / 0.7301 GB, free: 5.867 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.2917, allocations: 73.66 kB / 0.7302 GB, free: 5.789 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.2917, allocations: 0 / 0.7302 GB, free: 5.789 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.2917, allocations: 0 / 0.7302 GB, free: 5.789 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.2917, allocations: 0 / 0.7302 GB, free: 5.789 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005083/0.2923, allocations: 55.95 kB / 0.7302 GB, free: 5.734 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000937/0.2932, allocations: 292.7 kB / 0.7305 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003767/0.2936, allocations: 66.48 kB / 0.7306 GB, free: 5.324 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.2937, allocations: 4 kB / 0.7306 GB, free: 5.32 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003964/0.2941, allocations: 71.58 kB / 0.7306 GB, free: 5.238 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=6): time 3.797e-06/0.2941, allocations: 0 / 0.7306 GB, free: 5.238 MB / 0.5573 GB Notification: Performance of matching and sorting (n=6): time 0.001046/0.2952, allocations: 141.7 kB / 0.7308 GB, free: 5.094 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.562e-05/0.2953, allocations: 55.36 kB / 0.7308 GB, free: 5.027 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.2955, allocations: 105.8 kB / 0.7309 GB, free: 4.914 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.2956, allocations: 29.7 kB / 0.731 GB, free: 4.879 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 9.008e-05/0.2957, allocations: 88.12 kB / 0.731 GB, free: 4.789 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 5.205e-05/0.2957, allocations: 19.81 kB / 0.7311 GB, free: 4.77 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.064e-05/0.2958, allocations: 0 / 0.7311 GB, free: 4.77 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002065/0.296, allocations: 314.8 kB / 0.7314 GB, free: 4.453 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.2963, allocations: 31.97 kB / 0.7314 GB, free: 4.422 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.2966, allocations: 64.27 kB / 0.7315 GB, free: 4.344 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003364/0.297, allocations: 31.92 kB / 0.7315 GB, free: 4.312 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.297, allocations: 0 / 0.7315 GB, free: 4.312 MB / 0.5573 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0006384/0.2977, allocations: 117.6 kB / 0.7316 GB, free: 4.191 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.2977, allocations: 4 kB / 0.7316 GB, free: 4.188 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.2978, allocations: 15.98 kB / 0.7316 GB, free: 4.172 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.2978, allocations: 4.156 kB / 0.7316 GB, free: 4.168 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.298, allocations: 12 kB / 0.7316 GB, free: 4.156 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.952e-05/0.298, allocations: 12.25 kB / 0.7316 GB, free: 4.145 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.2982, allocations: 19.78 kB / 0.7317 GB, free: 4.125 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.2982, allocations: 0 / 0.7317 GB, free: 4.125 MB / 0.5573 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.0001694/0.2984, allocations: 113.8 kB / 0.7318 GB, free: 4.004 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.2985, allocations: 7.984 kB / 0.7318 GB, free: 3.996 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008318/0.2993, allocations: 118 kB / 0.7319 GB, free: 3.875 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2994, allocations: 0 / 0.7319 GB, free: 3.875 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.2994, allocations: 0 / 0.7319 GB, free: 3.875 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.2994, allocations: 3.953 kB / 0.7319 GB, free: 3.871 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.3004, allocations: 366.4 kB / 0.7322 GB, free: 3.457 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.3005, allocations: 0 / 0.7322 GB, free: 3.457 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/0.3006, allocations: 8 kB / 0.7322 GB, free: 3.449 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.3007, allocations: 0 / 0.7322 GB, free: 3.449 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.3007, allocations: 7.984 kB / 0.7323 GB, free: 3.441 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.167e-06/0.3007, allocations: 3.953 kB / 0.7323 GB, free: 3.438 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3007, allocations: 192 / 0.7323 GB, free: 3.438 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006794/0.3014, allocations: 195.5 kB / 0.7324 GB, free: 3.23 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.277e-05/0.3015, allocations: 88.95 kB / 0.7325 GB, free: 3.125 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.3016, allocations: 3.984 kB / 0.7325 GB, free: 3.121 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.3018, allocations: 8 kB / 0.7325 GB, free: 3.113 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.3018, allocations: 16.06 kB / 0.7326 GB, free: 3.098 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.3018, allocations: 4 kB / 0.7326 GB, free: 3.094 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 6.424e-05/0.3019, allocations: 95.25 kB / 0.7327 GB, free: 3 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.81e-07/0.3019, allocations: 0 / 0.7327 GB, free: 3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003325/0.3023, allocations: 12 kB / 0.7327 GB, free: 2.988 MB / 0.5573 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.0008163/0.3031, allocations: 0.7359 MB / 0.7334 GB, free: 2.227 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004065/0.3035, allocations: 71.89 kB / 0.7335 GB, free: 2.156 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3035, allocations: 0 / 0.7335 GB, free: 2.156 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.3038, allocations: 44.3 kB / 0.7335 GB, free: 2.113 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002509/0.304, allocations: 15.94 kB / 0.7335 GB, free: 2.098 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009615/0.305, allocations: 0.9496 MB / 0.7344 GB, free: 1.074 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.3053, allocations: 0.6965 MB / 0.7351 GB, free: 360 kB / 0.5573 GB Notification: Performance of simCode: alias equations: time 4.42e-05/0.3054, allocations: 192 / 0.7351 GB, free: 360 kB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.859e-05/0.3054, allocations: 19.42 kB / 0.7351 GB, free: 340 kB / 0.5573 GB Notification: Performance of SimCode: time 1.002e-06/0.3054, allocations: 0 / 0.7351 GB, free: 340 kB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01851/0.324, allocations: 1.348 MB / 0.7365 GB, free: 15.09 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003192/0.3243, allocations: 188.5 kB / 0.7366 GB, free: 14.85 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.354/2.679, allocations: 0 / 0.7366 GB, free: 14.85 MB / 0.573 GB