Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_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.001285/0.001285, 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.001371/0.001371, allocations: 194.3 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.308/1.308, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.472/2.472, allocations: 437 MB / 0.7104 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 67.91 kB / 0.8694 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5697/0.571, allocations: 151.6 MB / 1.017 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003025/0.5741, allocations: 1.974 MB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001049/0.5751, allocations: 0.6466 MB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.5753, allocations: 4 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 6.127e-05/0.5754, allocations: 19.73 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.5755, allocations: 47.52 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004525/0.576, allocations: 155.7 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002937/0.5763, allocations: 319.2 kB / 1.021 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.5764, allocations: 48.33 kB / 1.021 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.5767, allocations: 135.6 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.5769, allocations: 147.3 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.981e-05/0.5769, allocations: 32 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.485e-05/0.577, allocations: 28 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.287e-05/0.577, allocations: 79.8 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.5772, allocations: 139.3 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.5775, allocations: 293.3 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.5775, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.363e-06/0.5775, allocations: 4 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.5775, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 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.001342/0.5789, allocations: 0.6252 MB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.5789, allocations: 12.03 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.29e-05/0.579, allocations: 58.73 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.5791, allocations: 32.56 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.5793, allocations: 204.7 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002542/0.5796, allocations: 264.3 kB / 1.023 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/0.5797, allocations: 32.38 kB / 1.023 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/0.5802, allocations: 257.6 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.5802, allocations: 4 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.5802, allocations: 8 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.5802, allocations: 8 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000417/0.5807, allocations: 177.1 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.5817, allocations: 0.7853 MB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004573/0.5821, allocations: 204.5 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.5824, allocations: 142.4 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.196e-05/0.5824, allocations: 8.375 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005754/0.583, allocations: 303.3 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/0.583, allocations: 4 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001013/0.5841, allocations: 492.6 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.628e-05/0.5841, allocations: 114.8 kB / 1.025 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.5843, allocations: 183.4 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.5844, allocations: 37.7 kB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.018e-05/0.5845, allocations: 121.3 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.5846, allocations: 146 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.5848, allocations: 106.3 kB / 1.026 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.5849, allocations: 334.8 kB / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/0.5852, allocations: 149.2 kB / 1.026 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.5855, allocations: 260.7 kB / 1.026 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005745/0.5861, allocations: 394.1 kB / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.5861, allocations: 0 / 1.027 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007784/0.5869, allocations: 492.8 kB / 1.027 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.5869, allocations: 8 kB / 1.027 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.5869, allocations: 4 kB / 1.027 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.587, allocations: 4 kB / 1.027 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003559/0.5873, allocations: 103.8 kB / 1.027 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.5873, allocations: 7.938 kB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.5876, allocations: 51.66 kB / 1.027 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/0.5877, allocations: 20 kB / 1.027 GB, free: 8.008 MB / 0.7794 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.0001623/0.5878, allocations: 163.5 kB / 1.027 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.819e-05/0.5879, allocations: 31.66 kB / 1.027 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.762e-05/0.588, allocations: 29.88 kB / 1.027 GB, free: 7.777 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.588, allocations: 4 kB / 1.028 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.588, allocations: 4 kB / 1.028 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.588, allocations: 7.922 kB / 1.028 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003214/0.5883, allocations: 361.1 kB / 1.028 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.5883, allocations: 7.875 kB / 1.028 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003866/0.5887, allocations: 71.91 kB / 1.028 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.5887, allocations: 0 / 1.028 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.5888, allocations: 15.98 kB / 1.028 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.5888, allocations: 4 kB / 1.028 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5888, allocations: 0 / 1.028 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000977/0.5898, allocations: 0.5831 MB / 1.029 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.25e-05/0.5898, allocations: 120.6 kB / 1.029 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.5899, allocations: 12.08 kB / 1.029 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.5901, allocations: 27.97 kB / 1.029 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.5902, allocations: 59.91 kB / 1.029 GB, free: 6.422 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.5903, allocations: 16 kB / 1.029 GB, free: 6.406 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.84e-05/0.5904, allocations: 121.2 kB / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5904, allocations: 0 / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003123/0.5907, allocations: 83.98 kB / 1.029 GB, free: 6.207 MB / 0.7794 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.001219/0.5919, allocations: 1.159 MB / 1.03 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007264/0.5926, allocations: 404.6 kB / 1.03 GB, free: 4.621 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.5927, allocations: 0 / 1.03 GB, free: 4.621 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.593, allocations: 199.8 kB / 1.031 GB, free: 4.426 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.5933, allocations: 47.97 kB / 1.031 GB, free: 4.379 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.5969, allocations: 3.167 MB / 1.034 GB, free: 1.047 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.5972, allocations: 0.7608 MB / 1.035 GB, free: 268 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001496/0.5973, allocations: 43.33 kB / 1.035 GB, free: 228 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.5975, allocations: 91.41 kB / 1.035 GB, free: 136 kB / 0.7794 GB Notification: Performance of SimCode: time 4.41e-07/0.5975, allocations: 0 / 1.035 GB, free: 136 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.6206, allocations: 6.555 MB / 1.041 GB, free: 9.727 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.781, allocations: 14.08 kB / 1.041 GB, free: 9.715 MB / 0.795 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.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_10_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1)