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.008926/0.008926, allocations: 110.6 kB / 15.05 MB, free: 5.961 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.001096/0.001096, allocations: 184.1 kB / 15.94 MB, free: 5.926 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 1.961/1.961, allocations: 194.6 MB / 211.3 MB, free: 11.26 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.447/2.447, allocations: 236.2 MB / 492.6 MB, free: 11.33 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007692/0.0007694, allocations: 12 kB / 0.587 GB, free: 2.172 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6338/0.6346, allocations: 98.71 MB / 0.6834 GB, free: 16.79 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2394/0.874, allocations: 124.5 MB / 0.805 GB, free: 1.766 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004183/0.8745, allocations: 71.95 kB / 0.805 GB, free: 1.695 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.006072/0.8806, allocations: 0.8732 MB / 0.8059 GB, free: 0.8203 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.475e-06/0.8807, allocations: 0 / 0.8059 GB, free: 0.8203 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.115e-05/0.8807, allocations: 0 / 0.8059 GB, free: 0.8203 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.0009781/0.8817, allocations: 363.2 kB / 0.8062 GB, free: 428 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 7.001e-05/0.8818, allocations: 8.031 kB / 0.8062 GB, free: 420 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.343e-05/0.8819, allocations: 4 kB / 0.8063 GB, free: 416 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.8822, allocations: 171 kB / 0.8064 GB, free: 204 kB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.8822, allocations: 0 / 0.8064 GB, free: 204 kB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.816e-05/0.8823, allocations: 7.938 kB / 0.8064 GB, free: 196 kB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004551/0.8828, allocations: 69.64 kB / 0.8065 GB, free: 120 kB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.8828, allocations: 4 kB / 0.8065 GB, free: 116 kB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.8829, allocations: 0 / 0.8065 GB, free: 116 kB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.8829, allocations: 4 kB / 0.8065 GB, free: 112 kB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005076/0.8834, allocations: 51.95 kB / 0.8065 GB, free: 60 kB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008944/0.8843, allocations: 280.7 kB / 0.8068 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.8848, allocations: 66.48 kB / 0.8069 GB, free: 15.66 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/0.8849, allocations: 7.984 kB / 0.8069 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004675/0.8854, allocations: 75.52 kB / 0.807 GB, free: 15.57 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 4.361e-06/0.8854, allocations: 0 / 0.807 GB, free: 15.57 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.001059/0.8865, allocations: 133.6 kB / 0.8071 GB, free: 15.43 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.139e-05/0.8866, allocations: 63.36 kB / 0.8071 GB, free: 15.36 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.8868, allocations: 97.23 kB / 0.8072 GB, free: 15.25 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.693e-05/0.8869, allocations: 29.7 kB / 0.8073 GB, free: 15.22 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.887, allocations: 84.05 kB / 0.8073 GB, free: 15.13 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.005e-05/0.8871, allocations: 19.8 kB / 0.8074 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.18e-05/0.8871, allocations: 0 / 0.8074 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002809/0.8874, allocations: 322.8 kB / 0.8077 GB, free: 14.79 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.8877, allocations: 27.98 kB / 0.8077 GB, free: 14.76 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.8881, allocations: 51.41 kB / 0.8078 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/0.8884, allocations: 35.97 kB / 0.8078 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.101e-06/0.8884, allocations: 0 / 0.8078 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007546/0.8892, allocations: 117.6 kB / 0.8079 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/0.8892, allocations: 4 kB / 0.8079 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.8893, allocations: 256 / 0.8079 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.8893, allocations: 4 kB / 0.8079 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.8896, allocations: 19.98 kB / 0.8079 GB, free: 14.52 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.8896, allocations: 0 / 0.8079 GB, free: 14.52 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.8898, allocations: 15.94 kB / 0.8079 GB, free: 14.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.8899, allocations: 4 kB / 0.8079 GB, free: 14.5 MB / 0.6355 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.000206/0.8901, allocations: 121.7 kB / 0.8081 GB, free: 14.37 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.77e-05/0.8902, allocations: 7.906 kB / 0.8081 GB, free: 14.36 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007584/0.891, allocations: 110 kB / 0.8082 GB, free: 14.24 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.997e-06/0.891, allocations: 0 / 0.8082 GB, free: 14.24 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.891, allocations: 4 kB / 0.8082 GB, free: 14.24 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.8911, allocations: 4 kB / 0.8082 GB, free: 14.23 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.8923, allocations: 362.5 kB / 0.8085 GB, free: 13.82 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.8923, allocations: 0 / 0.8085 GB, free: 13.82 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.829e-05/0.8925, allocations: 19.98 kB / 0.8085 GB, free: 13.8 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.179e-06/0.8925, allocations: 0 / 0.8085 GB, free: 13.8 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.8925, allocations: 4 kB / 0.8085 GB, free: 13.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.649e-06/0.8925, allocations: 3.938 kB / 0.8086 GB, free: 13.8 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.326e-06/0.8925, allocations: 3.953 kB / 0.8086 GB, free: 13.79 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004013/0.8929, allocations: 207.4 kB / 0.8088 GB, free: 13.57 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.772e-05/0.893, allocations: 77.11 kB / 0.8088 GB, free: 13.48 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.893, allocations: 7.938 kB / 0.8088 GB, free: 13.47 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.8932, allocations: 11.98 kB / 0.8088 GB, free: 13.46 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.8933, allocations: 4.031 kB / 0.8088 GB, free: 13.46 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.8933, allocations: 16.12 kB / 0.8089 GB, free: 13.44 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.666e-05/0.8934, allocations: 87.28 kB / 0.8089 GB, free: 13.36 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.02e-07/0.8934, allocations: 0 / 0.8089 GB, free: 13.36 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003222/0.8937, allocations: 8 kB / 0.809 GB, free: 13.35 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.000138/0.8939, allocations: 107.2 kB / 0.8091 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003207/0.8942, allocations: 71.89 kB / 0.8091 GB, free: 13.16 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.907e-06/0.8942, allocations: 0 / 0.8091 GB, free: 13.16 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.8944, allocations: 39.92 kB / 0.8092 GB, free: 13.12 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/0.8946, allocations: 7.984 kB / 0.8092 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003872/0.895, allocations: 136.9 kB / 0.8093 GB, free: 12.95 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003743/0.8954, allocations: 0.6887 MB / 0.81 GB, free: 12.24 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.384e-05/0.8955, allocations: 4.188 kB / 0.81 GB, free: 12.23 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.357e-05/0.8955, allocations: 7.438 kB / 0.81 GB, free: 12.23 MB / 0.6355 GB Notification: Performance of SimCode: time 1.596e-06/0.8955, allocations: 3.938 kB / 0.81 GB, free: 12.22 MB / 0.6355 GB Notification: Performance of Templates: time 0.003146/0.8987, allocations: 0.5346 MB / 0.8105 GB, free: 11.7 MB / 0.6355 GB