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.TriggeredMax.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.TriggeredMax,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.076/4.076, allocations: 433.2 MB / 440.7 MB, free: 4.543 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.458e-05/2.473e-05, allocations: 3.906 kB / 0.5325 GB, free: 12.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.2108, allocations: 98.73 MB / 0.6289 GB, free: 9.074 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2254/0.4363, allocations: 124.1 MB / 0.7501 GB, free: 12.84 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.4367, allocations: 71.95 kB / 0.7501 GB, free: 12.77 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006147/0.4428, allocations: 1.457 MB / 0.7516 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.803e-06/0.4429, allocations: 4 kB / 0.7516 GB, free: 11.3 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.4429, allocations: 0 / 0.7516 GB, free: 11.3 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000619/0.4435, allocations: 366.5 kB / 0.7519 GB, free: 10.9 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.4436, allocations: 8.031 kB / 0.7519 GB, free: 10.89 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.4436, allocations: 11.86 kB / 0.7519 GB, free: 10.88 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.4438, allocations: 178.9 kB / 0.7521 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.4439, allocations: 0 / 0.7521 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.4439, allocations: 4 kB / 0.7521 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00011/0.444, allocations: 20 kB / 0.7521 GB, free: 10.64 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.4441, allocations: 45.69 kB / 0.7522 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.4442, allocations: 0 / 0.7522 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.4442, allocations: 0 / 0.7522 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.4442, allocations: 11.92 kB / 0.7522 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005059/0.4447, allocations: 273.2 kB / 0.7524 GB, free: 10.27 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.4449, allocations: 38.58 kB / 0.7525 GB, free: 10.22 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.698e-05/0.4449, allocations: 24.98 kB / 0.7525 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.445, allocations: 0 / 0.7525 GB, free: 10.2 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.4451, allocations: 59.39 kB / 0.7526 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.4452, allocations: 4 kB / 0.7526 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002529/0.4454, allocations: 81.48 kB / 0.7526 GB, free: 10.04 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.4455, allocations: 59.39 kB / 0.7527 GB, free: 9.965 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.359e-05/0.4456, allocations: 97.31 kB / 0.7528 GB, free: 9.863 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.4456, allocations: 25.7 kB / 0.7528 GB, free: 9.832 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.4457, allocations: 92.16 kB / 0.7529 GB, free: 9.738 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.173e-05/0.4457, allocations: 19.78 kB / 0.7529 GB, free: 9.719 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.4458, allocations: 0 / 0.7529 GB, free: 9.719 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.4459, allocations: 322.8 kB / 0.7532 GB, free: 9.395 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.82e-05/0.4459, allocations: 12 kB / 0.7532 GB, free: 9.383 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.902e-05/0.446, allocations: 30.56 kB / 0.7533 GB, free: 9.344 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.498e-05/0.4461, allocations: 15.98 kB / 0.7533 GB, free: 9.328 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4461, allocations: 0 / 0.7533 GB, free: 9.328 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001922/0.4463, allocations: 81.52 kB / 0.7534 GB, free: 9.242 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.4463, allocations: 4 kB / 0.7534 GB, free: 9.238 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.4464, allocations: 8.031 kB / 0.7534 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.4464, allocations: 0 / 0.7534 GB, free: 9.23 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.4466, allocations: 19.92 kB / 0.7534 GB, free: 9.211 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.4466, allocations: 4.031 kB / 0.7534 GB, free: 9.207 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.4468, allocations: 19.92 kB / 0.7534 GB, free: 9.188 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.4468, allocations: 7.984 kB / 0.7534 GB, free: 9.18 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.172e-05/0.4469, allocations: 108.9 kB / 0.7535 GB, free: 9.066 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001736/0.4471, allocations: 77.59 kB / 0.7536 GB, free: 8.984 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.391e-05/0.4471, allocations: 0 / 0.7536 GB, free: 8.984 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002209/0.4473, allocations: 86.19 kB / 0.7537 GB, free: 8.895 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.4474, allocations: 3.984 kB / 0.7537 GB, free: 8.891 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4474, allocations: 0 / 0.7537 GB, free: 8.891 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.4474, allocations: 4 kB / 0.7537 GB, free: 8.887 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005145/0.4479, allocations: 323.6 kB / 0.754 GB, free: 8.527 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.4479, allocations: 0 / 0.754 GB, free: 8.527 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.4481, allocations: 19.88 kB / 0.754 GB, free: 8.508 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.178e-06/0.4481, allocations: 3.953 kB / 0.754 GB, free: 8.504 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.4481, allocations: 3.984 kB / 0.754 GB, free: 8.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4481, allocations: 0 / 0.754 GB, free: 8.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4481, allocations: 0 / 0.754 GB, free: 8.5 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002176/0.4483, allocations: 171.5 kB / 0.7542 GB, free: 8.316 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/0.4484, allocations: 81.02 kB / 0.7543 GB, free: 8.219 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.4484, allocations: 7.938 kB / 0.7543 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.4487, allocations: 19.98 kB / 0.7543 GB, free: 8.191 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.4488, allocations: 7.984 kB / 0.7543 GB, free: 8.184 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.4488, allocations: 0 / 0.7543 GB, free: 8.184 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.895e-05/0.4488, allocations: 87.28 kB / 0.7544 GB, free: 8.098 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.5e-07/0.4489, allocations: 4.188 kB / 0.7544 GB, free: 8.094 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003282/0.4492, allocations: 12 kB / 0.7544 GB, free: 8.082 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * Number of discrete states: 1 (triggeredMax.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0005324/0.4497, allocations: 0.706 MB / 0.7551 GB, free: 7.348 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001741/0.4499, allocations: 39.94 kB / 0.7551 GB, free: 7.309 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4499, allocations: 0 / 0.7551 GB, free: 7.309 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.703e-05/0.45, allocations: 24.06 kB / 0.7552 GB, free: 7.285 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.4504, allocations: 16.72 kB / 0.7552 GB, free: 7.27 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005391/0.4509, allocations: 121.7 kB / 0.7553 GB, free: 7.109 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.4512, allocations: 0.6885 MB / 0.756 GB, free: 6.395 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.941e-05/0.4513, allocations: 11.77 kB / 0.756 GB, free: 6.383 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.785e-05/0.4513, allocations: 19.44 kB / 0.756 GB, free: 6.367 MB / 0.6355 GB Notification: Performance of SimCode: time 7.01e-07/0.4514, allocations: 0 / 0.756 GB, free: 6.367 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03675/0.4881, allocations: 1.268 MB / 0.7572 GB, free: 5.113 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002415/0.4884, allocations: 147.9 kB / 0.7574 GB, free: 4.922 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.274/2.762, allocations: 0 / 0.7574 GB, free: 4.922 MB / 0.6355 GB