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.Sampler.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.Sampler,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.01274/0.01274, allocations: 106.3 kB / 15.05 MB, free: 5.934 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.001167/0.001167, allocations: 184.5 kB / 15.94 MB, free: 5.898 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.051/2.051, allocations: 194.6 MB / 211.3 MB, free: 11.07 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.277/2.277, allocations: 236.2 MB / 492.6 MB, free: 11.3 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004938/0.000494, allocations: 12 kB / 0.587 GB, free: 2.027 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6535/0.6541, allocations: 98.72 MB / 0.6834 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2326/0.8867, allocations: 124.5 MB / 0.8051 GB, free: 1.605 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.887, allocations: 71.97 kB / 0.8051 GB, free: 1.535 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003417/0.8905, allocations: 0.8735 MB / 0.806 GB, free: 0.6602 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.164e-06/0.8905, allocations: 0 / 0.806 GB, free: 0.6602 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.196e-05/0.8905, allocations: 0 / 0.806 GB, free: 0.6602 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.0006193/0.8912, allocations: 363.2 kB / 0.8063 GB, free: 264 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.8912, allocations: 8.031 kB / 0.8063 GB, free: 256 kB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.204e-05/0.8913, allocations: 34.56 kB / 0.8064 GB, free: 212 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.633e-05/0.8913, allocations: 3.984 kB / 0.8064 GB, free: 208 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.8915, allocations: 174.9 kB / 0.8065 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.8915, allocations: 4 kB / 0.8065 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.991e-05/0.8915, allocations: 4 kB / 0.8065 GB, free: 15.98 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000277/0.8918, allocations: 77.58 kB / 0.8066 GB, free: 15.9 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.8918, allocations: 0 / 0.8066 GB, free: 15.9 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.8919, allocations: 7.938 kB / 0.8066 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.8919, allocations: 0 / 0.8066 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.8922, allocations: 59.92 kB / 0.8067 GB, free: 15.84 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004774/0.8927, allocations: 276.7 kB / 0.807 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.893, allocations: 58.55 kB / 0.807 GB, free: 15.45 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.893, allocations: 4 kB / 0.807 GB, free: 15.45 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.8933, allocations: 79.5 kB / 0.8071 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.924e-06/0.8933, allocations: 0 / 0.8071 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0006638/0.894, allocations: 145.8 kB / 0.8072 GB, free: 15.21 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.8941, allocations: 55.36 kB / 0.8073 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.391e-05/0.8942, allocations: 97 kB / 0.8074 GB, free: 15.04 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.8942, allocations: 29.69 kB / 0.8074 GB, free: 15 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.782e-05/0.8943, allocations: 92.05 kB / 0.8075 GB, free: 14.91 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/0.8943, allocations: 11.81 kB / 0.8075 GB, free: 14.9 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-06/0.8943, allocations: 0 / 0.8075 GB, free: 14.9 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.8945, allocations: 318.8 kB / 0.8078 GB, free: 14.58 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.8946, allocations: 27.98 kB / 0.8078 GB, free: 14.55 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.8948, allocations: 55.41 kB / 0.8079 GB, free: 14.48 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.895, allocations: 31.98 kB / 0.8079 GB, free: 14.45 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.895, allocations: 0 / 0.8079 GB, free: 14.45 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004237/0.8955, allocations: 113.5 kB / 0.808 GB, free: 14.34 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.8955, allocations: 8 kB / 0.808 GB, free: 14.33 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.8955, allocations: 0 / 0.808 GB, free: 14.33 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.8955, allocations: 0 / 0.808 GB, free: 14.33 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.8957, allocations: 20.08 kB / 0.808 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.8957, allocations: 4 kB / 0.8081 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.8959, allocations: 11.95 kB / 0.8081 GB, free: 14.29 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.8959, allocations: 4 kB / 0.8081 GB, free: 14.29 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.00011/0.896, allocations: 121.7 kB / 0.8082 GB, free: 14.16 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.172e-05/0.896, allocations: 11.91 kB / 0.8082 GB, free: 14.15 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004651/0.8965, allocations: 114.1 kB / 0.8083 GB, free: 14.03 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.8965, allocations: 0 / 0.8083 GB, free: 14.03 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.8965, allocations: 0 / 0.8083 GB, free: 14.03 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.8965, allocations: 0 / 0.8083 GB, free: 14.03 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006873/0.8972, allocations: 370.4 kB / 0.8087 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.8973, allocations: 0 / 0.8087 GB, free: 13.61 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.8974, allocations: 15.92 kB / 0.8087 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/0.8974, allocations: 4 kB / 0.8087 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.8974, allocations: 0 / 0.8087 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.8974, allocations: 0 / 0.8087 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.8975, allocations: 11.89 kB / 0.8087 GB, free: 13.58 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004765/0.8979, allocations: 207.8 kB / 0.8089 GB, free: 13.36 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.898, allocations: 77.11 kB / 0.809 GB, free: 13.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.898, allocations: 8.062 kB / 0.809 GB, free: 13.26 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.8982, allocations: 15.98 kB / 0.809 GB, free: 13.24 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.839e-05/0.8983, allocations: 7.953 kB / 0.809 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.8983, allocations: 0 / 0.809 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.977e-05/0.8984, allocations: 87.27 kB / 0.8091 GB, free: 13.15 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.51e-07/0.8984, allocations: 0 / 0.8091 GB, free: 13.15 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003084/0.8987, allocations: 12 kB / 0.8091 GB, free: 13.14 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * 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.0008119/0.8995, allocations: 0.7382 MB / 0.8098 GB, free: 12.37 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004127/0.8999, allocations: 75.95 kB / 0.8099 GB, free: 12.3 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.9, allocations: 0 / 0.8099 GB, free: 12.3 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001993/0.9002, allocations: 40.09 kB / 0.8099 GB, free: 12.26 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.9004, allocations: 12 kB / 0.8099 GB, free: 12.25 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008661/0.9013, allocations: 0.799 MB / 0.8107 GB, free: 11.39 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.9016, allocations: 0.6809 MB / 0.8114 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.171e-05/0.9017, allocations: 12.16 kB / 0.8114 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.078e-05/0.9018, allocations: 11.44 kB / 0.8114 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of SimCode: time 3.917e-06/0.9018, allocations: 4 kB / 0.8114 GB, free: 10.65 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02267/0.9244, allocations: 1.313 MB / 0.8127 GB, free: 9.453 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003122/0.9248, allocations: 184.6 kB / 0.8129 GB, free: 9.211 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.347/3.272, allocations: 0 / 0.8129 GB, free: 9.211 MB / 0.6355 GB