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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.388/2.388, allocations: 252.6 MB / 265.2 MB, free: 5.676 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.001418/0.001418, allocations: 179.8 kB / 324.5 MB, free: 14.34 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.14/2.14, 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.001276/0.001275, allocations: 90.64 kB / 0.6797 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.049e-05/4.074e-05, allocations: 4 kB / 0.7911 GB, free: 96.57 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2099/0.21, allocations: 106.2 MB / 0.8949 GB, free: 6.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8447/1.055, allocations: 131.6 MB / 1.023 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/1.055, allocations: 71.11 kB / 1.023 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003904/1.059, allocations: 0.9564 MB / 1.024 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.064e-06/1.059, allocations: 4 kB / 1.024 GB, free: 2 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.085e-06/1.059, allocations: 0 / 1.024 GB, free: 2 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006508/1.06, allocations: 365.1 kB / 1.025 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/1.06, allocations: 8.031 kB / 1.025 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.615e-05/1.06, allocations: 11.91 kB / 1.025 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/1.06, allocations: 171 kB / 1.025 GB, free: 1.379 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/1.06, allocations: 7.734 kB / 1.025 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/1.06, allocations: 8 kB / 1.025 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/1.06, allocations: 69.86 kB / 1.025 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/1.06, allocations: 0 / 1.025 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/1.06, allocations: 0 / 1.025 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/1.06, allocations: 0 / 1.025 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/1.061, allocations: 33.75 kB / 1.025 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000766/1.061, allocations: 330.6 kB / 1.025 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/1.062, allocations: 63.64 kB / 1.025 GB, free: 0.8789 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.114e-05/1.062, allocations: 35.48 kB / 1.025 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/1.062, allocations: 7.984 kB / 1.025 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/1.062, allocations: 80.27 kB / 1.026 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.525e-06/1.062, allocations: 0 / 1.026 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0003469/1.062, allocations: 111.9 kB / 1.026 GB, free: 0.6758 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.79e-05/1.062, allocations: 59.36 kB / 1.026 GB, free: 0.6055 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.772e-05/1.062, allocations: 104.6 kB / 1.026 GB, free: 0.5 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/1.062, allocations: 29.2 kB / 1.026 GB, free: 480 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.911e-05/1.063, allocations: 94.31 kB / 1.026 GB, free: 384 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.198e-05/1.063, allocations: 34.81 kB / 1.026 GB, free: 352 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.168e-06/1.063, allocations: 3.312 kB / 1.026 GB, free: 352 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001368/1.063, allocations: 318.1 kB / 1.026 GB, free: 28 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.453e-05/1.063, allocations: 24.62 kB / 1.026 GB, free: 12 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/1.063, allocations: 52.98 kB / 1.026 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001001/1.063, allocations: 37.94 kB / 1.026 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/1.063, allocations: 0 / 1.026 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002827/1.063, allocations: 112.6 kB / 1.026 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/1.063, allocations: 8 kB / 1.026 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/1.064, allocations: 0 / 1.026 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/1.064, allocations: 0 / 1.026 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/1.064, allocations: 35.2 kB / 1.027 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/1.064, allocations: 3.938 kB / 1.027 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/1.064, allocations: 15.94 kB / 1.027 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/1.064, allocations: 7.562 kB / 1.027 GB, free: 15.77 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.000107/1.064, allocations: 108.2 kB / 1.027 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/1.064, allocations: 7.906 kB / 1.027 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000333/1.064, allocations: 120.7 kB / 1.027 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/1.064, allocations: 4 kB / 1.027 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/1.064, allocations: 0 / 1.027 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/1.065, allocations: 0 / 1.027 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005898/1.065, allocations: 383.9 kB / 1.027 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/1.065, allocations: 4 kB / 1.027 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001347/1.065, allocations: 15.92 kB / 1.027 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/1.065, allocations: 0 / 1.027 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/1.065, allocations: 4 kB / 1.027 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/1.065, allocations: 4 kB / 1.027 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.065, allocations: 3.953 kB / 1.027 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000343/1.066, allocations: 209.8 kB / 1.027 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.799e-05/1.066, allocations: 92.94 kB / 1.027 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.906e-05/1.066, allocations: 0 / 1.027 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/1.066, allocations: 11.98 kB / 1.027 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.005e-05/1.066, allocations: 15.27 kB / 1.027 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/1.066, allocations: 8.859 kB / 1.027 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.013e-05/1.066, allocations: 79.28 kB / 1.028 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.21e-07/1.066, allocations: 0 / 1.028 GB, free: 14.7 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003175/1.067, allocations: 19.56 kB / 1.028 GB, free: 14.69 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001614/1.067, allocations: 100.1 kB / 1.028 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000259/1.067, allocations: 76.98 kB / 1.028 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/1.067, allocations: 192 / 1.028 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001118/1.067, allocations: 38.62 kB / 1.028 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/1.067, allocations: 11.31 kB / 1.028 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003797/1.068, allocations: 103.3 kB / 1.028 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/1.068, allocations: 0.6926 MB / 1.029 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.127e-05/1.068, allocations: 12.41 kB / 1.029 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.512e-05/1.068, allocations: 11.44 kB / 1.029 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of SimCode: time 1.542e-06/1.068, allocations: 4 kB / 1.029 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of Templates: time 0.004059/1.072, allocations: 0.7521 MB / 1.029 GB, free: 12.9 MB / 0.6511 GB