Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.848/4.848, allocations: 0.5623 GB / 0.5775 GB, free: 3.34 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002516/0.002516, allocations: 355.8 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.268/4.268, allocations: 410.7 MB / 1.113 GB, free: 6.016 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001806/0.001806, allocations: 179.3 kB / 1.226 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005379/0.0005382, allocations: 12 kB / 1.349 GB, free: 8.254 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7234/0.724, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.221/0.9451, allocations: 137.9 MB / 1.596 GB, free: 146.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.9454, allocations: 81.02 kB / 1.596 GB, free: 146.2 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.004698/0.9501, allocations: 1.162 MB / 1.597 GB, free: 145 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.944e-06/0.9501, allocations: 0 / 1.597 GB, free: 145 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.9502, allocations: 0 / 1.597 GB, free: 145 MB / 0.8542 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.0005945/0.9508, allocations: 376.8 kB / 1.598 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.9508, allocations: 15.56 kB / 1.598 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.247e-05/0.9509, allocations: 8.469 kB / 1.598 GB, free: 144.6 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.483e-05/0.951, allocations: 170.9 kB / 1.598 GB, free: 144.4 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.951, allocations: 11.98 kB / 1.598 GB, free: 144.4 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.951, allocations: 4 kB / 1.598 GB, free: 144.4 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.9513, allocations: 86.25 kB / 1.598 GB, free: 144.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.9514, allocations: 1.438 kB / 1.598 GB, free: 144.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.9514, allocations: 3.984 kB / 1.598 GB, free: 144.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.9514, allocations: 3.938 kB / 1.598 GB, free: 144.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003923/0.9518, allocations: 69.92 kB / 1.598 GB, free: 144.2 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007107/0.9525, allocations: 331.9 kB / 1.598 GB, free: 143.8 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002816/0.9528, allocations: 86.05 kB / 1.598 GB, free: 143.8 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.953, allocations: 44.83 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.9531, allocations: 0.8125 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003183/0.9534, allocations: 101.6 kB / 1.598 GB, free: 143.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=10): time 3.075e-06/0.9534, allocations: 0.875 kB / 1.598 GB, free: 143.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10): time 0.0007296/0.9542, allocations: 184.6 kB / 1.599 GB, free: 143.4 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.9542, allocations: 63.39 kB / 1.599 GB, free: 143.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.831e-05/0.9543, allocations: 110.5 kB / 1.599 GB, free: 143.2 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.9544, allocations: 30.33 kB / 1.599 GB, free: 143.2 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 4.43e-05/0.9544, allocations: 91.08 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.9545, allocations: 32.45 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-06/0.9545, allocations: 0 / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.087e-05/0.9546, allocations: 316 kB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.9548, allocations: 41.38 kB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.955, allocations: 72.36 kB / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.9552, allocations: 55.28 kB / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.9552, allocations: 0 / 1.599 GB, free: 142.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004727/0.9557, allocations: 153.6 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.9557, allocations: 4 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.9557, allocations: 5.25 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.9558, allocations: 0 / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.956, allocations: 20.64 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.956, allocations: 4 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.9561, allocations: 22.22 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.9562, allocations: 8 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 8.964e-05/0.9563, allocations: 124 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.969e-05/0.9563, allocations: 11.89 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000496/0.9568, allocations: 160.2 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.9568, allocations: 4.953 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.9568, allocations: 0 / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.9569, allocations: 0 / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006893/0.9576, allocations: 422 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.9576, allocations: 0 / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000129/0.9577, allocations: 17.23 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.9577, allocations: 4 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.9578, allocations: 0.5 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.9578, allocations: 0 / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.9578, allocations: 4.922 kB / 1.6 GB, free: 141.6 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004809/0.9583, allocations: 250 kB / 1.601 GB, free: 141.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.568e-05/0.9583, allocations: 82.55 kB / 1.601 GB, free: 141.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/0.9584, allocations: 4 kB / 1.601 GB, free: 141.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.9585, allocations: 13.14 kB / 1.601 GB, free: 141.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.112e-05/0.9586, allocations: 12.97 kB / 1.601 GB, free: 141.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.9586, allocations: 3.953 kB / 1.601 GB, free: 141.2 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.362e-05/0.9587, allocations: 83.75 kB / 1.601 GB, free: 141.1 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.01e-07/0.9587, allocations: 1.438 kB / 1.601 GB, free: 141.1 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003209/0.959, allocations: 35.92 kB / 1.601 GB, free: 141.1 MB / 0.8542 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.0001758/0.9592, allocations: 106.9 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004432/0.9597, allocations: 106.4 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.9597, allocations: 9.281 kB / 1.601 GB, free: 140.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002087/0.9599, allocations: 52.41 kB / 1.601 GB, free: 140.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.9602, allocations: 14.14 kB / 1.601 GB, free: 140.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004152/0.9607, allocations: 169.4 kB / 1.601 GB, free: 140.6 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.9608, allocations: 0.6926 MB / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.979e-05/0.9609, allocations: 4.438 kB / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.913e-05/0.9609, allocations: 15.42 kB / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of SimCode: time 8.72e-07/0.961, allocations: 0 / 1.602 GB, free: 139.9 MB / 0.8542 GB Notification: Performance of Templates: time 0.003991/0.965, allocations: 0.8888 MB / 1.603 GB, free: 139 MB / 0.8542 GB