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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.154/4.154, allocations: 432.6 MB / 445.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.969e-05/3.978e-05, allocations: 4.219 kB / 0.5383 GB, free: 10.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2084, allocations: 98.74 MB / 0.6347 GB, free: 1.879 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2753/0.4838, allocations: 124.4 MB / 0.7563 GB, free: 5.27 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.4841, allocations: 75.95 kB / 0.7563 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004405/0.4886, allocations: 0.8605 MB / 0.7572 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4886, allocations: 4 kB / 0.7572 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.4886, allocations: 0 / 0.7572 GB, free: 4.328 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.000702/0.4894, allocations: 350.5 kB / 0.7575 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.863e-05/0.4894, allocations: 15.97 kB / 0.7575 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.764e-05/0.4895, allocations: 38.55 kB / 0.7576 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.4896, allocations: 7.906 kB / 0.7576 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.4898, allocations: 174.9 kB / 0.7577 GB, free: 3.66 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.4898, allocations: 8 kB / 0.7577 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.4898, allocations: 0 / 0.7577 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002095/0.49, allocations: 53.69 kB / 0.7578 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.4901, allocations: 0 / 0.7578 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.4901, allocations: 0 / 0.7578 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.4901, allocations: 11.97 kB / 0.7578 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.4903, allocations: 23.98 kB / 0.7578 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005652/0.4908, allocations: 268.8 kB / 0.7581 GB, free: 3.246 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.491, allocations: 46.58 kB / 0.7581 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.912e-05/0.4911, allocations: 20.97 kB / 0.7581 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.4911, allocations: 4 kB / 0.7581 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/0.4913, allocations: 55.41 kB / 0.7582 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.535e-06/0.4913, allocations: 0 / 0.7582 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002548/0.4915, allocations: 81.48 kB / 0.7583 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.4916, allocations: 55.41 kB / 0.7583 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.238e-05/0.4917, allocations: 101 kB / 0.7584 GB, free: 2.84 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.4917, allocations: 29.7 kB / 0.7585 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.106e-05/0.4918, allocations: 80.14 kB / 0.7585 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.099e-05/0.4918, allocations: 19.88 kB / 0.7586 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-06/0.4919, allocations: 0 / 0.7586 GB, free: 2.703 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.492, allocations: 322.8 kB / 0.7589 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.572e-05/0.492, allocations: 12 kB / 0.7589 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.778e-05/0.4921, allocations: 31.44 kB / 0.7589 GB, free: 2.324 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.494e-05/0.4922, allocations: 27.92 kB / 0.7589 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.4922, allocations: 0 / 0.7589 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001841/0.4924, allocations: 77.53 kB / 0.759 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.4924, allocations: 6.812 kB / 0.759 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4925, allocations: 0 / 0.759 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.4925, allocations: 4 kB / 0.759 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.4927, allocations: 20.08 kB / 0.759 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.4927, allocations: 3.953 kB / 0.759 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.4928, allocations: 15.92 kB / 0.7591 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.4928, allocations: 4 kB / 0.7591 GB, free: 2.164 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.834e-05/0.4929, allocations: 110.8 kB / 0.7592 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.493, allocations: 4 kB / 0.7592 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000224/0.4932, allocations: 82.3 kB / 0.7592 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.4932, allocations: 0 / 0.7592 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.4932, allocations: 384 / 0.7592 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.4932, allocations: 7.891 kB / 0.7593 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004331/0.4937, allocations: 334.4 kB / 0.7596 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.4937, allocations: 4 kB / 0.7596 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.4938, allocations: 8 kB / 0.7596 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.4938, allocations: 0 / 0.7596 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.4939, allocations: 7.984 kB / 0.7596 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.4939, allocations: 3.953 kB / 0.7596 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4939, allocations: 0 / 0.7596 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002543/0.4942, allocations: 171.5 kB / 0.7598 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.204e-05/0.4942, allocations: 81.02 kB / 0.7598 GB, free: 1.262 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.4942, allocations: 0 / 0.7598 GB, free: 1.262 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.4944, allocations: 11.98 kB / 0.7598 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.4945, allocations: 15.94 kB / 0.7599 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.4945, allocations: 0 / 0.7599 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.11e-05/0.4946, allocations: 87.28 kB / 0.7599 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.91e-07/0.4946, allocations: 0 / 0.7599 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003024/0.4949, allocations: 12 kB / 0.76 GB, free: 1.137 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.0005367/0.4954, allocations: 0.7047 MB / 0.7606 GB, free: 416 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001676/0.4956, allocations: 43.92 kB / 0.7607 GB, free: 372 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4956, allocations: 0 / 0.7607 GB, free: 372 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.553e-05/0.4957, allocations: 20.31 kB / 0.7607 GB, free: 352 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002365/0.496, allocations: 15.94 kB / 0.7607 GB, free: 336 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005082/0.4965, allocations: 106.6 kB / 0.7608 GB, free: 192 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.4968, allocations: 0.6889 MB / 0.7615 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.562e-05/0.4969, allocations: 192 / 0.7615 GB, free: 15.47 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.41e-05/0.4969, allocations: 19.42 kB / 0.7615 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of SimCode: time 1.192e-06/0.4969, allocations: 0 / 0.7615 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01903/0.516, allocations: 1.326 MB / 0.7628 GB, free: 14.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002502/0.5163, allocations: 156.3 kB / 0.763 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/2.68, allocations: 3.938 kB / 0.763 GB, free: 13.97 MB / 0.6511 GB