Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadModel(Buildings): time 3.862/3.862, allocations: 433.3 MB / 440.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.764e-05/1.772e-05, allocations: 4 kB / 0.5325 GB, free: 1.938 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4873/0.4874, allocations: 98.7 MB / 0.6289 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1915/0.6789, allocations: 123.8 MB / 0.7498 GB, free: 3.781 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/0.6792, allocations: 71.95 kB / 0.7499 GB, free: 3.711 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003074/0.6823, allocations: 0.873 MB / 0.7507 GB, free: 2.84 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.236e-06/0.6823, allocations: 0 / 0.7507 GB, free: 2.84 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.016e-06/0.6823, allocations: 0 / 0.7507 GB, free: 2.84 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.0004916/0.6828, allocations: 358.5 kB / 0.7511 GB, free: 2.445 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.6829, allocations: 12.02 kB / 0.7511 GB, free: 2.434 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.6829, allocations: 7.906 kB / 0.7511 GB, free: 2.426 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.6831, allocations: 171 kB / 0.7512 GB, free: 2.219 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.6831, allocations: 4 kB / 0.7513 GB, free: 2.215 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.6832, allocations: 4 kB / 0.7513 GB, free: 2.211 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.744e-05/0.6833, allocations: 23.94 kB / 0.7513 GB, free: 2.188 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.6834, allocations: 41.69 kB / 0.7513 GB, free: 2.141 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.132e-06/0.6834, allocations: 0 / 0.7513 GB, free: 2.141 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.6834, allocations: 4 kB / 0.7513 GB, free: 2.137 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.245e-06/0.6834, allocations: 0 / 0.7513 GB, free: 2.137 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000427/0.6839, allocations: 249.4 kB / 0.7516 GB, free: 1.855 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.684, allocations: 46.56 kB / 0.7516 GB, free: 1.801 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.093e-05/0.6841, allocations: 20.92 kB / 0.7516 GB, free: 1.777 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.6841, allocations: 7.938 kB / 0.7516 GB, free: 1.77 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001266/0.6842, allocations: 55.41 kB / 0.7517 GB, free: 1.703 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 2.425e-06/0.6843, allocations: 0 / 0.7517 GB, free: 1.703 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0002215/0.6845, allocations: 69.59 kB / 0.7517 GB, free: 1.629 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.6845, allocations: 59.41 kB / 0.7518 GB, free: 1.559 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.142e-05/0.6846, allocations: 100.9 kB / 0.7519 GB, free: 1.453 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.6847, allocations: 25.7 kB / 0.7519 GB, free: 1.422 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.938e-05/0.6848, allocations: 88.14 kB / 0.752 GB, free: 1.332 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.301e-05/0.6848, allocations: 7.812 kB / 0.752 GB, free: 1.324 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.131e-06/0.6848, allocations: 0 / 0.752 GB, free: 1.324 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.685, allocations: 322.8 kB / 0.7523 GB, free: 1 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.553e-05/0.685, allocations: 8 kB / 0.7523 GB, free: 0.9922 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.721e-05/0.6851, allocations: 43.38 kB / 0.7524 GB, free: 0.9375 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.619e-05/0.6851, allocations: 11.98 kB / 0.7524 GB, free: 0.9258 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.37e-06/0.6852, allocations: 0 / 0.7524 GB, free: 0.9258 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001897/0.6854, allocations: 73.53 kB / 0.7525 GB, free: 0.8477 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.6854, allocations: 4 kB / 0.7525 GB, free: 0.8438 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.501e-06/0.6854, allocations: 7.938 kB / 0.7525 GB, free: 0.8359 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.6854, allocations: 4.094 kB / 0.7525 GB, free: 0.832 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.6856, allocations: 15.98 kB / 0.7525 GB, free: 0.8164 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.6856, allocations: 0 / 0.7525 GB, free: 0.8164 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.664e-05/0.6857, allocations: 11.98 kB / 0.7525 GB, free: 0.8047 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.6857, allocations: 8 kB / 0.7525 GB, free: 0.7969 MB / 0.6198 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 9.645e-05/0.6858, allocations: 108.9 kB / 0.7526 GB, free: 0.6836 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.794e-05/0.6858, allocations: 4 kB / 0.7526 GB, free: 0.6797 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001927/0.6861, allocations: 78.3 kB / 0.7527 GB, free: 0.5977 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.71e-06/0.6861, allocations: 0 / 0.7527 GB, free: 0.5977 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.6861, allocations: 0 / 0.7527 GB, free: 0.5977 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.266e-06/0.6861, allocations: 0 / 0.7527 GB, free: 0.5977 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003919/0.6865, allocations: 315 kB / 0.753 GB, free: 252 kB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.77e-06/0.6865, allocations: 0 / 0.753 GB, free: 252 kB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.54e-05/0.6866, allocations: 15.98 kB / 0.753 GB, free: 236 kB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.279e-06/0.6866, allocations: 4 kB / 0.753 GB, free: 232 kB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.6867, allocations: 4.438 kB / 0.753 GB, free: 228 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.992e-06/0.6867, allocations: 0 / 0.753 GB, free: 228 kB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.656e-06/0.6867, allocations: 0 / 0.753 GB, free: 228 kB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002156/0.6869, allocations: 175.4 kB / 0.7532 GB, free: 36 kB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.513e-05/0.687, allocations: 81.02 kB / 0.7533 GB, free: 15.94 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.687, allocations: 0 / 0.7533 GB, free: 15.94 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.6872, allocations: 15.98 kB / 0.7533 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.6872, allocations: 4 kB / 0.7533 GB, free: 15.92 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.6873, allocations: 3.938 kB / 0.7533 GB, free: 15.91 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.556e-05/0.6873, allocations: 87.27 kB / 0.7534 GB, free: 15.83 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.75e-07/0.6873, allocations: 0 / 0.7534 GB, free: 15.83 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003154/0.6877, allocations: 8 kB / 0.7534 GB, free: 15.82 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.000132/0.6878, allocations: 104.1 kB / 0.7535 GB, free: 15.71 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001408/0.6879, allocations: 39.94 kB / 0.7535 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.181e-06/0.688, allocations: 0 / 0.7535 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.29e-05/0.688, allocations: 16 kB / 0.7535 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.6883, allocations: 7.984 kB / 0.7535 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002731/0.6886, allocations: 82.06 kB / 0.7536 GB, free: 15.54 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.6889, allocations: 0.6884 MB / 0.7543 GB, free: 14.83 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.304e-05/0.689, allocations: 4.375 kB / 0.7543 GB, free: 14.82 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.021e-05/0.6891, allocations: 11.44 kB / 0.7543 GB, free: 14.81 MB / 0.6355 GB Notification: Performance of SimCode: time 1.364e-06/0.6891, allocations: 4 kB / 0.7543 GB, free: 14.81 MB / 0.6355 GB Notification: Performance of Templates: time 0.002996/0.6921, allocations: 0.5119 MB / 0.7548 GB, free: 14.3 MB / 0.6355 GB