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.456/2.456, allocations: 253.1 MB / 260.6 MB, free: 7.539 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.002012/0.002012, allocations: 173.9 kB / 319.9 MB, free: 3.078 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.217/2.217, allocations: 205.6 MB / 0.5708 GB, free: 15.22 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.00149/0.00149, allocations: 92.92 kB / 0.6751 GB, free: 4.586 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.245e-05/2.255e-05, allocations: 4 kB / 0.7849 GB, free: 102.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.2031, allocations: 106.2 MB / 0.8887 GB, free: 11.81 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9345/1.138, allocations: 131.7 MB / 1.017 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/1.138, allocations: 73.02 kB / 1.017 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004721/1.143, allocations: 0.8651 MB / 1.018 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.444e-06/1.143, allocations: 4 kB / 1.018 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.009e-05/1.143, allocations: 0 / 1.018 GB, free: 4.73 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.0009122/1.144, allocations: 357.1 kB / 1.019 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 7.562e-05/1.144, allocations: 12.02 kB / 1.019 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.533e-05/1.144, allocations: 7.906 kB / 1.019 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002581/1.144, allocations: 167.5 kB / 1.019 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/1.144, allocations: 8 kB / 1.019 GB, free: 4.113 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/1.144, allocations: 0 / 1.019 GB, free: 4.113 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000208/1.145, allocations: 15.94 kB / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/1.145, allocations: 48.7 kB / 1.019 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/1.145, allocations: 7.688 kB / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/1.145, allocations: 0 / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/1.145, allocations: 0 / 1.019 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007629/1.146, allocations: 255.6 kB / 1.019 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/1.146, allocations: 42.33 kB / 1.019 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.428e-05/1.146, allocations: 15.86 kB / 1.019 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/1.146, allocations: 8.047 kB / 1.019 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/1.146, allocations: 61.02 kB / 1.019 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 3.847e-06/1.146, allocations: 0 / 1.019 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0004068/1.147, allocations: 76.91 kB / 1.019 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.425e-05/1.147, allocations: 51.41 kB / 1.019 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/1.147, allocations: 98.75 kB / 1.019 GB, free: 3.418 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/1.147, allocations: 30.45 kB / 1.019 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/1.147, allocations: 84.12 kB / 1.019 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 5.505e-05/1.147, allocations: 14.44 kB / 1.019 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.102e-05/1.147, allocations: 0 / 1.019 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002292/1.148, allocations: 317.4 kB / 1.02 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.364e-05/1.148, allocations: 11.38 kB / 1.02 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/1.148, allocations: 41.8 kB / 1.02 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.427e-05/1.148, allocations: 7.375 kB / 1.02 GB, free: 2.91 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/1.148, allocations: 7.938 kB / 1.02 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003478/1.148, allocations: 68.53 kB / 1.02 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 3.458e-05/1.148, allocations: 9.5 kB / 1.02 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/1.148, allocations: 4 kB / 1.02 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/1.148, allocations: 3.984 kB / 1.02 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/1.149, allocations: 15.94 kB / 1.02 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/1.149, allocations: 160 / 1.02 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/1.149, allocations: 11.98 kB / 1.02 GB, free: 2.793 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/1.149, allocations: 7.5 kB / 1.02 GB, free: 2.789 MB / 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.0001534/1.149, allocations: 109.8 kB / 1.02 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.746e-05/1.149, allocations: 4 kB / 1.02 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003162/1.15, allocations: 79.17 kB / 1.02 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/1.15, allocations: 0 / 1.02 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/1.15, allocations: 3.938 kB / 1.02 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/1.15, allocations: 4 kB / 1.02 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000536/1.15, allocations: 309.3 kB / 1.02 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/1.15, allocations: 0 / 1.02 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002259/1.151, allocations: 12 kB / 1.02 GB, free: 2.254 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-06/1.151, allocations: 0 / 1.02 GB, free: 2.254 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/1.151, allocations: 7.984 kB / 1.02 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/1.151, allocations: 3.984 kB / 1.02 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.151, allocations: 0 / 1.02 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/1.151, allocations: 168.8 kB / 1.021 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 8.994e-05/1.151, allocations: 81.02 kB / 1.021 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/1.151, allocations: 0 / 1.021 GB, free: 1.977 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003078/1.152, allocations: 15.98 kB / 1.021 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.379e-05/1.152, allocations: 7.984 kB / 1.021 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/1.152, allocations: 3.312 kB / 1.021 GB, free: 1.953 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.987e-05/1.152, allocations: 80.16 kB / 1.021 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.62e-07/1.152, allocations: 0 / 1.021 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005711/1.152, allocations: 8 kB / 1.021 GB, free: 1.867 MB / 0.6355 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.0002289/1.153, allocations: 104.7 kB / 1.021 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002433/1.153, allocations: 38.61 kB / 1.021 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.153, allocations: 2.531 kB / 1.021 GB, free: 1.73 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/1.153, allocations: 19.62 kB / 1.021 GB, free: 1.719 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/1.153, allocations: 11.89 kB / 1.021 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004862/1.154, allocations: 78.55 kB / 1.021 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004943/1.154, allocations: 0.6964 MB / 1.022 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 8.315e-05/1.155, allocations: 192 / 1.022 GB, free: 0.8867 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.349e-05/1.155, allocations: 15.38 kB / 1.022 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of SimCode: time 1.302e-06/1.155, allocations: 0 / 1.022 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of Templates: time 0.005102/1.16, allocations: 0.5163 MB / 1.022 GB, free: 384 kB / 0.6355 GB