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.139/2.139, allocations: 251.1 MB / 266.1 MB, free: 11.62 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.0015/0.001499, allocations: 183.8 kB / 325.6 MB, free: 2.836 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.577/2.577, allocations: 205.4 MB / 0.5766 GB, free: 21.13 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.001138/0.001138, allocations: 94.16 kB / 0.6811 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007044/0.0007045, allocations: 11.88 kB / 0.7951 GB, free: 135.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2322, allocations: 106.3 MB / 0.8989 GB, free: 65.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2216/0.4539, allocations: 131.7 MB / 1.027 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.4542, allocations: 71.95 kB / 1.028 GB, free: 14.04 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003874/0.4581, allocations: 0.9512 MB / 1.028 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.494e-06/0.4582, allocations: 0 / 1.028 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.4582, allocations: 0 / 1.028 GB, free: 13.08 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.00067/0.4589, allocations: 391 kB / 1.029 GB, free: 12.65 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.4589, allocations: 8.031 kB / 1.029 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.861e-05/0.459, allocations: 4 kB / 1.029 GB, free: 12.64 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.4591, allocations: 167 kB / 1.029 GB, free: 12.43 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.4592, allocations: 11.94 kB / 1.029 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.4592, allocations: 8 kB / 1.029 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003866/0.4596, allocations: 85.64 kB / 1.029 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4596, allocations: 0 / 1.029 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.4597, allocations: 4 kB / 1.029 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.4597, allocations: 0 / 1.029 GB, free: 12.32 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.4602, allocations: 67.89 kB / 1.029 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009589/0.4612, allocations: 332.6 kB / 1.029 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003948/0.4616, allocations: 86.55 kB / 1.03 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-05/0.4616, allocations: 4 kB / 1.03 GB, free: 11.78 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004478/0.4621, allocations: 99.48 kB / 1.03 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 9.288e-06/0.4621, allocations: 3.984 kB / 1.03 GB, free: 11.67 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.001017/0.4632, allocations: 189.4 kB / 1.03 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.4632, allocations: 63.36 kB / 1.03 GB, free: 11.4 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.4634, allocations: 101 kB / 1.03 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.4634, allocations: 29.7 kB / 1.03 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.327e-05/0.4635, allocations: 84.38 kB / 1.03 GB, free: 11.17 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.383e-05/0.4636, allocations: 27.7 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.4636, allocations: 0 / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.4638, allocations: 315 kB / 1.03 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.4641, allocations: 55.84 kB / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.4644, allocations: 71.39 kB / 1.031 GB, free: 10.69 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.4647, allocations: 51.92 kB / 1.031 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4647, allocations: 0 / 1.031 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006777/0.4654, allocations: 149.6 kB / 1.031 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.4654, allocations: 4 kB / 1.031 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.4655, allocations: 0 / 1.031 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.4655, allocations: 4 kB / 1.031 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.4658, allocations: 23.92 kB / 1.031 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.4658, allocations: 4.25 kB / 1.031 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.466, allocations: 23.84 kB / 1.031 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.466, allocations: 8 kB / 1.031 GB, free: 10.42 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: 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 () * Number of clocked 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.000155/0.4662, allocations: 125.8 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.4662, allocations: 4 kB / 1.031 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007081/0.467, allocations: 153.9 kB / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.467, allocations: 4 kB / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.467, allocations: 0 / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.467, allocations: 0 / 1.031 GB, free: 10.13 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.4681, allocations: 426.7 kB / 1.032 GB, free: 9.656 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4681, allocations: 0 / 1.032 GB, free: 9.656 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.4682, allocations: 15.94 kB / 1.032 GB, free: 9.641 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.056e-05/0.4683, allocations: 7.984 kB / 1.032 GB, free: 9.633 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.4683, allocations: 4 kB / 1.032 GB, free: 9.629 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.4683, allocations: 96 / 1.032 GB, free: 9.629 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4683, allocations: 7.891 kB / 1.032 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007234/0.4691, allocations: 239.4 kB / 1.032 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.337e-05/0.4692, allocations: 85 kB / 1.032 GB, free: 9.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.4692, allocations: 8 kB / 1.032 GB, free: 9.262 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.4695, allocations: 11.98 kB / 1.032 GB, free: 9.25 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.942e-05/0.4695, allocations: 4 kB / 1.032 GB, free: 9.246 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.292e-05/0.4696, allocations: 11.94 kB / 1.032 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.008e-05/0.4697, allocations: 87.28 kB / 1.032 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of sort global known variables: time 5.51e-07/0.4697, allocations: 0 / 1.032 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005485/0.4702, allocations: 16 kB / 1.032 GB, free: 9.133 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * 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.0001934/0.4705, allocations: 99.23 kB / 1.032 GB, free: 9.023 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0006601/0.4711, allocations: 115.8 kB / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4712, allocations: 1.047 kB / 1.032 GB, free: 8.91 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.4715, allocations: 43.98 kB / 1.032 GB, free: 8.867 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.4718, allocations: 14.05 kB / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006096/0.4725, allocations: 169.5 kB / 1.032 GB, free: 8.656 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.4729, allocations: 0.6926 MB / 1.033 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 7.43e-05/0.473, allocations: 4.438 kB / 1.033 GB, free: 7.934 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.358e-05/0.473, allocations: 15.42 kB / 1.033 GB, free: 7.918 MB / 0.6823 GB Notification: Performance of SimCode: time 1.012e-06/0.4731, allocations: 4 kB / 1.033 GB, free: 7.914 MB / 0.6823 GB Notification: Performance of Templates: time 0.005374/0.4784, allocations: 0.7428 MB / 1.034 GB, free: 7.18 MB / 0.6823 GB