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.221/2.221, allocations: 252.6 MB / 265.2 MB, free: 5.68 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001452/0.001452, allocations: 185.5 kB / 324.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.163/2.163, allocations: 205.4 MB / 0.5754 GB, free: 10.47 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.001523/0.001522, allocations: 98.64 kB / 0.6797 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.42e-05/3.43e-05, allocations: 4 kB / 0.7911 GB, free: 96.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1938, allocations: 106.2 MB / 0.8949 GB, free: 6.266 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9232/1.117, allocations: 131.4 MB / 1.023 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/1.117, allocations: 74.62 kB / 1.023 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003539/1.121, allocations: 0.8703 MB / 1.024 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.848e-06/1.121, allocations: 0 / 1.024 GB, free: 2.211 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.087e-05/1.121, allocations: 7.938 kB / 1.024 GB, free: 2.203 MB / 0.6355 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.0005976/1.122, allocations: 354.3 kB / 1.024 GB, free: 1.816 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/1.122, allocations: 8.031 kB / 1.024 GB, free: 1.809 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.183e-05/1.122, allocations: 7.906 kB / 1.024 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/1.122, allocations: 171 kB / 1.025 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/1.122, allocations: 0 / 1.025 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/1.122, allocations: 10.88 kB / 1.025 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/1.122, allocations: 47.75 kB / 1.025 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/1.122, allocations: 0 / 1.025 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/1.122, allocations: 0 / 1.025 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/1.122, allocations: 0 / 1.025 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.187e-05/1.122, allocations: 26.42 kB / 1.025 GB, free: 1.52 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005344/1.123, allocations: 272.3 kB / 1.025 GB, free: 1.219 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/1.123, allocations: 47.7 kB / 1.025 GB, free: 1.172 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.99e-05/1.123, allocations: 20.22 kB / 1.025 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/1.123, allocations: 0 / 1.025 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/1.123, allocations: 64.84 kB / 1.025 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.004e-06/1.123, allocations: 0 / 1.025 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0002745/1.124, allocations: 75.97 kB / 1.025 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/1.124, allocations: 61.97 kB / 1.025 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/1.124, allocations: 100.2 kB / 1.025 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/1.124, allocations: 29.08 kB / 1.025 GB, free: 0.8164 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.203e-05/1.124, allocations: 80.14 kB / 1.025 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/1.124, allocations: 23.25 kB / 1.025 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-06/1.124, allocations: 0 / 1.025 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001584/1.124, allocations: 318.4 kB / 1.026 GB, free: 408 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.374e-05/1.124, allocations: 11 kB / 1.026 GB, free: 400 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.7e-05/1.124, allocations: 45.94 kB / 1.026 GB, free: 348 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.031e-05/1.124, allocations: 15.73 kB / 1.026 GB, free: 336 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.124, allocations: 0 / 1.026 GB, free: 336 kB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001997/1.125, allocations: 75.97 kB / 1.026 GB, free: 264 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/1.125, allocations: 4 kB / 1.026 GB, free: 260 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.125, allocations: 4.094 kB / 1.026 GB, free: 256 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/1.125, allocations: 4 kB / 1.026 GB, free: 252 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/1.125, allocations: 19.92 kB / 1.026 GB, free: 232 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/1.125, allocations: 4 kB / 1.026 GB, free: 228 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/1.125, allocations: 11.94 kB / 1.026 GB, free: 216 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/1.125, allocations: 4 kB / 1.026 GB, free: 212 kB / 0.6355 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 () * 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.0001025/1.125, allocations: 108.9 kB / 1.026 GB, free: 100 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.121e-05/1.125, allocations: 4 kB / 1.026 GB, free: 96 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/1.125, allocations: 85.17 kB / 1.026 GB, free: 16 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/1.125, allocations: 3.938 kB / 1.026 GB, free: 12 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.125, allocations: 0 / 1.026 GB, free: 12 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/1.125, allocations: 0 / 1.026 GB, free: 12 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004984/1.126, allocations: 336.8 kB / 1.026 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/1.126, allocations: 4.422 kB / 1.026 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/1.126, allocations: 8 kB / 1.027 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/1.126, allocations: 4 kB / 1.027 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/1.126, allocations: 7.984 kB / 1.027 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/1.126, allocations: 4 kB / 1.027 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/1.126, allocations: 7.891 kB / 1.027 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002408/1.126, allocations: 162.7 kB / 1.027 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/1.127, allocations: 81.02 kB / 1.027 GB, free: 15.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/1.127, allocations: 4 kB / 1.027 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/1.127, allocations: 19.73 kB / 1.027 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.995e-05/1.127, allocations: 7.938 kB / 1.027 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/1.127, allocations: 4 kB / 1.027 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.481e-05/1.127, allocations: 82.22 kB / 1.027 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.51e-07/1.127, allocations: 0 / 1.027 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003001/1.127, allocations: 8 kB / 1.027 GB, free: 15.24 MB / 0.6511 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 () * 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.0001415/1.127, allocations: 102.1 kB / 1.027 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001776/1.128, allocations: 46.98 kB / 1.027 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.128, allocations: 0 / 1.027 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 8.229e-05/1.128, allocations: 27.25 kB / 1.027 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/1.128, allocations: 8.688 kB / 1.027 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003385/1.128, allocations: 84.58 kB / 1.027 GB, free: 14.98 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/1.129, allocations: 0.6887 MB / 1.028 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.985e-05/1.129, allocations: 8.375 kB / 1.028 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/1.129, allocations: 11.42 kB / 1.028 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of SimCode: time 1.012e-06/1.129, allocations: 0 / 1.028 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of Templates: time 0.003569/1.132, allocations: 0.542 MB / 1.028 GB, free: 13.71 MB / 0.6511 GB