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.001534/0.001534, allocations: 108 kB / 15.61 MB, free: 148 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.001825/0.001825, allocations: 196.8 kB / 16.53 MB, free: 6.656 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.333/1.333, 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 9.1.3-maint.9.1.x/package.mo): time 2.312/2.312, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.89 kB / 0.8127 GB, free: 14.35 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5602/0.5615, allocations: 140.4 MB / 0.9497 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.001895/0.5635, allocations: 1.11 MB / 0.9508 GB, free: 8.289 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009586/0.5644, allocations: 1.095 MB / 0.9519 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.827e-05/0.5645, allocations: 3.312 kB / 0.9519 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.99e-05/0.5646, allocations: 19.69 kB / 0.9519 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.77e-05/0.5647, allocations: 47.78 kB / 0.952 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003534/0.565, allocations: 145.9 kB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002316/0.5653, allocations: 329.9 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.5654, allocations: 44.17 kB / 0.9525 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.5656, allocations: 136.2 kB / 0.9526 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.5657, allocations: 143.2 kB / 0.9527 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.956e-05/0.5658, allocations: 29.88 kB / 0.9528 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.689e-05/0.5658, allocations: 29.75 kB / 0.9528 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.199e-05/0.5659, allocations: 84.34 kB / 0.9529 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.205e-05/0.566, allocations: 136.8 kB / 0.953 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002033/0.5662, allocations: 308.1 kB / 0.9533 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.5662, allocations: 3.938 kB / 0.9533 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.5662, allocations: 0 / 0.9533 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.5662, allocations: 3.938 kB / 0.9533 GB, free: 6.398 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.001017/0.5672, allocations: 0.6226 MB / 0.9539 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.5673, allocations: 9.688 kB / 0.9539 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.019e-05/0.5673, allocations: 57.8 kB / 0.954 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.418e-05/0.5674, allocations: 29.66 kB / 0.954 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.597e-05/0.5675, allocations: 203.5 kB / 0.9542 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.5676, allocations: 262.9 kB / 0.9544 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.16e-05/0.5677, allocations: 39.56 kB / 0.9545 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.5681, allocations: 260.4 kB / 0.9547 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.5681, allocations: 0.8438 kB / 0.9547 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/0.5682, allocations: 10.75 kB / 0.9547 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.5682, allocations: 5.125 kB / 0.9547 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003909/0.5686, allocations: 174.4 kB / 0.9549 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008409/0.5694, allocations: 0.787 MB / 0.9557 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004021/0.5698, allocations: 203.5 kB / 0.9559 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/0.5701, allocations: 131.9 kB / 0.956 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.5701, allocations: 9.734 kB / 0.956 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004552/0.5706, allocations: 314.1 kB / 0.9563 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.833e-06/0.5706, allocations: 7.938 kB / 0.9563 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0009089/0.5715, allocations: 480.3 kB / 0.9568 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.5716, allocations: 110.1 kB / 0.9569 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.5717, allocations: 180.3 kB / 0.9571 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/0.5717, allocations: 43.05 kB / 0.9571 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.303e-05/0.5718, allocations: 120.3 kB / 0.9572 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.913e-05/0.5718, allocations: 152 kB / 0.9574 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.572, allocations: 106 kB / 0.9575 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.748e-05/0.572, allocations: 337.7 kB / 0.9578 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.5723, allocations: 151.5 kB / 0.9579 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.5726, allocations: 251.5 kB / 0.9582 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005696/0.5732, allocations: 398.6 kB / 0.9585 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.5732, allocations: 1.062 kB / 0.9585 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007717/0.574, allocations: 490.4 kB / 0.959 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.574, allocations: 10.5 kB / 0.959 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.574, allocations: 7.375 kB / 0.959 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.574, allocations: 5.156 kB / 0.959 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.5744, allocations: 94.55 kB / 0.9591 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.5744, allocations: 13.7 kB / 0.9591 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.5747, allocations: 52.94 kB / 0.9592 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.5747, allocations: 19.44 kB / 0.9592 GB, free: 1.812 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.000125/0.5749, allocations: 156.2 kB / 0.9594 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.767e-05/0.5749, allocations: 32.33 kB / 0.9594 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.608e-05/0.575, allocations: 34.75 kB / 0.9594 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.575, allocations: 5.469 kB / 0.9594 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.575, allocations: 1.062 kB / 0.9594 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.575, allocations: 5.078 kB / 0.9594 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.5753, allocations: 352.4 kB / 0.9598 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.5753, allocations: 4.891 kB / 0.9598 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004021/0.5757, allocations: 71.38 kB / 0.9598 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.5757, allocations: 7.062 kB / 0.9598 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.5758, allocations: 12.98 kB / 0.9599 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-06/0.5758, allocations: 6.031 kB / 0.9599 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5758, allocations: 5.125 kB / 0.9599 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009324/0.5767, allocations: 0.578 MB / 0.9604 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.285e-05/0.5768, allocations: 109 kB / 0.9605 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.5768, allocations: 16.61 kB / 0.9605 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002323/0.577, allocations: 31.16 kB / 0.9606 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.5772, allocations: 55.66 kB / 0.9606 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.728e-05/0.5772, allocations: 19.08 kB / 0.9607 GB, free: 0.7422 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.261e-05/0.5773, allocations: 121.2 kB / 0.9608 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5773, allocations: 0 / 0.9608 GB, free: 0.6484 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003127/0.5776, allocations: 90.45 kB / 0.9609 GB, free: 0.6211 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.001194/0.5788, allocations: 1.154 MB / 0.962 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007658/0.5796, allocations: 411.9 kB / 0.9624 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5796, allocations: 0.9688 kB / 0.9624 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003767/0.58, allocations: 197.5 kB / 0.9626 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.5803, allocations: 50.25 kB / 0.9626 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003853/0.5842, allocations: 3.153 MB / 0.9657 GB, free: 13.12 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.5844, allocations: 0.7661 MB / 0.9664 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001639/0.5846, allocations: 41.3 kB / 0.9665 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/0.5848, allocations: 95.27 kB / 0.9666 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.5848, allocations: 0 / 0.9666 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.6084, allocations: 6.54 MB / 0.973 GB, free: 9.141 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.688/8.296, allocations: 17.25 kB / 0.973 GB, free: 9.129 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches