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.01081/0.01081, allocations: 222.3 kB / 15.17 MB, free: 5.926 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.001161/0.001161, allocations: 176 kB / 16.06 MB, free: 5.832 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 3.804/3.804, allocations: 389.1 MB / 405.9 MB, free: 14.21 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.159/4.159, allocations: 472.3 MB / 0.9018 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.0007743/0.0007745, allocations: 13.81 kB / 1.008 GB, free: 54.4 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.1662, allocations: 98.72 MB / 1.104 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001729/0.168, allocations: 1.091 MB / 1.105 GB, free: 4.805 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0005172/0.1685, allocations: 210.4 kB / 1.105 GB, free: 4.598 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.691e-05/0.1686, allocations: 1.938 kB / 1.105 GB, free: 4.598 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.1686, allocations: 0 / 1.105 GB, free: 4.598 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 6.242e-05/0.1687, allocations: 7.938 kB / 1.105 GB, free: 4.59 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001744/0.1689, allocations: 15.97 kB / 1.105 GB, free: 4.574 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 8.054e-05/0.169, allocations: 39.84 kB / 1.105 GB, free: 4.535 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 8.412e-05/0.1691, allocations: 13.41 kB / 1.105 GB, free: 4.523 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 5.697e-05/0.1691, allocations: 11.92 kB / 1.105 GB, free: 4.512 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 4.927e-05/0.1692, allocations: 13.64 kB / 1.105 GB, free: 4.5 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 2.141e-05/0.1692, allocations: 11.88 kB / 1.105 GB, free: 4.488 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 1.12e-05/0.1693, allocations: 0 / 1.105 GB, free: 4.488 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 2.583e-05/0.1693, allocations: 15.97 kB / 1.105 GB, free: 4.473 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 3.756e-05/0.1693, allocations: 25.7 kB / 1.105 GB, free: 4.441 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 7.674e-05/0.1694, allocations: 32.91 kB / 1.105 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.253e-06/0.1694, allocations: 0 / 1.105 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.811e-06/0.1694, allocations: 0 / 1.105 GB, free: 4.41 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.205e-06/0.1695, allocations: 2.031 kB / 1.105 GB, free: 4.41 MB / 0.5105 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.0005899/0.1701, allocations: 360.5 kB / 1.106 GB, free: 4.012 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.1701, allocations: 12.53 kB / 1.106 GB, free: 4 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.103e-05/0.1702, allocations: 1.062 kB / 1.106 GB, free: 4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.1703, allocations: 175 kB / 1.106 GB, free: 3.789 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.1703, allocations: 0 / 1.106 GB, free: 3.789 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.1704, allocations: 8.562 kB / 1.106 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002284/0.1706, allocations: 63.22 kB / 1.106 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.1706, allocations: 0 / 1.106 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.1706, allocations: 5.156 kB / 1.106 GB, free: 3.711 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.876e-06/0.1707, allocations: 4 kB / 1.106 GB, free: 3.707 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002357/0.1709, allocations: 50.14 kB / 1.106 GB, free: 3.66 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004912/0.1714, allocations: 286.2 kB / 1.106 GB, free: 3.332 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.1716, allocations: 60.11 kB / 1.106 GB, free: 3.266 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.1718, allocations: 43.61 kB / 1.107 GB, free: 3.223 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1718, allocations: 0 / 1.107 GB, free: 3.223 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.1721, allocations: 78.59 kB / 1.107 GB, free: 3.137 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=6): time 2.392e-06/0.1721, allocations: 0 / 1.107 GB, free: 3.137 MB / 0.5105 GB Notification: Performance of matching and sorting (n=6): time 0.0005131/0.1726, allocations: 131.9 kB / 1.107 GB, free: 3.004 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/0.1727, allocations: 67.28 kB / 1.107 GB, free: 2.926 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.1728, allocations: 102.4 kB / 1.107 GB, free: 2.816 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.1729, allocations: 26.3 kB / 1.107 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.67e-05/0.1729, allocations: 93.12 kB / 1.107 GB, free: 2.691 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.173, allocations: 11.81 kB / 1.107 GB, free: 2.68 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-06/0.173, allocations: 4 kB / 1.107 GB, free: 2.676 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001568/0.1732, allocations: 312.1 kB / 1.107 GB, free: 2.363 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.1733, allocations: 34.28 kB / 1.107 GB, free: 2.332 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001441/0.1735, allocations: 55.91 kB / 1.107 GB, free: 2.266 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.1736, allocations: 34.45 kB / 1.107 GB, free: 2.234 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.099e-06/0.1736, allocations: 5.875 kB / 1.107 GB, free: 2.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003487/0.174, allocations: 107 kB / 1.108 GB, free: 2.121 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.174, allocations: 11.12 kB / 1.108 GB, free: 2.113 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.318e-06/0.174, allocations: 0.5625 kB / 1.108 GB, free: 2.113 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.174, allocations: 0.9688 kB / 1.108 GB, free: 2.113 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.1742, allocations: 17.55 kB / 1.108 GB, free: 2.098 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.661e-06/0.1742, allocations: 7.953 kB / 1.108 GB, free: 2.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.879e-05/0.1743, allocations: 12 kB / 1.108 GB, free: 2.078 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.1743, allocations: 4.594 kB / 1.108 GB, free: 2.074 MB / 0.5105 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.0001202/0.1745, allocations: 121.2 kB / 1.108 GB, free: 1.949 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.1745, allocations: 7.906 kB / 1.108 GB, free: 1.941 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003759/0.1749, allocations: 110.5 kB / 1.108 GB, free: 1.824 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.886e-06/0.1749, allocations: 5.062 kB / 1.108 GB, free: 1.82 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.256e-06/0.1749, allocations: 0 / 1.108 GB, free: 1.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.58e-06/0.1749, allocations: 3.953 kB / 1.108 GB, free: 1.816 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006367/0.1756, allocations: 374.6 kB / 1.108 GB, free: 1.398 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.944e-06/0.1756, allocations: 0 / 1.108 GB, free: 1.398 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.62e-05/0.1757, allocations: 11.98 kB / 1.108 GB, free: 1.387 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.238e-06/0.1757, allocations: 5.125 kB / 1.108 GB, free: 1.383 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.1757, allocations: 0 / 1.108 GB, free: 1.383 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.1757, allocations: 3.953 kB / 1.108 GB, free: 1.379 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1757, allocations: 3.281 kB / 1.108 GB, free: 1.379 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004053/0.1762, allocations: 212.3 kB / 1.108 GB, free: 1.156 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.589e-05/0.1762, allocations: 77.11 kB / 1.108 GB, free: 1.062 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.1763, allocations: 0 / 1.108 GB, free: 1.062 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.1764, allocations: 13.45 kB / 1.108 GB, free: 1.051 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.54e-05/0.1765, allocations: 14.58 kB / 1.109 GB, free: 1.039 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1765, allocations: 0 / 1.109 GB, free: 1.039 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 6.719e-05/0.1766, allocations: 87.27 kB / 1.109 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.3e-07/0.1766, allocations: 0 / 1.109 GB, free: 0.9531 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003414/0.1769, allocations: 12 kB / 1.109 GB, free: 0.9414 MB / 0.5105 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.0001362/0.1771, allocations: 100 kB / 1.109 GB, free: 0.8359 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003171/0.1774, allocations: 78.64 kB / 1.109 GB, free: 0.7617 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.714e-06/0.1774, allocations: 0 / 1.109 GB, free: 0.7617 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.1776, allocations: 37.47 kB / 1.109 GB, free: 0.7266 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.1779, allocations: 4.781 kB / 1.109 GB, free: 0.7227 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003803/0.1783, allocations: 150.1 kB / 1.109 GB, free: 0.5508 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.1787, allocations: 0.686 MB / 1.11 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.289e-05/0.1788, allocations: 4.672 kB / 1.11 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.1788, allocations: 12.25 kB / 1.11 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of SimCode: time 1.627e-06/0.1788, allocations: 0 / 1.11 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of Templates: time 0.003175/0.182, allocations: 0.5412 MB / 1.11 GB, free: 15.3 MB / 0.5261 GB