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/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.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 3.907/3.907, allocations: 432.6 MB / 445.2 MB, free: 15.85 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.472e-05/3.495e-05, allocations: 3.906 kB / 0.5383 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2043/0.2044, allocations: 98.73 MB / 0.6347 GB, free: 1.93 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2228/0.4273, allocations: 124.7 MB / 0.7565 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.4276, allocations: 75.94 kB / 0.7566 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006163/0.4338, allocations: 1.453 MB / 0.758 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4338, allocations: 7.938 kB / 0.758 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.4339, allocations: 4 kB / 0.758 GB, free: 3.469 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.0005989/0.4345, allocations: 370.4 kB / 0.7584 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.4345, allocations: 8.031 kB / 0.7584 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.712e-05/0.4346, allocations: 34.56 kB / 0.7584 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.723e-05/0.4346, allocations: 15.86 kB / 0.7585 GB, free: 2.996 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.4348, allocations: 163.1 kB / 0.7586 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.4348, allocations: 7.922 kB / 0.7586 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.4348, allocations: 8 kB / 0.7586 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.435, allocations: 53.69 kB / 0.7587 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.435, allocations: 3.984 kB / 0.7587 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.4351, allocations: 0 / 0.7587 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4351, allocations: 0 / 0.7587 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.86e-05/0.4352, allocations: 27.98 kB / 0.7587 GB, free: 2.691 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.4357, allocations: 294.7 kB / 0.759 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.4358, allocations: 46.56 kB / 0.759 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.204e-05/0.4359, allocations: 20.98 kB / 0.7591 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.4359, allocations: 3.938 kB / 0.7591 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.4361, allocations: 71.39 kB / 0.7591 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.904e-06/0.4361, allocations: 0 / 0.7591 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002482/0.4364, allocations: 81.55 kB / 0.7592 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.4365, allocations: 59.41 kB / 0.7593 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.4366, allocations: 97 kB / 0.7593 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.4366, allocations: 33.69 kB / 0.7594 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.866e-05/0.4367, allocations: 84.14 kB / 0.7595 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.4368, allocations: 19.75 kB / 0.7595 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.214e-06/0.4368, allocations: 4 kB / 0.7595 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.4369, allocations: 318.8 kB / 0.7598 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.122e-05/0.437, allocations: 16 kB / 0.7598 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.702e-05/0.4371, allocations: 34.58 kB / 0.7598 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.585e-05/0.4371, allocations: 19.92 kB / 0.7599 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4372, allocations: 0 / 0.7599 GB, free: 1.387 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001982/0.4374, allocations: 81.56 kB / 0.7599 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.4374, allocations: 8 kB / 0.7599 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.4374, allocations: 0 / 0.7599 GB, free: 1.293 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.4374, allocations: 7.953 kB / 0.7599 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.4376, allocations: 16.17 kB / 0.76 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.4376, allocations: 0 / 0.76 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.4378, allocations: 19.92 kB / 0.76 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.4378, allocations: 0 / 0.76 GB, free: 1.25 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 8.849e-05/0.4379, allocations: 117 kB / 0.7601 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.1e-05/0.438, allocations: 7.906 kB / 0.7601 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002427/0.4382, allocations: 86.62 kB / 0.7602 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.4382, allocations: 4 kB / 0.7602 GB, free: 1.023 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4382, allocations: 3.953 kB / 0.7602 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.4383, allocations: 0 / 0.7602 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005402/0.4388, allocations: 358.6 kB / 0.7605 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.4388, allocations: 4 kB / 0.7605 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.4389, allocations: 12.08 kB / 0.7605 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.439, allocations: 3.984 kB / 0.7606 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.439, allocations: 3.953 kB / 0.7606 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.439, allocations: 4 kB / 0.7606 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.439, allocations: 0 / 0.7606 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002284/0.4393, allocations: 183.4 kB / 0.7607 GB, free: 400 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.214e-05/0.4393, allocations: 77.11 kB / 0.7608 GB, free: 304 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.4394, allocations: 8 kB / 0.7608 GB, free: 296 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000192/0.4396, allocations: 15.94 kB / 0.7608 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.4396, allocations: 11.92 kB / 0.7608 GB, free: 268 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.4396, allocations: 4 kB / 0.7608 GB, free: 264 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.265e-05/0.4397, allocations: 91.27 kB / 0.7609 GB, free: 172 kB / 0.6355 GB Notification: Performance of sort global known variables: time 4.21e-07/0.4397, allocations: 4 kB / 0.7609 GB, free: 168 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002896/0.44, allocations: 12 kB / 0.7609 GB, free: 156 kB / 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.0005377/0.4406, allocations: 0.7046 MB / 0.7616 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001964/0.4408, allocations: 43.94 kB / 0.7617 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4408, allocations: 4.062 kB / 0.7617 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.83e-05/0.4409, allocations: 24 kB / 0.7617 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.4412, allocations: 20.41 kB / 0.7617 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005425/0.4418, allocations: 130.6 kB / 0.7619 GB, free: 15.17 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.442, allocations: 0.6887 MB / 0.7625 GB, free: 14.45 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.854e-05/0.4421, allocations: 11.78 kB / 0.7625 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.593e-05/0.4422, allocations: 23.42 kB / 0.7626 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of SimCode: time 1.092e-06/0.4422, allocations: 3.938 kB / 0.7626 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.4663, allocations: 1.589 MB / 0.7641 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003548/0.4667, allocations: 165.8 kB / 0.7643 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.351/2.818, allocations: 0 / 0.7643 GB, free: 12.68 MB / 0.6511 GB