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.TriggeredSampler.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.TriggeredSampler,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.921/3.921, allocations: 432.6 MB / 445.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.339e-05/4.371e-05, allocations: 4.969 kB / 0.5383 GB, free: 10.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2025/0.2026, allocations: 98.73 MB / 0.6347 GB, free: 1.859 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2214/0.4241, allocations: 124.7 MB / 0.7565 GB, free: 4.977 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.4244, allocations: 75.89 kB / 0.7566 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004571/0.429, allocations: 1.114 MB / 0.7577 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4291, allocations: 0 / 0.7577 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.4291, allocations: 0 / 0.7577 GB, free: 3.785 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006387/0.4297, allocations: 386.2 kB / 0.758 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.4298, allocations: 8.031 kB / 0.7581 GB, free: 3.355 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.595e-05/0.4299, allocations: 42.55 kB / 0.7581 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.4299, allocations: 4 kB / 0.7581 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.4301, allocations: 170.9 kB / 0.7583 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.4301, allocations: 4 kB / 0.7583 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.4301, allocations: 8 kB / 0.7583 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001707/0.4303, allocations: 65.67 kB / 0.7583 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.4303, allocations: 0 / 0.7583 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.4304, allocations: 3.938 kB / 0.7583 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.4304, allocations: 3.984 kB / 0.7583 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001131/0.4305, allocations: 27.94 kB / 0.7584 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005976/0.4311, allocations: 316.7 kB / 0.7587 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001536/0.4313, allocations: 58.5 kB / 0.7587 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.046e-05/0.4314, allocations: 16.98 kB / 0.7587 GB, free: 2.531 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.4314, allocations: 4 kB / 0.7587 GB, free: 2.527 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.4316, allocations: 71.38 kB / 0.7588 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 2.916e-06/0.4316, allocations: 4 kB / 0.7588 GB, free: 2.441 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8): time 0.0002761/0.4319, allocations: 89.62 kB / 0.7589 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.432, allocations: 57.31 kB / 0.759 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.4321, allocations: 117.1 kB / 0.7591 GB, free: 2.156 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.4321, allocations: 25.7 kB / 0.7591 GB, free: 2.125 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.4322, allocations: 88.52 kB / 0.7592 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.416e-05/0.4322, allocations: 19.7 kB / 0.7592 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.183e-06/0.4323, allocations: 0 / 0.7592 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.4324, allocations: 322.8 kB / 0.7595 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.532e-05/0.4325, allocations: 23.94 kB / 0.7595 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.078e-05/0.4326, allocations: 48.28 kB / 0.7596 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.96e-05/0.4327, allocations: 16 kB / 0.7596 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4327, allocations: 4 kB / 0.7596 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002354/0.4329, allocations: 93.55 kB / 0.7597 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.433, allocations: 4 kB / 0.7597 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.433, allocations: 4 kB / 0.7597 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.433, allocations: 3.953 kB / 0.7597 GB, free: 1.477 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.4332, allocations: 28.03 kB / 0.7597 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.4332, allocations: 3.938 kB / 0.7597 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/0.4334, allocations: 24.02 kB / 0.7597 GB, free: 1.422 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.4335, allocations: 4 kB / 0.7598 GB, free: 1.418 MB / 0.6355 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 9.247e-05/0.4336, allocations: 112.9 kB / 0.7599 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.685e-05/0.4336, allocations: 11.89 kB / 0.7599 GB, free: 1.289 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002698/0.4339, allocations: 98.22 kB / 0.76 GB, free: 1.18 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4339, allocations: 4 kB / 0.76 GB, free: 1.176 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.4339, allocations: 3.953 kB / 0.76 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4339, allocations: 4 kB / 0.76 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005885/0.4345, allocations: 362.5 kB / 0.7603 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4345, allocations: 0 / 0.7603 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.4347, allocations: 11.94 kB / 0.7603 GB, free: 0.7461 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.4347, allocations: 8 kB / 0.7603 GB, free: 0.7383 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.4347, allocations: 7.938 kB / 0.7603 GB, free: 0.7305 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.4347, allocations: 4 kB / 0.7604 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4348, allocations: 0 / 0.7604 GB, free: 0.7266 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002513/0.435, allocations: 179.5 kB / 0.7605 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.4351, allocations: 81.09 kB / 0.7606 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.4351, allocations: 0 / 0.7606 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001914/0.4353, allocations: 27.94 kB / 0.7606 GB, free: 420 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.808e-05/0.4354, allocations: 7.984 kB / 0.7606 GB, free: 412 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.4354, allocations: 4 kB / 0.7606 GB, free: 408 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.752e-05/0.4355, allocations: 91.22 kB / 0.7607 GB, free: 316 kB / 0.6355 GB Notification: Performance of sort global known variables: time 4.51e-07/0.4355, allocations: 0 / 0.7607 GB, free: 316 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003064/0.4358, allocations: 19.91 kB / 0.7607 GB, free: 296 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: 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.0005833/0.4364, allocations: 0.7218 MB / 0.7614 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002019/0.4366, allocations: 55.83 kB / 0.7615 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.4366, allocations: 4 kB / 0.7615 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.791e-05/0.4367, allocations: 23.94 kB / 0.7615 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.437, allocations: 19.94 kB / 0.7615 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005741/0.4376, allocations: 143.2 kB / 0.7617 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.4379, allocations: 0.6967 MB / 0.7624 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.339e-05/0.438, allocations: 11.92 kB / 0.7624 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.469e-05/0.4381, allocations: 19.44 kB / 0.7624 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of SimCode: time 9.92e-07/0.4381, allocations: 0 / 0.7624 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.4628, allocations: 1.71 MB / 0.7641 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002876/0.4632, allocations: 162 kB / 0.7642 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.326/2.789, allocations: 0 / 0.7642 GB, free: 12.66 MB / 0.6511 GB