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.004192/0.004196, allocations: 237.7 kB / 15.81 MB, free: 6.281 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.001116/0.001116, allocations: 183.5 kB / 16.69 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 3.923/3.923, allocations: 389.1 MB / 406.5 MB, free: 11.86 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.122/4.122, allocations: 472.3 MB / 0.9024 GB, free: 9.23 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004915/0.0004917, allocations: 12 kB / 1.008 GB, free: 176.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1736, allocations: 98.71 MB / 1.105 GB, free: 80.57 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001408/0.1751, allocations: 1.092 MB / 1.106 GB, free: 79.47 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004642/0.1756, allocations: 204.4 kB / 1.106 GB, free: 79.27 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.015e-05/0.1756, allocations: 3.031 kB / 1.106 GB, free: 79.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.444e-05/0.1757, allocations: 0 / 1.106 GB, free: 79.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.358e-05/0.1757, allocations: 11.92 kB / 1.106 GB, free: 79.25 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001655/0.1759, allocations: 23.91 kB / 1.106 GB, free: 79.23 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.066e-05/0.176, allocations: 35.86 kB / 1.106 GB, free: 79.2 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.272e-05/0.1761, allocations: 9.594 kB / 1.106 GB, free: 79.19 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.825e-05/0.1762, allocations: 18.83 kB / 1.106 GB, free: 79.17 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.49e-05/0.1762, allocations: 11.98 kB / 1.106 GB, free: 79.16 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.1762, allocations: 7.938 kB / 1.106 GB, free: 79.15 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.37e-05/0.1763, allocations: 0 / 1.106 GB, free: 79.15 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.97e-05/0.1763, allocations: 11.97 kB / 1.106 GB, free: 79.14 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.714e-05/0.1763, allocations: 29.7 kB / 1.106 GB, free: 79.11 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.622e-05/0.1764, allocations: 27.94 kB / 1.106 GB, free: 79.08 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1764, allocations: 0 / 1.106 GB, free: 79.08 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1764, allocations: 3.062 kB / 1.106 GB, free: 79.08 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.1764, allocations: 0 / 1.106 GB, free: 79.08 MB / 0.6042 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.0005533/0.177, allocations: 365.5 kB / 1.106 GB, free: 78.68 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1771, allocations: 8.031 kB / 1.106 GB, free: 78.67 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.435e-05/0.1771, allocations: 4 kB / 1.106 GB, free: 78.66 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.725e-05/0.1772, allocations: 171 kB / 1.107 GB, free: 78.46 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.1772, allocations: 7.984 kB / 1.107 GB, free: 78.45 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.1773, allocations: 7.281 kB / 1.107 GB, free: 78.45 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.1775, allocations: 61.67 kB / 1.107 GB, free: 78.38 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.1776, allocations: 0 / 1.107 GB, free: 78.38 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.1776, allocations: 0 / 1.107 GB, free: 78.38 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.1776, allocations: 7.938 kB / 1.107 GB, free: 78.37 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002884/0.1779, allocations: 53.55 kB / 1.107 GB, free: 78.32 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003783/0.1783, allocations: 288.6 kB / 1.107 GB, free: 77.99 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002175/0.1785, allocations: 63.2 kB / 1.107 GB, free: 77.93 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.1787, allocations: 36.97 kB / 1.107 GB, free: 77.89 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.1787, allocations: 0 / 1.107 GB, free: 77.89 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.179, allocations: 77.53 kB / 1.107 GB, free: 77.8 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.314e-06/0.179, allocations: 0 / 1.107 GB, free: 77.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0005702/0.1796, allocations: 136.5 kB / 1.107 GB, free: 77.66 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.1796, allocations: 62.58 kB / 1.107 GB, free: 77.59 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.617e-05/0.1797, allocations: 105.9 kB / 1.107 GB, free: 77.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.1797, allocations: 33.7 kB / 1.107 GB, free: 77.44 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.23e-05/0.1798, allocations: 84.05 kB / 1.108 GB, free: 77.36 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.1798, allocations: 15.81 kB / 1.108 GB, free: 77.34 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.1798, allocations: 0 / 1.108 GB, free: 77.34 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.99e-05/0.1799, allocations: 319.9 kB / 1.108 GB, free: 77.02 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.18, allocations: 27.17 kB / 1.108 GB, free: 77 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.1802, allocations: 55.41 kB / 1.108 GB, free: 76.93 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.1804, allocations: 36.08 kB / 1.108 GB, free: 76.9 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1804, allocations: 0 / 1.108 GB, free: 76.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003633/0.1808, allocations: 109 kB / 1.108 GB, free: 76.79 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1808, allocations: 8 kB / 1.108 GB, free: 76.78 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.1808, allocations: 0 / 1.108 GB, free: 76.78 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1808, allocations: 0 / 1.108 GB, free: 76.78 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.181, allocations: 19.98 kB / 1.108 GB, free: 76.76 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.181, allocations: 4 kB / 1.108 GB, free: 76.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.1811, allocations: 15.34 kB / 1.108 GB, free: 76.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.1811, allocations: 4 kB / 1.108 GB, free: 76.74 MB / 0.6042 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 7.283e-05/0.1812, allocations: 117.8 kB / 1.108 GB, free: 76.62 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.1812, allocations: 10.44 kB / 1.108 GB, free: 76.61 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003915/0.1816, allocations: 112.7 kB / 1.108 GB, free: 76.49 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1817, allocations: 0 / 1.108 GB, free: 76.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.1817, allocations: 0 / 1.108 GB, free: 76.49 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.621e-05/0.1817, allocations: 84.98 kB / 1.108 GB, free: 76.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.1817, allocations: 11.94 kB / 1.108 GB, free: 76.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.1819, allocations: 12.25 kB / 1.108 GB, free: 76.37 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.1819, allocations: 11.92 kB / 1.108 GB, free: 76.36 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004304/0.1824, allocations: 189.9 kB / 1.109 GB, free: 76.17 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003988/0.1828, allocations: 277.7 kB / 1.109 GB, free: 75.88 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001647/0.1829, allocations: 39.62 kB / 1.109 GB, free: 75.85 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.296e-05/0.183, allocations: 91.23 kB / 1.109 GB, free: 75.76 MB / 0.6042 GB Notification: Performance of Backend: time 6.41e-07/0.183, allocations: 7.938 kB / 1.109 GB, free: 75.75 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005056/0.1835, allocations: 113.2 kB / 1.109 GB, free: 75.64 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0004286/0.184, allocations: 0.5845 MB / 1.11 GB, free: 75 MB / 0.6042 GB Notification: Performance of Templates: time 0.00328/0.1873, allocations: 0.6364 MB / 1.11 GB, free: 74.4 MB / 0.6042 GB