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 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.Sampler,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.146/4.146, allocations: 433.2 MB / 440.7 MB, free: 4.535 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.777e-05/2.788e-05, allocations: 4.031 kB / 0.5325 GB, free: 12.69 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2106, allocations: 98.74 MB / 0.6289 GB, free: 9.078 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2246/0.4352, allocations: 123.8 MB / 0.7498 GB, free: 13.13 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.4356, allocations: 71.95 kB / 0.7499 GB, free: 13.06 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003497/0.4391, allocations: 0.8681 MB / 0.7507 GB, free: 12.19 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4392, allocations: 4 kB / 0.7507 GB, free: 12.19 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.712e-06/0.4392, allocations: 0 / 0.7507 GB, free: 12.19 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.0005521/0.4397, allocations: 358.4 kB / 0.7511 GB, free: 11.79 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4398, allocations: 12.03 kB / 0.7511 GB, free: 11.78 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.4399, allocations: 7.859 kB / 0.7511 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.44, allocations: 163.1 kB / 0.7512 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.44, allocations: 0 / 0.7512 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.005e-05/0.4401, allocations: 4 kB / 0.7512 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001071/0.4402, allocations: 19.98 kB / 0.7513 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.4403, allocations: 49.67 kB / 0.7513 GB, free: 11.5 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.4403, allocations: 8 kB / 0.7513 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.4403, allocations: 0 / 0.7513 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.4404, allocations: 0 / 0.7513 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/0.4408, allocations: 253.3 kB / 0.7515 GB, free: 11.2 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.441, allocations: 42.56 kB / 0.7516 GB, free: 11.15 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.092e-05/0.441, allocations: 20.98 kB / 0.7516 GB, free: 11.13 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.4411, allocations: 3.984 kB / 0.7516 GB, free: 11.12 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001359/0.4412, allocations: 59.41 kB / 0.7517 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.034e-06/0.4412, allocations: 0 / 0.7517 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002289/0.4415, allocations: 73.53 kB / 0.7517 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.4415, allocations: 55.36 kB / 0.7518 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.4416, allocations: 101 kB / 0.7519 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.4417, allocations: 25.7 kB / 0.7519 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.182e-05/0.4417, allocations: 84.14 kB / 0.752 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.506e-05/0.4418, allocations: 15.81 kB / 0.752 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.931e-06/0.4418, allocations: 0 / 0.752 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.4419, allocations: 318.8 kB / 0.7523 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.892e-05/0.442, allocations: 11.94 kB / 0.7523 GB, free: 10.34 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.079e-05/0.442, allocations: 35.44 kB / 0.7524 GB, free: 10.29 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.219e-05/0.4421, allocations: 16 kB / 0.7524 GB, free: 10.27 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4421, allocations: 0 / 0.7524 GB, free: 10.27 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001705/0.4423, allocations: 77.45 kB / 0.7524 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4423, allocations: 4 kB / 0.7524 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4423, allocations: 0 / 0.7524 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.4424, allocations: 4 kB / 0.7525 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.4425, allocations: 20.08 kB / 0.7525 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.4426, allocations: 4 kB / 0.7525 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.4427, allocations: 11.95 kB / 0.7525 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.4427, allocations: 0 / 0.7525 GB, free: 10.15 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 () * 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 8.705e-05/0.4428, allocations: 112.9 kB / 0.7526 GB, free: 10.03 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001574/0.443, allocations: 73.62 kB / 0.7527 GB, free: 9.953 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.443, allocations: 3.906 kB / 0.7527 GB, free: 9.949 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001963/0.4432, allocations: 70.31 kB / 0.7527 GB, free: 9.875 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.4432, allocations: 4 kB / 0.7527 GB, free: 9.871 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.4432, allocations: 12.38 kB / 0.7528 GB, free: 9.859 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4433, allocations: 0 / 0.7528 GB, free: 9.859 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003781/0.4436, allocations: 307.1 kB / 0.753 GB, free: 9.516 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4437, allocations: 0 / 0.753 GB, free: 9.516 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.4438, allocations: 11.98 kB / 0.7531 GB, free: 9.504 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.4438, allocations: 0 / 0.7531 GB, free: 9.504 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.4438, allocations: 4 kB / 0.7531 GB, free: 9.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.4438, allocations: 7.953 kB / 0.7531 GB, free: 9.492 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.4438, allocations: 0 / 0.7531 GB, free: 9.492 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.4441, allocations: 163.5 kB / 0.7532 GB, free: 9.316 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.324e-05/0.4441, allocations: 81.09 kB / 0.7533 GB, free: 9.219 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.4441, allocations: 3.938 kB / 0.7533 GB, free: 9.215 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.4443, allocations: 11.98 kB / 0.7533 GB, free: 9.203 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.4444, allocations: 15.95 kB / 0.7533 GB, free: 9.188 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.4444, allocations: 0 / 0.7533 GB, free: 9.188 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.621e-05/0.4444, allocations: 79.28 kB / 0.7534 GB, free: 9.109 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.61e-07/0.4445, allocations: 0 / 0.7534 GB, free: 9.109 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003085/0.4448, allocations: 8 kB / 0.7534 GB, free: 9.102 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 () * 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.0005267/0.4453, allocations: 0.7061 MB / 0.7541 GB, free: 8.367 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001358/0.4455, allocations: 35.88 kB / 0.7541 GB, free: 8.332 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4455, allocations: 0 / 0.7541 GB, free: 8.332 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.764e-05/0.4456, allocations: 23.98 kB / 0.7542 GB, free: 8.309 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.4458, allocations: 7.953 kB / 0.7542 GB, free: 8.301 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000466/0.4463, allocations: 109.5 kB / 0.7543 GB, free: 8.156 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.4466, allocations: 0.6886 MB / 0.7549 GB, free: 7.441 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.014e-05/0.4467, allocations: 12.17 kB / 0.755 GB, free: 7.426 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.4467, allocations: 11.44 kB / 0.755 GB, free: 7.418 MB / 0.6355 GB Notification: Performance of SimCode: time 7.21e-07/0.4467, allocations: 0 / 0.755 GB, free: 7.418 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.4798, allocations: 1.016 MB / 0.756 GB, free: 6.414 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003648/0.4802, allocations: 140.9 kB / 0.7561 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.698, allocations: 4.031 kB / 0.7561 GB, free: 6.223 MB / 0.6355 GB