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.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadModel(Buildings): time 4.054/4.054, allocations: 433.3 MB / 440.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.986e-05/1.993e-05, allocations: 4 kB / 0.5325 GB, free: 1.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4984/0.4984, allocations: 98.72 MB / 0.6289 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1909/0.6894, allocations: 124 MB / 0.7501 GB, free: 3.527 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/0.6896, allocations: 71.95 kB / 0.7501 GB, free: 3.457 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003957/0.6936, allocations: 1.131 MB / 0.7512 GB, free: 2.328 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.348e-06/0.6937, allocations: 0 / 0.7512 GB, free: 2.328 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.942e-06/0.6937, allocations: 0 / 0.7512 GB, free: 2.328 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005417/0.6942, allocations: 370.4 kB / 0.7516 GB, free: 1.922 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.6943, allocations: 12.03 kB / 0.7516 GB, free: 1.91 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.704e-05/0.6943, allocations: 4 kB / 0.7516 GB, free: 1.906 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.6945, allocations: 178.8 kB / 0.7518 GB, free: 1.691 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.6945, allocations: 0 / 0.7518 GB, free: 1.691 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.6946, allocations: 7.984 kB / 0.7518 GB, free: 1.684 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001072/0.6947, allocations: 28 kB / 0.7518 GB, free: 1.656 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.6948, allocations: 49.69 kB / 0.7519 GB, free: 1.602 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.72e-06/0.6949, allocations: 0 / 0.7519 GB, free: 1.602 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.6949, allocations: 3.938 kB / 0.7519 GB, free: 1.598 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.305e-06/0.6949, allocations: 0 / 0.7519 GB, free: 1.598 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005066/0.6954, allocations: 289.2 kB / 0.7521 GB, free: 1.277 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.6955, allocations: 46.58 kB / 0.7522 GB, free: 1.223 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.658e-05/0.6956, allocations: 20.98 kB / 0.7522 GB, free: 1.199 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.6957, allocations: 7.984 kB / 0.7522 GB, free: 1.191 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.6958, allocations: 63.41 kB / 0.7523 GB, free: 1.117 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 2.553e-06/0.6958, allocations: 0 / 0.7523 GB, free: 1.117 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0002499/0.6961, allocations: 97.64 kB / 0.7524 GB, free: 1.016 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.6962, allocations: 59.34 kB / 0.7524 GB, free: 0.9453 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.6963, allocations: 101.1 kB / 0.7525 GB, free: 0.8359 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.6963, allocations: 33.7 kB / 0.7525 GB, free: 0.7969 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.776e-05/0.6964, allocations: 92.12 kB / 0.7526 GB, free: 0.7031 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.29e-05/0.6965, allocations: 19.66 kB / 0.7527 GB, free: 0.6836 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.428e-06/0.6965, allocations: 0 / 0.7527 GB, free: 0.6836 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.6967, allocations: 322.8 kB / 0.753 GB, free: 368 kB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.072e-05/0.6967, allocations: 16 kB / 0.753 GB, free: 352 kB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.837e-05/0.6968, allocations: 44.3 kB / 0.753 GB, free: 292 kB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.857e-05/0.6969, allocations: 23.92 kB / 0.753 GB, free: 268 kB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.6969, allocations: 0 / 0.753 GB, free: 268 kB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002113/0.6971, allocations: 81.62 kB / 0.7531 GB, free: 180 kB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.6972, allocations: 7.984 kB / 0.7531 GB, free: 172 kB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.6972, allocations: 4 kB / 0.7531 GB, free: 168 kB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.6972, allocations: 0 / 0.7531 GB, free: 168 kB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.6974, allocations: 24.11 kB / 0.7532 GB, free: 144 kB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.6974, allocations: 3.953 kB / 0.7532 GB, free: 140 kB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.6976, allocations: 27.83 kB / 0.7532 GB, free: 112 kB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.6976, allocations: 4 kB / 0.7532 GB, free: 108 kB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001299/0.6977, allocations: 106.9 kB / 0.7533 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.6978, allocations: 0 / 0.7533 GB, free: 15.99 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002252/0.698, allocations: 98.16 kB / 0.7534 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.233e-06/0.698, allocations: 0 / 0.7534 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.94e-06/0.698, allocations: 384 / 0.7534 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.935e-06/0.6981, allocations: 3.953 kB / 0.7534 GB, free: 15.89 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005157/0.6986, allocations: 343 kB / 0.7537 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.929e-06/0.6986, allocations: 0 / 0.7537 GB, free: 15.51 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.253e-05/0.6987, allocations: 19.94 kB / 0.7537 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.27e-06/0.6987, allocations: 4.031 kB / 0.7537 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.6988, allocations: 3.984 kB / 0.7537 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.401e-06/0.6988, allocations: 7.938 kB / 0.7537 GB, free: 15.48 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.72e-06/0.6988, allocations: 3.953 kB / 0.7538 GB, free: 15.47 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.699, allocations: 179.4 kB / 0.7539 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-05/0.6991, allocations: 77.11 kB / 0.754 GB, free: 15.19 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.6991, allocations: 7.984 kB / 0.754 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.6993, allocations: 19.98 kB / 0.754 GB, free: 15.16 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.121e-05/0.6994, allocations: 7.984 kB / 0.754 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.6994, allocations: 7.953 kB / 0.754 GB, free: 15.14 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.563e-05/0.6995, allocations: 83.28 kB / 0.7541 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.56e-07/0.6995, allocations: 0 / 0.7541 GB, free: 15.06 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003304/0.6998, allocations: 15.91 kB / 0.7541 GB, free: 15.05 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: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001465/0.7, allocations: 107.2 kB / 0.7542 GB, free: 14.93 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001682/0.7002, allocations: 47.94 kB / 0.7543 GB, free: 14.88 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.7002, allocations: 0 / 0.7543 GB, free: 14.88 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.468e-05/0.7003, allocations: 27.94 kB / 0.7543 GB, free: 14.86 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.7005, allocations: 11.98 kB / 0.7543 GB, free: 14.84 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003375/0.7009, allocations: 92.78 kB / 0.7544 GB, free: 14.73 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.7013, allocations: 0.6963 MB / 0.7551 GB, free: 14.01 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.707e-05/0.7013, allocations: 4 kB / 0.7551 GB, free: 14 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.897e-05/0.7014, allocations: 11.44 kB / 0.7551 GB, free: 13.99 MB / 0.6355 GB Notification: Performance of SimCode: time 1.399e-06/0.7014, allocations: 0 / 0.7551 GB, free: 13.99 MB / 0.6355 GB Notification: Performance of Templates: time 0.003599/0.705, allocations: 0.737 MB / 0.7558 GB, free: 13.27 MB / 0.6355 GB