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.009155/0.009155, allocations: 107.6 kB / 15.06 MB, free: 5.562 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.001129/0.001129, allocations: 185.8 kB / 15.95 MB, free: 5.523 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.977/1.977, allocations: 194.5 MB / 211.3 MB, free: 11.07 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.123/2.123, allocations: 236.1 MB / 492.6 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004656/0.0004657, allocations: 12 kB / 0.5869 GB, free: 2.152 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6079/0.6084, allocations: 98.7 MB / 0.6833 GB, free: 16.62 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001298/0.6097, allocations: 1.08 MB / 0.6844 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0004339/0.6102, allocations: 206.2 kB / 0.6846 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/0.6102, allocations: 1.219 kB / 0.6846 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 1.672e-05/0.6102, allocations: 0.5156 kB / 0.6846 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 5.528e-05/0.6103, allocations: 13.92 kB / 0.6846 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.6105, allocations: 21.41 kB / 0.6846 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 6.338e-05/0.6105, allocations: 24.31 kB / 0.6846 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 7.775e-05/0.6106, allocations: 9.969 kB / 0.6847 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 5.884e-05/0.6107, allocations: 24.64 kB / 0.6847 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 4.587e-05/0.6108, allocations: 17.92 kB / 0.6847 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.6108, allocations: 1.844 kB / 0.6847 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 1.32e-05/0.6108, allocations: 2.125 kB / 0.6847 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.6108, allocations: 4.141 kB / 0.6847 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 2.728e-05/0.6109, allocations: 35.86 kB / 0.6847 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 6.952e-05/0.6109, allocations: 27.2 kB / 0.6848 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.596e-06/0.611, allocations: 0 / 0.6848 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.002e-06/0.611, allocations: 0 / 0.6848 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.848e-06/0.611, allocations: 0 / 0.6848 GB, free: 15.57 MB / 0.5261 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.0004654/0.6115, allocations: 368.4 kB / 0.6851 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.6115, allocations: 9.062 kB / 0.6851 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.6116, allocations: 3.641 kB / 0.6851 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.394e-05/0.6116, allocations: 170.8 kB / 0.6853 GB, free: 15 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.6117, allocations: 1.406 kB / 0.6853 GB, free: 15 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.6117, allocations: 3.875 kB / 0.6853 GB, free: 15 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.6119, allocations: 68.48 kB / 0.6854 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.612, allocations: 5.125 kB / 0.6854 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.612, allocations: 0.7031 kB / 0.6854 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.448e-06/0.612, allocations: 1 kB / 0.6854 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002323/0.6122, allocations: 52.53 kB / 0.6854 GB, free: 14.94 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003725/0.6126, allocations: 286.7 kB / 0.6857 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001939/0.6128, allocations: 62.38 kB / 0.6858 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.6129, allocations: 1.734 kB / 0.6858 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002274/0.6131, allocations: 80.77 kB / 0.6858 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=6): time 2.438e-06/0.6131, allocations: 0 / 0.6858 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=6): time 0.0005021/0.6136, allocations: 135.9 kB / 0.686 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.6137, allocations: 57.17 kB / 0.686 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.96e-05/0.6138, allocations: 105 kB / 0.6861 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.6138, allocations: 29.7 kB / 0.6861 GB, free: 14.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.337e-05/0.6138, allocations: 86.66 kB / 0.6862 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.6139, allocations: 23.08 kB / 0.6862 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.162e-06/0.6139, allocations: 1.062 kB / 0.6862 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.432e-05/0.6139, allocations: 322.2 kB / 0.6866 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.6141, allocations: 27.7 kB / 0.6866 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.6142, allocations: 50.7 kB / 0.6866 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.6144, allocations: 36.64 kB / 0.6867 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.365e-06/0.6144, allocations: 1.406 kB / 0.6867 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003266/0.6147, allocations: 109.8 kB / 0.6868 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.6147, allocations: 7.344 kB / 0.6868 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.339e-06/0.6148, allocations: 1.469 kB / 0.6868 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.6148, allocations: 1.281 kB / 0.6868 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.6149, allocations: 23.31 kB / 0.6868 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.68e-06/0.6149, allocations: 1.188 kB / 0.6868 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.911e-05/0.615, allocations: 23.08 kB / 0.6868 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.6151, allocations: 2.062 kB / 0.6868 GB, free: 13.75 MB / 0.5261 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.104e-05/0.6151, allocations: 114.3 kB / 0.6869 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.6152, allocations: 7.234 kB / 0.6869 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003631/0.6155, allocations: 117.6 kB / 0.6871 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.274e-06/0.6156, allocations: 1.828 kB / 0.6871 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.587e-06/0.6156, allocations: 0 / 0.6871 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.6156, allocations: 2.109 kB / 0.6871 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005125/0.6161, allocations: 363.8 kB / 0.6874 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.107e-06/0.6161, allocations: 1.562 kB / 0.6874 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.216e-05/0.6162, allocations: 10.81 kB / 0.6874 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.6162, allocations: 1.375 kB / 0.6874 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.6163, allocations: 2 kB / 0.6874 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.66e-06/0.6163, allocations: 0 / 0.6874 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.942e-06/0.6163, allocations: 8.641 kB / 0.6874 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003367/0.6166, allocations: 208.8 kB / 0.6876 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.513e-05/0.6167, allocations: 83.44 kB / 0.6877 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.993e-05/0.6167, allocations: 2.125 kB / 0.6877 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.6168, allocations: 18.2 kB / 0.6877 GB, free: 12.96 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.6169, allocations: 9.453 kB / 0.6877 GB, free: 12.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.6169, allocations: 1.719 kB / 0.6877 GB, free: 12.96 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.588e-05/0.617, allocations: 86.16 kB / 0.6878 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.64e-07/0.617, allocations: 0 / 0.6878 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003142/0.6173, allocations: 8.781 kB / 0.6878 GB, free: 12.88 MB / 0.5261 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 9.663e-05/0.6174, allocations: 99.48 kB / 0.6879 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003222/0.6177, allocations: 78.42 kB / 0.688 GB, free: 12.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6178, allocations: 0 / 0.688 GB, free: 12.78 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.6179, allocations: 36.56 kB / 0.688 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002232/0.6182, allocations: 16.06 kB / 0.6881 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003304/0.6185, allocations: 136.9 kB / 0.6882 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001234/0.6186, allocations: 0.6849 MB / 0.6888 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 3.902e-05/0.6187, allocations: 6.625 kB / 0.6889 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.924e-05/0.6187, allocations: 13.81 kB / 0.6889 GB, free: 11.92 MB / 0.5261 GB Notification: Performance of SimCode: time 1.303e-06/0.6187, allocations: 0 / 0.6889 GB, free: 11.92 MB / 0.5261 GB Notification: Performance of Templates: time 0.003114/0.6219, allocations: 0.5405 MB / 0.6894 GB, free: 11.85 MB / 0.5261 GB