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.432/2.432, allocations: 253.2 MB / 260.6 MB, free: 7.484 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.001466/0.001466, allocations: 172.9 kB / 319.9 MB, free: 3.047 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.187/2.187, allocations: 205.6 MB / 0.5708 GB, free: 15.18 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.001551/0.001551, allocations: 96.95 kB / 0.6751 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.109e-05/2.105e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2101, allocations: 106.3 MB / 0.8887 GB, free: 11.83 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9455/1.156, allocations: 131.8 MB / 1.017 GB, free: 5.559 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/1.156, allocations: 72.02 kB / 1.017 GB, free: 5.52 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00499/1.161, allocations: 0.9425 MB / 1.018 GB, free: 4.664 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.315e-06/1.161, allocations: 0 / 1.018 GB, free: 4.664 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.198e-06/1.161, allocations: 0 / 1.018 GB, free: 4.664 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.0008266/1.162, allocations: 377.9 kB / 1.019 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.181e-05/1.162, allocations: 12.03 kB / 1.019 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.618e-05/1.162, allocations: 3.906 kB / 1.019 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/1.162, allocations: 167.7 kB / 1.019 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.52e-05/1.162, allocations: 4 kB / 1.019 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/1.162, allocations: 7.984 kB / 1.019 GB, free: 4.023 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001682/1.163, allocations: 26.62 kB / 1.019 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/1.163, allocations: 63.17 kB / 1.019 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/1.163, allocations: 7.984 kB / 1.019 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/1.163, allocations: 1.625 kB / 1.019 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/1.163, allocations: 7.938 kB / 1.019 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009641/1.164, allocations: 306.7 kB / 1.019 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/1.164, allocations: 56.89 kB / 1.019 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/1.164, allocations: 27.23 kB / 1.019 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/1.164, allocations: 3.984 kB / 1.019 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002451/1.165, allocations: 81.91 kB / 1.02 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 3.887e-06/1.165, allocations: 0 / 1.02 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0004308/1.165, allocations: 102.9 kB / 1.02 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/1.165, allocations: 59.34 kB / 1.02 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/1.165, allocations: 108 kB / 1.02 GB, free: 3.203 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/1.165, allocations: 25.7 kB / 1.02 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.814e-05/1.165, allocations: 88 kB / 1.02 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.985e-05/1.165, allocations: 23.2 kB / 1.02 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.006e-05/1.165, allocations: 0 / 1.02 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001911/1.166, allocations: 322.4 kB / 1.02 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.699e-05/1.166, allocations: 23.44 kB / 1.02 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/1.166, allocations: 57.48 kB / 1.02 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/1.166, allocations: 26.55 kB / 1.02 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/1.166, allocations: 0 / 1.02 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003513/1.166, allocations: 102.8 kB / 1.02 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/1.166, allocations: 5.25 kB / 1.02 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/1.167, allocations: 4.094 kB / 1.02 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/1.167, allocations: 4 kB / 1.02 GB, free: 2.547 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/1.167, allocations: 27.23 kB / 1.02 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/1.167, allocations: 4 kB / 1.02 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/1.167, allocations: 8 kB / 1.02 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/1.167, allocations: 7.984 kB / 1.02 GB, free: 2.504 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: 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.0001783/1.167, allocations: 120 kB / 1.021 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.701e-05/1.167, allocations: 3.906 kB / 1.021 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004449/1.168, allocations: 113.2 kB / 1.021 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/1.168, allocations: 0 / 1.021 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.168, allocations: 0 / 1.021 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/1.168, allocations: 4.172 kB / 1.021 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008084/1.169, allocations: 359.4 kB / 1.021 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/1.169, allocations: 0 / 1.021 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/1.169, allocations: 23.48 kB / 1.021 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/1.169, allocations: 0 / 1.021 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/1.169, allocations: 0 / 1.021 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.846e-06/1.169, allocations: 4 kB / 1.021 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/1.169, allocations: 0 / 1.021 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004589/1.17, allocations: 200 kB / 1.021 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.301e-05/1.17, allocations: 92.94 kB / 1.021 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.954e-05/1.17, allocations: 0 / 1.021 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/1.17, allocations: 19.17 kB / 1.021 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/1.17, allocations: 4 kB / 1.021 GB, free: 1.566 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/1.17, allocations: 7.984 kB / 1.021 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.302e-05/1.17, allocations: 83.22 kB / 1.021 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.21e-07/1.17, allocations: 0 / 1.021 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0005608/1.171, allocations: 12 kB / 1.021 GB, free: 1.469 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: 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.0002024/1.171, allocations: 99.42 kB / 1.022 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000333/1.171, allocations: 74.55 kB / 1.022 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.171, allocations: 0 / 1.022 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/1.172, allocations: 33.25 kB / 1.022 GB, free: 1.285 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/1.172, allocations: 11.33 kB / 1.022 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004717/1.172, allocations: 106.8 kB / 1.022 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/1.173, allocations: 0.6886 MB / 1.022 GB, free: 464 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 7.58e-05/1.173, allocations: 12.38 kB / 1.022 GB, free: 452 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.811e-05/1.173, allocations: 15.42 kB / 1.022 GB, free: 436 kB / 0.6355 GB Notification: Performance of SimCode: time 1.112e-06/1.173, allocations: 0 / 1.022 GB, free: 436 kB / 0.6355 GB Notification: Performance of Templates: time 0.005148/1.178, allocations: 0.7188 MB / 1.023 GB, free: 15.73 MB / 0.6511 GB