Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.716/1.716, allocations: 293 MB / 309 MB, free: 4.785 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 188.1 kB / 378.7 MB, free: 1 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.648/1.648, allocations: 205.4 MB / 0.6383 GB, free: 8.109 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008026/0.0008028, allocations: 93.44 kB / 0.7527 GB, free: 62.88 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003867, allocations: 12 kB / 0.8768 GB, free: 10.38 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2716, allocations: 116.4 MB / 0.9905 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6967/0.9683, allocations: 139.1 MB / 1.126 GB, free: 34.66 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.9686, allocations: 68.14 kB / 1.126 GB, free: 34.6 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003008/0.9716, allocations: 1.175 MB / 1.128 GB, free: 33.71 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.984e-06/0.9717, allocations: 0 / 1.128 GB, free: 33.71 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.9717, allocations: 0 / 1.128 GB, free: 33.71 MB / 0.7292 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.0004115/0.9721, allocations: 378.2 kB / 1.128 GB, free: 33.31 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.9721, allocations: 8.031 kB / 1.128 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.9722, allocations: 8.844 kB / 1.128 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.16e-05/0.9723, allocations: 171.9 kB / 1.128 GB, free: 33.09 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.9723, allocations: 4.375 kB / 1.128 GB, free: 33.09 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.9723, allocations: 9.062 kB / 1.128 GB, free: 33.08 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.9725, allocations: 87.89 kB / 1.128 GB, free: 33.01 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.9725, allocations: 4.125 kB / 1.128 GB, free: 33 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.9726, allocations: 4.5 kB / 1.128 GB, free: 33 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.9726, allocations: 4 kB / 1.128 GB, free: 33 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.9727, allocations: 65.88 kB / 1.128 GB, free: 32.95 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.9732, allocations: 328 kB / 1.129 GB, free: 32.61 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.9734, allocations: 94.22 kB / 1.129 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.9735, allocations: 47.56 kB / 1.129 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.9736, allocations: 7.469 kB / 1.129 GB, free: 32.47 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002079/0.9738, allocations: 93.16 kB / 1.129 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.9738, allocations: 0 / 1.129 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10): time 0.0004285/0.9742, allocations: 185 kB / 1.129 GB, free: 32.22 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/0.9743, allocations: 63.23 kB / 1.129 GB, free: 32.15 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.942e-05/0.9743, allocations: 113.9 kB / 1.129 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.9744, allocations: 29.7 kB / 1.129 GB, free: 32 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.941e-05/0.9744, allocations: 84.38 kB / 1.129 GB, free: 31.91 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.9745, allocations: 27.27 kB / 1.129 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.9745, allocations: 4 kB / 1.129 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 4.997e-05/0.9745, allocations: 326.4 kB / 1.13 GB, free: 31.56 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.9746, allocations: 43.3 kB / 1.13 GB, free: 31.52 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.9748, allocations: 62.5 kB / 1.13 GB, free: 31.46 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.975, allocations: 110.4 kB / 1.13 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.975, allocations: 5.031 kB / 1.13 GB, free: 31.35 MB / 0.7292 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002676/0.9753, allocations: 152.2 kB / 1.13 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.9753, allocations: 5.562 kB / 1.13 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.9753, allocations: 0 / 1.13 GB, free: 31.21 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.9753, allocations: 8.812 kB / 1.13 GB, free: 31.2 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.9754, allocations: 19.62 kB / 1.13 GB, free: 31.19 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.9755, allocations: 11.52 kB / 1.13 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.714e-05/0.9755, allocations: 15.94 kB / 1.13 GB, free: 31.16 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.9756, allocations: 4.703 kB / 1.13 GB, free: 31.16 MB / 0.7292 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 7.161e-05/0.9756, allocations: 133.1 kB / 1.13 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.9756, allocations: 4.516 kB / 1.13 GB, free: 31.02 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002995/0.976, allocations: 159.3 kB / 1.13 GB, free: 30.88 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.976, allocations: 4 kB / 1.13 GB, free: 30.87 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.976, allocations: 1.344 kB / 1.13 GB, free: 30.87 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.976, allocations: 0 / 1.13 GB, free: 30.87 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004023/0.9764, allocations: 414.3 kB / 1.131 GB, free: 30.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.9764, allocations: 8.953 kB / 1.131 GB, free: 30.44 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.305e-05/0.9765, allocations: 8 kB / 1.131 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.9765, allocations: 0 / 1.131 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.9765, allocations: 11.56 kB / 1.131 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.9765, allocations: 0.6875 kB / 1.131 GB, free: 30.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.9765, allocations: 4 kB / 1.131 GB, free: 30.42 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002689/0.9768, allocations: 245.6 kB / 1.131 GB, free: 30.18 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.119e-05/0.9768, allocations: 81.02 kB / 1.131 GB, free: 30.09 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.9769, allocations: 4 kB / 1.131 GB, free: 30.08 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.719e-05/0.977, allocations: 16.77 kB / 1.131 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.349e-05/0.977, allocations: 7.562 kB / 1.131 GB, free: 30.07 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.977, allocations: 11.31 kB / 1.131 GB, free: 30.06 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.701e-05/0.9771, allocations: 83.97 kB / 1.131 GB, free: 29.98 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9771, allocations: 0 / 1.131 GB, free: 29.98 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002403/0.9773, allocations: 27.94 kB / 1.131 GB, free: 29.95 MB / 0.7292 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.0001411/0.9775, allocations: 119.5 kB / 1.131 GB, free: 29.83 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002692/0.9777, allocations: 115 kB / 1.131 GB, free: 29.73 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.9777, allocations: 0 / 1.131 GB, free: 29.73 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.9779, allocations: 55.11 kB / 1.131 GB, free: 29.69 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.9781, allocations: 11.08 kB / 1.131 GB, free: 29.68 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003399/0.9785, allocations: 168.9 kB / 1.132 GB, free: 29.5 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.9786, allocations: 0.6918 MB / 1.132 GB, free: 28.79 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.475e-05/0.9786, allocations: 4.438 kB / 1.132 GB, free: 28.79 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.557e-05/0.9787, allocations: 14.95 kB / 1.132 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of SimCode: time 2.4e-07/0.9787, allocations: 0 / 1.132 GB, free: 28.78 MB / 0.7292 GB Notification: Performance of Templates: time 0.002835/0.9815, allocations: 0.8833 MB / 1.133 GB, free: 28.28 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)