Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001606/0.001607, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 195.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.329/2.329, allocations: 390.2 MB / 0.6647 GB, free: 404 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 71.84 kB / 0.8127 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5563/0.5577, allocations: 140.4 MB / 0.9497 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.002688/0.5605, allocations: 1.967 MB / 0.9517 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008203/0.5613, allocations: 0.6508 MB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.103e-05/0.5614, allocations: 2.188 kB / 0.9523 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.417e-05/0.5614, allocations: 15.75 kB / 0.9523 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.5615, allocations: 40.58 kB / 0.9523 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.5619, allocations: 150.8 kB / 0.9525 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.5621, allocations: 328.6 kB / 0.9528 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.5623, allocations: 48.86 kB / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001464/0.5624, allocations: 136.4 kB / 0.953 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.5626, allocations: 143.2 kB / 0.9531 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.901e-05/0.5627, allocations: 29.59 kB / 0.9531 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.672e-05/0.5627, allocations: 29.62 kB / 0.9532 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.209e-05/0.5628, allocations: 88.22 kB / 0.9533 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.289e-05/0.5629, allocations: 136.3 kB / 0.9534 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.5631, allocations: 295.8 kB / 0.9537 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.5631, allocations: 0 / 0.9537 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5631, allocations: 5.219 kB / 0.9537 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.553e-06/0.5631, allocations: 3.984 kB / 0.9537 GB, free: 6.059 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.00103/0.5642, allocations: 0.6341 MB / 0.9543 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.5642, allocations: 8.438 kB / 0.9543 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.832e-05/0.5642, allocations: 54.98 kB / 0.9544 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.281e-05/0.5643, allocations: 30.41 kB / 0.9544 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.591e-05/0.5644, allocations: 202.8 kB / 0.9546 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.5646, allocations: 265.9 kB / 0.9548 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.5646, allocations: 31.38 kB / 0.9549 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004374/0.5651, allocations: 263.9 kB / 0.9551 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.5651, allocations: 2.594 kB / 0.9551 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.654e-05/0.5651, allocations: 9.609 kB / 0.9551 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.5651, allocations: 5.656 kB / 0.9551 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003832/0.5655, allocations: 173.3 kB / 0.9553 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008621/0.5664, allocations: 0.7772 MB / 0.9561 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004267/0.5668, allocations: 206.5 kB / 0.9563 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.5671, allocations: 132.2 kB / 0.9564 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.5671, allocations: 14.23 kB / 0.9564 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000457/0.5676, allocations: 309.3 kB / 0.9567 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 2.004e-06/0.5676, allocations: 0 / 0.9567 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0009108/0.5685, allocations: 487.1 kB / 0.9572 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.5685, allocations: 115 kB / 0.9573 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.5687, allocations: 180.7 kB / 0.9574 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.5687, allocations: 37.83 kB / 0.9575 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.44e-05/0.5687, allocations: 128 kB / 0.9576 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.914e-05/0.5688, allocations: 141.2 kB / 0.9577 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.569, allocations: 109 kB / 0.9578 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.72e-05/0.569, allocations: 341.7 kB / 0.9582 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002808/0.5693, allocations: 146.2 kB / 0.9583 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/0.5696, allocations: 254.7 kB / 0.9585 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005521/0.5702, allocations: 397 kB / 0.9589 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.5702, allocations: 1.094 kB / 0.9589 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007797/0.571, allocations: 498.4 kB / 0.9594 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.571, allocations: 6.375 kB / 0.9594 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.571, allocations: 7.125 kB / 0.9594 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.571, allocations: 4.969 kB / 0.9594 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.5714, allocations: 98.72 kB / 0.9595 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.5714, allocations: 9 kB / 0.9595 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.5717, allocations: 57.81 kB / 0.9596 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.252e-05/0.5718, allocations: 23.53 kB / 0.9596 GB, free: 1.469 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 (movAve1.mode,$PRE.movAve1.mode,$whenCondition5,movAve2.mode,$PRE.movAve2.mode,$whenCondition6,movAve3.mode,$PRE.movAve3.mode,$whenCondition7,movAve4.mode,$PRE.movAve4.mode,$whenCondition8,movAve5.mode,$PRE.movAve5.mode,$whenCondition9,movAve6.mode,$PRE.movAve6.mode,$whenCondition3,movAve7.mode,$PRE.movAve7.mode,$whenCondition4,movAve8.mode,$PRE.movAve8.mode,$whenCondition1,movAve9.mode,$PRE.movAve9.mode,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.5719, allocations: 159.8 kB / 0.9597 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.78e-05/0.5719, allocations: 28.88 kB / 0.9598 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.835e-05/0.572, allocations: 30.25 kB / 0.9598 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.572, allocations: 5.531 kB / 0.9598 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.572, allocations: 1.219 kB / 0.9598 GB, free: 1.281 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.572, allocations: 5.172 kB / 0.9598 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.5723, allocations: 363.8 kB / 0.9602 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.5723, allocations: 5.062 kB / 0.9602 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003954/0.5727, allocations: 75.64 kB / 0.9602 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.5727, allocations: 2.594 kB / 0.9602 GB, free: 0.9141 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.5728, allocations: 8.781 kB / 0.9603 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.5728, allocations: 2.312 kB / 0.9603 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5728, allocations: 1.156 kB / 0.9603 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009709/0.5738, allocations: 0.5828 MB / 0.9608 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.5738, allocations: 113 kB / 0.9609 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.811e-05/0.5739, allocations: 12.62 kB / 0.9609 GB, free: 460 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.5741, allocations: 27.03 kB / 0.961 GB, free: 448 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.5742, allocations: 64.23 kB / 0.961 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.5743, allocations: 14.12 kB / 0.961 GB, free: 404 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.082e-05/0.5744, allocations: 130.5 kB / 0.9612 GB, free: 300 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5744, allocations: 0 / 0.9612 GB, free: 300 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000307/0.5747, allocations: 74.94 kB / 0.9612 GB, free: 288 kB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (movAve1.mu,movAve2.mu,movAve3.mu,movAve4.mu,movAve5.mu,movAve6.mu,movAve7.mu,movAve8.mu,movAve9.mu) * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,movAve1.mode,movAve2.mode,movAve3.mode,movAve4.mode,movAve5.mode,$whenCondition4,$whenCondition3,movAve6.mode,movAve7.mode,$whenCondition2,$whenCondition1,movAve8.mode,movAve9.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001278/0.576, allocations: 1.153 MB / 0.9624 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000784/0.5768, allocations: 412.2 kB / 0.9628 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5768, allocations: 0 / 0.9628 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003842/0.5772, allocations: 206.2 kB / 0.963 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.5775, allocations: 41.69 kB / 0.963 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00403/0.5815, allocations: 3.154 MB / 0.9661 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.5818, allocations: 0.7655 MB / 0.9668 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000174/0.582, allocations: 45.41 kB / 0.9669 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.5822, allocations: 90.84 kB / 0.967 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of SimCode: time 1.523e-06/0.5822, allocations: 0 / 0.967 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.6052, allocations: 6.549 MB / 0.9733 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.565/8.17, allocations: 27.84 kB / 0.9734 GB, free: 8.812 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.csv --start-time 100 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.32 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1)