Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_7_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.3/package.mo): time 0.01508/0.01508, allocations: 92.88 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001769/0.001769, allocations: 173.5 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.333/2.333, allocations: 205.5 MB / 222.2 MB, free: 13.58 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.498/2.498, allocations: 252.8 MB / 0.511 GB, free: 8.309 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005257/0.0005257, allocations: 16.3 kB / 0.6243 GB, free: 21.07 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2454, allocations: 106.2 MB / 0.7281 GB, free: 8.094 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001781/0.2473, allocations: 1.095 MB / 0.7291 GB, free: 6.984 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0005844/0.2479, allocations: 213.8 kB / 0.7293 GB, free: 6.773 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.465e-05/0.248, allocations: 3.938 kB / 0.7294 GB, free: 6.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 2.128e-05/0.248, allocations: 7.984 kB / 0.7294 GB, free: 6.762 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 6.51e-05/0.2481, allocations: 3.984 kB / 0.7294 GB, free: 6.758 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001759/0.2483, allocations: 19.92 kB / 0.7294 GB, free: 6.738 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 7.643e-05/0.2483, allocations: 19.97 kB / 0.7294 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 9.595e-05/0.2484, allocations: 11.98 kB / 0.7294 GB, free: 6.707 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 7.355e-05/0.2485, allocations: 19.92 kB / 0.7294 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 5.123e-05/0.2486, allocations: 11.92 kB / 0.7294 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.2486, allocations: 8 kB / 0.7295 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 1.378e-05/0.2486, allocations: 0 / 0.7295 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 2.168e-05/0.2487, allocations: 7.984 kB / 0.7295 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 3.719e-05/0.2487, allocations: 29.7 kB / 0.7295 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 8.366e-05/0.2488, allocations: 35.92 kB / 0.7295 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2488, allocations: 0 / 0.7295 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2488, allocations: 0 / 0.7295 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.2489, allocations: 0 / 0.7295 GB, free: 6.59 MB / 0.5573 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.0006503/0.2495, allocations: 375.4 kB / 0.7299 GB, free: 6.176 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.2496, allocations: 8.031 kB / 0.7299 GB, free: 6.168 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.253e-05/0.2496, allocations: 38.56 kB / 0.7299 GB, free: 6.121 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.952e-05/0.2497, allocations: 0 / 0.7299 GB, free: 6.121 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.2498, allocations: 167 kB / 0.7301 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.2498, allocations: 0 / 0.7301 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.904e-05/0.2499, allocations: 7.984 kB / 0.7301 GB, free: 5.91 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.2502, allocations: 65.67 kB / 0.7302 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.2502, allocations: 0 / 0.7302 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.2502, allocations: 0 / 0.7302 GB, free: 5.84 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2502, allocations: 4 kB / 0.7302 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.2505, allocations: 59.89 kB / 0.7302 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004823/0.251, allocations: 281.4 kB / 0.7305 GB, free: 5.453 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.2513, allocations: 58.55 kB / 0.7305 GB, free: 5.387 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.2513, allocations: 4 kB / 0.7305 GB, free: 5.383 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002967/0.2517, allocations: 79.45 kB / 0.7306 GB, free: 5.293 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=6): time 2.285e-06/0.2517, allocations: 0 / 0.7306 GB, free: 5.293 MB / 0.5573 GB Notification: Performance of matching and sorting (n=6): time 0.0006822/0.2524, allocations: 133.6 kB / 0.7307 GB, free: 5.156 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.2524, allocations: 55.44 kB / 0.7308 GB, free: 5.09 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.329e-05/0.2525, allocations: 109.8 kB / 0.7309 GB, free: 4.973 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.2526, allocations: 29.7 kB / 0.7309 GB, free: 4.938 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.999e-05/0.2526, allocations: 88.05 kB / 0.731 GB, free: 4.848 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 3.229e-05/0.2527, allocations: 19.8 kB / 0.731 GB, free: 4.828 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-06/0.2527, allocations: 0 / 0.731 GB, free: 4.828 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.2528, allocations: 314.8 kB / 0.7313 GB, free: 4.512 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.253, allocations: 27.97 kB / 0.7314 GB, free: 4.484 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.2532, allocations: 63.3 kB / 0.7314 GB, free: 4.41 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.2534, allocations: 31.97 kB / 0.7315 GB, free: 4.379 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2534, allocations: 0 / 0.7315 GB, free: 4.379 MB / 0.5573 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004241/0.2538, allocations: 109.6 kB / 0.7316 GB, free: 4.266 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2538, allocations: 4 kB / 0.7316 GB, free: 4.262 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2539, allocations: 160 / 0.7316 GB, free: 4.262 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.2539, allocations: 7.984 kB / 0.7316 GB, free: 4.254 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.2541, allocations: 24.53 kB / 0.7316 GB, free: 4.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.2541, allocations: 7.938 kB / 0.7316 GB, free: 4.223 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.2542, allocations: 11.98 kB / 0.7316 GB, free: 4.211 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.2542, allocations: 7.938 kB / 0.7316 GB, free: 4.203 MB / 0.5573 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.0001085/0.2543, allocations: 117.8 kB / 0.7317 GB, free: 4.078 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.989e-05/0.2544, allocations: 7.906 kB / 0.7317 GB, free: 4.07 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004592/0.2548, allocations: 122 kB / 0.7319 GB, free: 3.945 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.2549, allocations: 3.984 kB / 0.7319 GB, free: 3.941 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2549, allocations: 0 / 0.7319 GB, free: 3.941 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2549, allocations: 3.953 kB / 0.7319 GB, free: 3.938 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006615/0.2556, allocations: 358.6 kB / 0.7322 GB, free: 3.531 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2556, allocations: 0 / 0.7322 GB, free: 3.531 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.2557, allocations: 8 kB / 0.7322 GB, free: 3.523 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.2557, allocations: 4 kB / 0.7322 GB, free: 3.52 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2557, allocations: 3.984 kB / 0.7322 GB, free: 3.516 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.2557, allocations: 3.953 kB / 0.7322 GB, free: 3.512 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2558, allocations: 7.938 kB / 0.7322 GB, free: 3.504 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004742/0.2562, allocations: 199.4 kB / 0.7324 GB, free: 3.293 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 4.165e-05/0.2563, allocations: 77.11 kB / 0.7325 GB, free: 3.199 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.2563, allocations: 7.984 kB / 0.7325 GB, free: 3.191 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.2565, allocations: 12 kB / 0.7325 GB, free: 3.18 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.2566, allocations: 11.94 kB / 0.7325 GB, free: 3.168 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.2566, allocations: 4 kB / 0.7325 GB, free: 3.164 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 5.404e-05/0.2567, allocations: 87.45 kB / 0.7326 GB, free: 3.078 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.51e-07/0.2567, allocations: 0 / 0.7326 GB, free: 3.078 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003233/0.257, allocations: 8 kB / 0.7326 GB, free: 3.07 MB / 0.5573 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.0007599/0.2578, allocations: 0.7399 MB / 0.7333 GB, free: 2.305 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.000402/0.2582, allocations: 79.89 kB / 0.7334 GB, free: 2.227 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.2582, allocations: 0 / 0.7334 GB, free: 2.227 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.2584, allocations: 40.11 kB / 0.7335 GB, free: 2.188 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.2587, allocations: 19.88 kB / 0.7335 GB, free: 2.168 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008398/0.2595, allocations: 0.8015 MB / 0.7343 GB, free: 1.301 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.2598, allocations: 0.6848 MB / 0.7349 GB, free: 0.5898 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 7.934e-05/0.2599, allocations: 4.188 kB / 0.7349 GB, free: 0.582 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.243e-05/0.26, allocations: 11.44 kB / 0.7349 GB, free: 0.5703 MB / 0.5573 GB Notification: Performance of SimCode: time 1.122e-06/0.26, allocations: 4 kB / 0.7349 GB, free: 0.5664 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.2795, allocations: 1.304 MB / 0.7362 GB, free: 15.36 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004602/0.2801, allocations: 184.3 kB / 0.7364 GB, free: 15.12 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/2.62, allocations: 2.672 kB / 0.7364 GB, free: 15.12 MB / 0.573 GB