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.Sampler.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.007207/0.007206, allocations: 233.6 kB / 15.82 MB, free: 6.289 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00176/0.00176, allocations: 173.1 kB / 16.7 MB, free: 5.449 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 4.066/4.066, allocations: 389.1 MB / 406.5 MB, free: 11.81 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.037/4.037, allocations: 472.3 MB / 0.9024 GB, free: 9.199 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0006532/0.0006535, allocations: 12.22 kB / 1.008 GB, free: 138.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1764, allocations: 98.71 MB / 1.105 GB, free: 42.14 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7762/0.9527, allocations: 124.5 MB / 1.226 GB, free: 28.57 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.953, allocations: 73.48 kB / 1.226 GB, free: 28.55 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.003382/0.9564, allocations: 0.8755 MB / 1.227 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.895e-06/0.9564, allocations: 0 / 1.227 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.9564, allocations: 0 / 1.227 GB, free: 27.93 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005314/0.957, allocations: 361.1 kB / 1.228 GB, free: 27.56 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.957, allocations: 8.031 kB / 1.228 GB, free: 27.55 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.404e-05/0.9571, allocations: 12.14 kB / 1.228 GB, free: 27.55 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.847e-05/0.9572, allocations: 171.3 kB / 1.228 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.253e-05/0.9572, allocations: 8.453 kB / 1.228 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.9573, allocations: 3.438 kB / 1.228 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.9575, allocations: 66.92 kB / 1.228 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.9576, allocations: 0 / 1.228 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.9576, allocations: 4.578 kB / 1.228 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.9576, allocations: 0 / 1.228 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003171/0.9579, allocations: 50.48 kB / 1.228 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004446/0.9584, allocations: 285.8 kB / 1.228 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.9586, allocations: 65.12 kB / 1.228 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.9588, allocations: 34.77 kB / 1.228 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.9588, allocations: 5.5 kB / 1.228 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002778/0.9591, allocations: 75.59 kB / 1.228 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 2.956e-06/0.9592, allocations: 0 / 1.228 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.000619/0.9598, allocations: 138.7 kB / 1.228 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.9598, allocations: 56.02 kB / 1.228 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.451e-05/0.9599, allocations: 108.4 kB / 1.229 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.96, allocations: 28.55 kB / 1.229 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.538e-05/0.96, allocations: 93.41 kB / 1.229 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.9601, allocations: 3.906 kB / 1.229 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.212e-06/0.9601, allocations: 0.625 kB / 1.229 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.9602, allocations: 324.4 kB / 1.229 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.9604, allocations: 24.03 kB / 1.229 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.9605, allocations: 55.45 kB / 1.229 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.9607, allocations: 36.78 kB / 1.229 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.9607, allocations: 0 / 1.229 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004054/0.9612, allocations: 118.4 kB / 1.229 GB, free: 25.92 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.9612, allocations: 4.609 kB / 1.229 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.9612, allocations: 4 kB / 1.229 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.9612, allocations: 0 / 1.229 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.9614, allocations: 15.52 kB / 1.229 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.9614, allocations: 4.609 kB / 1.229 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.9615, allocations: 14.36 kB / 1.229 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.9616, allocations: 4.781 kB / 1.229 GB, free: 25.88 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001151/0.9617, allocations: 128.8 kB / 1.229 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.901e-05/0.9617, allocations: 5.312 kB / 1.229 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000467/0.9622, allocations: 113 kB / 1.23 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.9622, allocations: 4 kB / 1.23 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.9622, allocations: 0 / 1.23 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.9623, allocations: 3.953 kB / 1.23 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000599/0.9629, allocations: 367.7 kB / 1.23 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.9629, allocations: 3.141 kB / 1.23 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.963, allocations: 11 kB / 1.23 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.963, allocations: 4.266 kB / 1.23 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.963, allocations: 9.781 kB / 1.23 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.9631, allocations: 3.953 kB / 1.23 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.9631, allocations: 4 kB / 1.23 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009971/0.9641, allocations: 204 kB / 1.23 GB, free: 41.11 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.222e-05/0.9641, allocations: 81.91 kB / 1.23 GB, free: 41.01 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.9642, allocations: 0.5156 kB / 1.23 GB, free: 41.01 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.9643, allocations: 14.88 kB / 1.23 GB, free: 41 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.746e-05/0.9644, allocations: 9.969 kB / 1.23 GB, free: 41 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.9644, allocations: 3.422 kB / 1.23 GB, free: 41 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.775e-05/0.9645, allocations: 87.69 kB / 1.23 GB, free: 40.92 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.5e-07/0.9645, allocations: 0 / 1.23 GB, free: 40.92 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003246/0.9648, allocations: 8 kB / 1.23 GB, free: 40.91 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.000121/0.965, allocations: 100.3 kB / 1.23 GB, free: 40.8 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003933/0.9654, allocations: 73.78 kB / 1.23 GB, free: 40.76 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.9654, allocations: 4 kB / 1.23 GB, free: 40.75 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001782/0.9656, allocations: 36.92 kB / 1.231 GB, free: 40.73 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.966, allocations: 8.625 kB / 1.231 GB, free: 40.73 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004036/0.9664, allocations: 148.8 kB / 1.231 GB, free: 40.58 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.9666, allocations: 0.687 MB / 1.231 GB, free: 39.88 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.547e-05/0.9667, allocations: 5.219 kB / 1.231 GB, free: 39.87 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.361e-05/0.9667, allocations: 11.44 kB / 1.231 GB, free: 39.87 MB / 0.6355 GB Notification: Performance of SimCode: time 9.02e-07/0.9668, allocations: 0 / 1.231 GB, free: 39.87 MB / 0.6355 GB Notification: Performance of Templates: time 0.003409/0.9702, allocations: 0.5386 MB / 1.232 GB, free: 39.59 MB / 0.6355 GB