Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.869/4.869, allocations: 0.5623 GB / 0.5775 GB, free: 3.32 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002591/0.002591, allocations: 356.3 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.164/4.164, allocations: 410.7 MB / 1.113 GB, free: 5.906 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001833/0.001833, allocations: 192 kB / 1.226 GB, free: 6.07 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0007306/0.0007312, allocations: 16 kB / 1.349 GB, free: 8.191 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8069/0.8077, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2378/1.046, allocations: 137.8 MB / 1.596 GB, free: 146.3 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/1.046, allocations: 71.95 kB / 1.596 GB, free: 146.3 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.004361/1.05, allocations: 1.089 MB / 1.597 GB, free: 145.2 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.824e-06/1.05, allocations: 0 / 1.597 GB, free: 145.2 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 6.753e-06/1.05, allocations: 0.5 kB / 1.597 GB, free: 145.2 MB / 0.8542 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.0005296/1.051, allocations: 369.9 kB / 1.597 GB, free: 144.8 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/1.051, allocations: 15.62 kB / 1.597 GB, free: 144.8 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/1.051, allocations: 0.75 kB / 1.597 GB, free: 144.8 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.058e-05/1.051, allocations: 174.9 kB / 1.598 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/1.051, allocations: 6.547 kB / 1.598 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/1.051, allocations: 11.92 kB / 1.598 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/1.051, allocations: 63.77 kB / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/1.051, allocations: 0 / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/1.051, allocations: 4 kB / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/1.051, allocations: 1.281 kB / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003018/1.052, allocations: 49.64 kB / 1.598 GB, free: 144.4 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004406/1.052, allocations: 278.6 kB / 1.598 GB, free: 144.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/1.052, allocations: 61.36 kB / 1.598 GB, free: 144.1 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/1.053, allocations: 36.97 kB / 1.598 GB, free: 144 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/1.053, allocations: 1.25 kB / 1.598 GB, free: 144 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/1.053, allocations: 91.86 kB / 1.598 GB, free: 143.9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=6): time 2.785e-06/1.053, allocations: 5.719 kB / 1.598 GB, free: 143.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=6): time 0.0006116/1.054, allocations: 139.1 kB / 1.598 GB, free: 143.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/1.054, allocations: 54.16 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.982e-05/1.054, allocations: 113.8 kB / 1.598 GB, free: 143.6 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/1.054, allocations: 25.7 kB / 1.598 GB, free: 143.6 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.314e-05/1.054, allocations: 80.14 kB / 1.599 GB, free: 143.5 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.36e-05/1.054, allocations: 19.75 kB / 1.599 GB, free: 143.5 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-06/1.054, allocations: 0 / 1.599 GB, free: 143.5 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.986e-05/1.054, allocations: 320.3 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/1.054, allocations: 28.86 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/1.054, allocations: 53.09 kB / 1.599 GB, free: 143 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00017/1.054, allocations: 45.38 kB / 1.599 GB, free: 143 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.054, allocations: 0 / 1.599 GB, free: 143 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003942/1.055, allocations: 107.7 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/1.055, allocations: 4 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/1.055, allocations: 8.797 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/1.055, allocations: 0 / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/1.055, allocations: 17.98 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/1.055, allocations: 4.156 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/1.055, allocations: 11.89 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/1.055, allocations: 8.625 kB / 1.599 GB, free: 142.8 MB / 0.8542 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.985e-05/1.055, allocations: 115.3 kB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/1.055, allocations: 7.906 kB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004179/1.056, allocations: 116.5 kB / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/1.056, allocations: 1.359 kB / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/1.056, allocations: 4.625 kB / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/1.056, allocations: 0 / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005713/1.056, allocations: 365.6 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/1.056, allocations: 0 / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/1.057, allocations: 13.3 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/1.057, allocations: 0.5 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/1.057, allocations: 5.406 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/1.057, allocations: 3.984 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.057, allocations: 3.953 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004063/1.057, allocations: 210 kB / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.486e-05/1.057, allocations: 81.73 kB / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/1.057, allocations: 1.062 kB / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/1.057, allocations: 12.48 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/1.057, allocations: 8.5 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.257e-05/1.057, allocations: 4.641 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.968e-05/1.057, allocations: 83.27 kB / 1.6 GB, free: 141.7 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.81e-07/1.057, allocations: 0.625 kB / 1.6 GB, free: 141.7 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003252/1.058, allocations: 29.97 kB / 1.6 GB, free: 141.7 MB / 0.8542 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.0001543/1.058, allocations: 115.2 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003919/1.058, allocations: 76.14 kB / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.058, allocations: 0 / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001818/1.059, allocations: 32.67 kB / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/1.059, allocations: 16.73 kB / 1.6 GB, free: 141.5 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003549/1.059, allocations: 146.2 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000131/1.059, allocations: 0.6879 MB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.278e-05/1.059, allocations: 4.188 kB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.904e-05/1.06, allocations: 7.438 kB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of SimCode: time 7.31e-07/1.06, allocations: 0 / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of Templates: time 0.003604/1.063, allocations: 0.6716 MB / 1.602 GB, free: 139.9 MB / 0.8542 GB