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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01135/0.01135, allocations: 107.3 kB / 15.06 MB, free: 5.555 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.002856/0.002855, allocations: 179.3 kB / 15.95 MB, free: 5.52 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 2.049/2.049, allocations: 194.6 MB / 211.3 MB, free: 11.02 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.43/2.43, allocations: 236.2 MB / 492.6 MB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007752/0.0007755, allocations: 12 kB / 0.587 GB, free: 2.062 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7786/0.7794, allocations: 98.72 MB / 0.6834 GB, free: 16.8 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002504/0.782, allocations: 1.076 MB / 0.6845 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0008479/0.7829, allocations: 210.9 kB / 0.6847 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.489e-05/0.783, allocations: 1.094 kB / 0.6847 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 2.744e-05/0.783, allocations: 1.266 kB / 0.6847 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 8.991e-05/0.7831, allocations: 6.453 kB / 0.6847 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.7834, allocations: 23.12 kB / 0.6847 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.7835, allocations: 25.22 kB / 0.6847 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.7837, allocations: 10.77 kB / 0.6848 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 9.04e-05/0.7838, allocations: 16.73 kB / 0.6848 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 7.146e-05/0.7839, allocations: 20.81 kB / 0.6848 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.7839, allocations: 2.125 kB / 0.6848 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 2.078e-05/0.7839, allocations: 2.406 kB / 0.6848 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.836e-05/0.784, allocations: 7 kB / 0.6848 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 4.039e-05/0.784, allocations: 29.81 kB / 0.6848 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.7842, allocations: 30.19 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.7842, allocations: 0 / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.885e-06/0.7842, allocations: 4 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.7842, allocations: 1.25 kB / 0.6849 GB, free: 15.75 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.0008269/0.7851, allocations: 364.5 kB / 0.6852 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.7852, allocations: 8.5 kB / 0.6852 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.651e-05/0.7853, allocations: 33.55 kB / 0.6853 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.027e-05/0.7853, allocations: 6.531 kB / 0.6853 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.7855, allocations: 166.7 kB / 0.6854 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.7855, allocations: 6 kB / 0.6854 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.7855, allocations: 2.719 kB / 0.6854 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004028/0.786, allocations: 66.12 kB / 0.6855 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.786, allocations: 0 / 0.6855 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.786, allocations: 1.828 kB / 0.6855 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.7861, allocations: 8.938 kB / 0.6855 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.7866, allocations: 54.97 kB / 0.6856 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006342/0.7872, allocations: 280.2 kB / 0.6858 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.7876, allocations: 62.36 kB / 0.6859 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.7877, allocations: 1.5 kB / 0.6859 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000408/0.7881, allocations: 83.62 kB / 0.686 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=6): time 4.328e-06/0.7881, allocations: 0 / 0.686 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=6): time 0.0009917/0.7891, allocations: 137.4 kB / 0.6861 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/0.7892, allocations: 56.89 kB / 0.6861 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.7894, allocations: 112 kB / 0.6863 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.7894, allocations: 27.3 kB / 0.6863 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.954e-05/0.7895, allocations: 86.33 kB / 0.6864 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.7896, allocations: 15.66 kB / 0.6864 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.144e-05/0.7896, allocations: 4 kB / 0.6864 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.462e-05/0.7897, allocations: 314.1 kB / 0.6867 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.79, allocations: 30.89 kB / 0.6867 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.7903, allocations: 55.73 kB / 0.6868 GB, free: 13.97 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.7906, allocations: 36.69 kB / 0.6868 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.7906, allocations: 0 / 0.6868 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006437/0.7913, allocations: 111.2 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.7913, allocations: 5.312 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.7914, allocations: 1.922 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/0.7914, allocations: 1.062 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002345/0.7916, allocations: 19.14 kB / 0.6869 GB, free: 13.91 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.7917, allocations: 6.812 kB / 0.6869 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.7919, allocations: 12.42 kB / 0.6869 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.7919, allocations: 7.031 kB / 0.687 GB, free: 13.89 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 0.0001323/0.7921, allocations: 115.7 kB / 0.6871 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.7921, allocations: 9.516 kB / 0.6871 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006865/0.7928, allocations: 113.5 kB / 0.6872 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.7929, allocations: 6.391 kB / 0.6872 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.7929, allocations: 0 / 0.6872 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.7929, allocations: 5.109 kB / 0.6872 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009811/0.7939, allocations: 356.4 kB / 0.6875 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.7939, allocations: 2.047 kB / 0.6875 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.7941, allocations: 14.59 kB / 0.6875 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.7941, allocations: 5.312 kB / 0.6876 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.7942, allocations: 2.422 kB / 0.6876 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.945e-06/0.7942, allocations: 3.953 kB / 0.6876 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.7942, allocations: 4.688 kB / 0.6876 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006791/0.7949, allocations: 204.2 kB / 0.6878 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.12e-05/0.795, allocations: 83.72 kB / 0.6878 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.795, allocations: 2.094 kB / 0.6878 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.7953, allocations: 14.83 kB / 0.6879 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.638e-05/0.7954, allocations: 8.594 kB / 0.6879 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.7955, allocations: 10.94 kB / 0.6879 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 6.036e-05/0.7955, allocations: 80.83 kB / 0.688 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.42e-07/0.7956, allocations: 0 / 0.688 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0005117/0.7961, allocations: 13.92 kB / 0.688 GB, free: 13.02 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 0.001013/0.7971, allocations: 0.7412 MB / 0.6887 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0006591/0.7978, allocations: 74.34 kB / 0.6888 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.7979, allocations: 1.062 kB / 0.6888 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003024/0.7982, allocations: 38.41 kB / 0.6888 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.7986, allocations: 8.766 kB / 0.6888 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.7996, allocations: 0.8019 MB / 0.6896 GB, free: 11.49 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.7998, allocations: 0.6858 MB / 0.6903 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.28e-05/0.7999, allocations: 3.516 kB / 0.6903 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.087e-05/0.8, allocations: 15.22 kB / 0.6903 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of SimCode: time 1.392e-06/0.8, allocations: 0 / 0.6903 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02539/0.8255, allocations: 1.326 MB / 0.6916 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002661/0.8258, allocations: 184.8 kB / 0.6917 GB, free: 10.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.625/3.451, allocations: 0 / 0.6917 GB, free: 10.34 MB / 0.5261 GB