Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.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,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage",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.001085/0.001085, allocations: 108 kB / 15.6 MB, free: 132 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.00116/0.00116, allocations: 195.8 kB / 16.53 MB, free: 6.391 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.279/2.279, allocations: 390.2 MB / 0.6647 GB, free: 412 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 63.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6169/0.6184, allocations: 140.4 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002703/0.6212, allocations: 1.11 MB / 0.9508 GB, free: 8.332 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001474/0.6227, allocations: 1.101 MB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.6229, allocations: 2.531 kB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.043e-05/0.623, allocations: 23.67 kB / 0.9519 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001687/0.6232, allocations: 44.2 kB / 0.952 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005006/0.6237, allocations: 150.3 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003925/0.6241, allocations: 325.2 kB / 0.9524 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.6243, allocations: 53.45 kB / 0.9525 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002612/0.6245, allocations: 124.2 kB / 0.9526 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.6248, allocations: 155.5 kB / 0.9527 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.243e-05/0.6249, allocations: 28.88 kB / 0.9528 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.823e-05/0.625, allocations: 29.41 kB / 0.9528 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.967e-05/0.625, allocations: 80.53 kB / 0.9529 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.6252, allocations: 132.8 kB / 0.953 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003064/0.6255, allocations: 311.8 kB / 0.9533 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.6255, allocations: 0 / 0.9533 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/0.6255, allocations: 0 / 0.9533 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.163e-05/0.6255, allocations: 0.9375 kB / 0.9533 GB, free: 6.441 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.00134/0.6269, allocations: 0.6217 MB / 0.9539 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.6269, allocations: 14.06 kB / 0.9539 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.385e-05/0.627, allocations: 62.3 kB / 0.954 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.6271, allocations: 30.06 kB / 0.954 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.6273, allocations: 198.8 kB / 0.9542 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002187/0.6275, allocations: 267.1 kB / 0.9544 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-05/0.6276, allocations: 33.83 kB / 0.9545 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005289/0.6282, allocations: 269.4 kB / 0.9547 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.6282, allocations: 1.406 kB / 0.9547 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.6282, allocations: 6.406 kB / 0.9547 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.6282, allocations: 4.719 kB / 0.9547 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004218/0.6287, allocations: 178.4 kB / 0.9549 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.6297, allocations: 0.7815 MB / 0.9557 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.6302, allocations: 201.5 kB / 0.9559 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.6304, allocations: 131.1 kB / 0.956 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.359e-05/0.6305, allocations: 14.77 kB / 0.956 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005166/0.631, allocations: 313.8 kB / 0.9563 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 2.906e-06/0.631, allocations: 0 / 0.9563 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.001041/0.6321, allocations: 479.6 kB / 0.9568 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.6321, allocations: 118.9 kB / 0.9569 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.6323, allocations: 173.8 kB / 0.957 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.165e-05/0.6323, allocations: 41.14 kB / 0.9571 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.338e-05/0.6324, allocations: 124.4 kB / 0.9572 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.6325, allocations: 148.6 kB / 0.9573 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.6327, allocations: 110.2 kB / 0.9574 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.928e-05/0.6328, allocations: 344.8 kB / 0.9578 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003042/0.6331, allocations: 145.4 kB / 0.9579 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003509/0.6335, allocations: 259.4 kB / 0.9582 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006146/0.6341, allocations: 397.8 kB / 0.9585 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.6341, allocations: 1.375 kB / 0.9585 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009361/0.635, allocations: 485.9 kB / 0.959 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.6351, allocations: 11.59 kB / 0.959 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.6351, allocations: 3.672 kB / 0.959 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.063e-05/0.6351, allocations: 5.531 kB / 0.959 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003928/0.6355, allocations: 94.14 kB / 0.9591 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.906e-05/0.6356, allocations: 5.656 kB / 0.9591 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003082/0.6359, allocations: 61.19 kB / 0.9592 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.019e-05/0.6359, allocations: 23.42 kB / 0.9592 GB, free: 1.848 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.0001493/0.6361, allocations: 159.9 kB / 0.9593 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.619e-05/0.6361, allocations: 28.41 kB / 0.9594 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.534e-05/0.6362, allocations: 35.14 kB / 0.9594 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.6362, allocations: 9.125 kB / 0.9594 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.6362, allocations: 1.344 kB / 0.9594 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.6362, allocations: 1.25 kB / 0.9594 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000283/0.6365, allocations: 349 kB / 0.9598 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.6365, allocations: 7.875 kB / 0.9598 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.6369, allocations: 75.39 kB / 0.9598 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.6369, allocations: 6.938 kB / 0.9598 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.348e-05/0.637, allocations: 16.58 kB / 0.9599 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.637, allocations: 2.656 kB / 0.9599 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.637, allocations: 1.062 kB / 0.9599 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000965/0.638, allocations: 0.5741 MB / 0.9604 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.894e-05/0.638, allocations: 110.1 kB / 0.9605 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/0.6381, allocations: 11.16 kB / 0.9605 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.6383, allocations: 44.48 kB / 0.9606 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.6385, allocations: 54.62 kB / 0.9606 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.364e-05/0.6385, allocations: 19.11 kB / 0.9606 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.795e-05/0.6386, allocations: 125.4 kB / 0.9608 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6386, allocations: 0 / 0.9608 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003787/0.639, allocations: 79.62 kB / 0.9608 GB, free: 0.6602 MB / 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.001331/0.6403, allocations: 1.165 MB / 0.962 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008174/0.6411, allocations: 402.9 kB / 0.9624 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.6412, allocations: 0 / 0.9624 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003981/0.6416, allocations: 201.7 kB / 0.9626 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.6419, allocations: 44.81 kB / 0.9626 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004332/0.6463, allocations: 3.164 MB / 0.9657 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.6466, allocations: 0.766 MB / 0.9664 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001785/0.6467, allocations: 37.03 kB / 0.9665 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.6469, allocations: 90.31 kB / 0.9666 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of SimCode: time 6.02e-07/0.6469, allocations: 1.094 kB / 0.9666 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02837/0.6753, allocations: 6.546 MB / 0.973 GB, free: 9.172 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.532/8.207, allocations: 8.234 kB / 0.973 GB, free: 9.168 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1)