Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.201/2.201, allocations: 251.1 MB / 266.1 MB, free: 11.56 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001619/0.001619, allocations: 179.4 kB / 325.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.628/2.628, allocations: 205.4 MB / 0.5766 GB, free: 20.78 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002028/0.002028, allocations: 96.47 kB / 0.6811 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0008503/0.0008507, allocations: 12.81 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.2354, allocations: 106.3 MB / 0.8989 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2523/0.4877, allocations: 131.5 MB / 1.027 GB, free: 13.78 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.4881, allocations: 67.95 kB / 1.027 GB, free: 13.71 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003639/0.4917, allocations: 0.8644 MB / 1.028 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.174e-06/0.4918, allocations: 4 kB / 1.028 GB, free: 12.84 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.4918, allocations: 0 / 1.028 GB, free: 12.84 MB / 0.6823 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.0006058/0.4924, allocations: 367.2 kB / 1.029 GB, free: 12.43 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4925, allocations: 11.97 kB / 1.029 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.008e-05/0.4925, allocations: 7.844 kB / 1.029 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.4927, allocations: 178.9 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.4927, allocations: 0 / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.4927, allocations: 12 kB / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.493, allocations: 57.67 kB / 1.029 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.493, allocations: 4 kB / 1.029 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.4931, allocations: 3.984 kB / 1.029 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.4931, allocations: 0 / 1.029 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003266/0.4934, allocations: 51.97 kB / 1.029 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004672/0.4939, allocations: 276.8 kB / 1.029 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.4942, allocations: 62.55 kB / 1.029 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.4942, allocations: 4 kB / 1.029 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002991/0.4945, allocations: 83.41 kB / 1.029 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 2.004e-06/0.4945, allocations: 0 / 1.029 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0007801/0.4953, allocations: 133.6 kB / 1.029 GB, free: 11.44 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.4954, allocations: 63.34 kB / 1.029 GB, free: 11.37 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.134e-05/0.4955, allocations: 97 kB / 1.03 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.4955, allocations: 29.7 kB / 1.03 GB, free: 11.23 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.376e-05/0.4956, allocations: 84.2 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.4956, allocations: 19.8 kB / 1.03 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.394e-06/0.4957, allocations: 0 / 1.03 GB, free: 11.12 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.4958, allocations: 314.8 kB / 1.03 GB, free: 10.81 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.496, allocations: 31.97 kB / 1.03 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.4962, allocations: 51.42 kB / 1.03 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001814/0.4964, allocations: 39.91 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4964, allocations: 4 kB / 1.03 GB, free: 10.67 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004203/0.4968, allocations: 109.5 kB / 1.03 GB, free: 10.56 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.4969, allocations: 4 kB / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4969, allocations: 0 / 1.03 GB, free: 10.55 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.4969, allocations: 12.08 kB / 1.03 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.4971, allocations: 12 kB / 1.03 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.4971, allocations: 11.86 kB / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.4972, allocations: 11.95 kB / 1.03 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.4973, allocations: 0 / 1.03 GB, free: 10.51 MB / 0.6823 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.0001017/0.4974, allocations: 119.7 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.946e-05/0.4974, allocations: 7.984 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000456/0.4979, allocations: 121.9 kB / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4979, allocations: 0 / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4979, allocations: 0 / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.4979, allocations: 0 / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006673/0.4986, allocations: 366.5 kB / 1.031 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4986, allocations: 0.625 kB / 1.031 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.4988, allocations: 16 kB / 1.031 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4988, allocations: 0 / 1.031 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.4988, allocations: 7.984 kB / 1.031 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.4988, allocations: 4 kB / 1.031 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.4988, allocations: 3.953 kB / 1.031 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004598/0.4993, allocations: 203.5 kB / 1.031 GB, free: 9.594 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.4994, allocations: 89 kB / 1.031 GB, free: 9.488 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.4994, allocations: 4 kB / 1.031 GB, free: 9.484 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.4996, allocations: 12.84 kB / 1.031 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.321e-05/0.4996, allocations: 0 / 1.031 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.618e-05/0.4996, allocations: 7.953 kB / 1.031 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.496e-05/0.4997, allocations: 87.27 kB / 1.031 GB, free: 9.379 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.61e-07/0.4997, allocations: 0 / 1.031 GB, free: 9.379 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002906/0.5, allocations: 12 kB / 1.031 GB, free: 9.367 MB / 0.6823 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.0001182/0.5002, allocations: 99.25 kB / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003999/0.5006, allocations: 67.89 kB / 1.031 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5006, allocations: 4.188 kB / 1.031 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.5008, allocations: 43.91 kB / 1.031 GB, free: 9.145 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.501, allocations: 4 kB / 1.031 GB, free: 9.141 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003977/0.5014, allocations: 140.7 kB / 1.032 GB, free: 8.973 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.5017, allocations: 0.6887 MB / 1.032 GB, free: 8.258 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.301e-05/0.5018, allocations: 4.188 kB / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.283e-05/0.5018, allocations: 11.38 kB / 1.032 GB, free: 8.238 MB / 0.6823 GB Notification: Performance of SimCode: time 6.91e-07/0.5018, allocations: 0 / 1.032 GB, free: 8.238 MB / 0.6823 GB Notification: Performance of Templates: time 0.003226/0.5051, allocations: 0.5379 MB / 1.033 GB, free: 7.711 MB / 0.6823 GB