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.Logical.Sources.Validation.SampleTrigger.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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.039/4.039, allocations: 433.2 MB / 440.8 MB, free: 4.551 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.265e-05/3.283e-05, allocations: 6.625 kB / 0.5325 GB, free: 12.69 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2056, allocations: 98.73 MB / 0.6289 GB, free: 9.07 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2297/0.4354, allocations: 123.7 MB / 0.7497 GB, free: 13.18 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/0.4357, allocations: 75.95 kB / 0.7498 GB, free: 13.1 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002701/0.4384, allocations: 0.743 MB / 0.7505 GB, free: 12.35 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.783e-06/0.4385, allocations: 0 / 0.7505 GB, free: 12.35 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.4385, allocations: 0 / 0.7505 GB, free: 12.35 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005032/0.439, allocations: 342.5 kB / 0.7509 GB, free: 11.97 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.439, allocations: 12.03 kB / 0.7509 GB, free: 11.96 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.856e-05/0.4391, allocations: 11.86 kB / 0.7509 GB, free: 11.95 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.4393, allocations: 167 kB / 0.7511 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.4393, allocations: 0 / 0.7511 GB, free: 11.75 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.4393, allocations: 4 kB / 0.7511 GB, free: 11.74 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.377e-05/0.4394, allocations: 11.94 kB / 0.7511 GB, free: 11.73 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.299e-05/0.4395, allocations: 41.69 kB / 0.7511 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.4395, allocations: 0 / 0.7511 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.4395, allocations: 4 kB / 0.7511 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.4396, allocations: 4 kB / 0.7511 GB, free: 11.68 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004599/0.44, allocations: 237.5 kB / 0.7513 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.822e-05/0.4401, allocations: 30.56 kB / 0.7514 GB, free: 11.37 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.937e-05/0.4402, allocations: 12.86 kB / 0.7514 GB, free: 11.35 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.4402, allocations: 4 kB / 0.7514 GB, free: 11.35 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.4404, allocations: 55.44 kB / 0.7514 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 2.034e-06/0.4404, allocations: 4 kB / 0.7514 GB, free: 11.28 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001909/0.4406, allocations: 57.59 kB / 0.7515 GB, free: 11.21 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.4407, allocations: 55.36 kB / 0.7516 GB, free: 11.15 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.755e-05/0.4408, allocations: 97 kB / 0.7516 GB, free: 11.05 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.4408, allocations: 25.7 kB / 0.7517 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.805e-05/0.4409, allocations: 84.08 kB / 0.7518 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.4409, allocations: 19.89 kB / 0.7518 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/0.4409, allocations: 0 / 0.7518 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4411, allocations: 310.8 kB / 0.7521 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.062e-05/0.4411, allocations: 8 kB / 0.7521 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.926e-05/0.4412, allocations: 30.52 kB / 0.7521 GB, free: 10.55 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.837e-05/0.4412, allocations: 11.98 kB / 0.7521 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4413, allocations: 7.938 kB / 0.7521 GB, free: 10.53 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001363/0.4414, allocations: 57.55 kB / 0.7522 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.4414, allocations: 4 kB / 0.7522 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.4414, allocations: 0 / 0.7522 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.4415, allocations: 4.125 kB / 0.7522 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.4416, allocations: 15.98 kB / 0.7522 GB, free: 10.44 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.4416, allocations: 0 / 0.7522 GB, free: 10.44 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.4417, allocations: 20.03 kB / 0.7522 GB, free: 10.42 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.4418, allocations: 0 / 0.7522 GB, free: 10.42 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: 4 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.75e-05/0.4419, allocations: 105 kB / 0.7523 GB, free: 10.31 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000135/0.442, allocations: 57.62 kB / 0.7524 GB, free: 10.25 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.662e-05/0.442, allocations: 8 kB / 0.7524 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.4421, allocations: 12.33 kB / 0.7524 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.4421, allocations: 0 / 0.7524 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.4421, allocations: 3.953 kB / 0.7524 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4421, allocations: 0 / 0.7524 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003465/0.4425, allocations: 287.2 kB / 0.7527 GB, free: 9.902 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4425, allocations: 0 / 0.7527 GB, free: 9.902 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.589e-05/0.4426, allocations: 7.984 kB / 0.7527 GB, free: 9.895 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.4426, allocations: 4 kB / 0.7527 GB, free: 9.891 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.216e-06/0.4426, allocations: 0 / 0.7527 GB, free: 9.891 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.4427, allocations: 3.953 kB / 0.7527 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4427, allocations: 3.938 kB / 0.7527 GB, free: 9.883 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.4428, allocations: 155.5 kB / 0.7528 GB, free: 9.715 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.4429, allocations: 84.95 kB / 0.7529 GB, free: 9.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.4429, allocations: 0 / 0.7529 GB, free: 9.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.4431, allocations: 11.98 kB / 0.7529 GB, free: 9.602 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.4432, allocations: 7.938 kB / 0.7529 GB, free: 9.594 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.4432, allocations: 4 kB / 0.7529 GB, free: 9.59 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.397e-05/0.4432, allocations: 87.22 kB / 0.753 GB, free: 9.504 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.2e-07/0.4432, allocations: 4 kB / 0.753 GB, free: 9.5 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002832/0.4435, allocations: 4 kB / 0.753 GB, free: 9.496 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: 3 (samTri.y,$whenCondition1,triggeredSampler.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005258/0.4441, allocations: 0.6851 MB / 0.7537 GB, free: 8.781 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001226/0.4442, allocations: 24 kB / 0.7537 GB, free: 8.758 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4442, allocations: 192 / 0.7537 GB, free: 8.758 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.4443, allocations: 19.94 kB / 0.7537 GB, free: 8.738 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.4446, allocations: 11.89 kB / 0.7538 GB, free: 8.727 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004407/0.4451, allocations: 101.5 kB / 0.7539 GB, free: 8.59 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.4454, allocations: 0.6807 MB / 0.7545 GB, free: 7.883 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.364e-05/0.4455, allocations: 7.984 kB / 0.7545 GB, free: 7.875 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.737e-05/0.4455, allocations: 11.44 kB / 0.7545 GB, free: 7.867 MB / 0.6355 GB Notification: Performance of SimCode: time 1.102e-06/0.4455, allocations: 4 kB / 0.7545 GB, free: 7.863 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03683/0.4824, allocations: 0.9272 MB / 0.7554 GB, free: 6.949 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003336/0.4828, allocations: 167.8 kB / 0.7556 GB, free: 6.754 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.719, allocations: 3.938 kB / 0.7556 GB, free: 6.75 MB / 0.6355 GB