Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.008215/0.008215, allocations: 98.55 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002262/0.002262, allocations: 201.9 kB / 16.68 MB, free: 5.965 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.862/2.862, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 71.89 kB / 1.083 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.294, allocations: 162.2 MB / 1.242 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003282/0.2973, allocations: 1.962 MB / 1.243 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.2985, allocations: 0.6505 MB / 1.244 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.714e-05/0.2986, allocations: 0 / 1.244 GB, free: 7.488 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 5.452e-05/0.2986, allocations: 19.73 kB / 1.244 GB, free: 7.469 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.2988, allocations: 43.58 kB / 1.244 GB, free: 7.426 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004538/0.2993, allocations: 151.7 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.2996, allocations: 323.1 kB / 1.245 GB, free: 6.961 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.2998, allocations: 48.38 kB / 1.245 GB, free: 6.91 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002192/0.3, allocations: 135.5 kB / 1.245 GB, free: 6.777 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.3002, allocations: 159.3 kB / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.743e-05/0.3003, allocations: 32 kB / 1.245 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.995e-05/0.3004, allocations: 28 kB / 1.245 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.031e-05/0.3004, allocations: 79.77 kB / 1.245 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.3006, allocations: 131.4 kB / 1.245 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003306/0.3009, allocations: 306.8 kB / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3009, allocations: 0 / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3009, allocations: 0 / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.755e-06/0.3009, allocations: 0 / 1.245 GB, free: 6.055 MB / 0.9981 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.001262/0.3022, allocations: 0.6312 MB / 1.246 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.3023, allocations: 11.97 kB / 1.246 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.441e-05/0.3023, allocations: 58.73 kB / 1.246 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.373e-05/0.3024, allocations: 32.78 kB / 1.246 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.3026, allocations: 204.8 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002362/0.3028, allocations: 264.3 kB / 1.247 GB, free: 4.707 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.449e-05/0.3029, allocations: 36.31 kB / 1.247 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005007/0.3034, allocations: 257.7 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.3034, allocations: 7.922 kB / 1.247 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.3035, allocations: 12 kB / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.3035, allocations: 4 kB / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004538/0.3039, allocations: 179.8 kB / 1.247 GB, free: 4.203 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.3051, allocations: 0.7698 MB / 1.248 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005083/0.3056, allocations: 210.5 kB / 1.248 GB, free: 3.145 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.3059, allocations: 142.5 kB / 1.248 GB, free: 2.996 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.796e-05/0.3059, allocations: 8.375 kB / 1.248 GB, free: 2.988 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005726/0.3065, allocations: 319.2 kB / 1.249 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=48): time 1.823e-06/0.3065, allocations: 0 / 1.249 GB, free: 2.656 MB / 0.9981 GB Notification: Performance of matching and sorting (n=48): time 0.001073/0.3076, allocations: 479.1 kB / 1.249 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.319e-05/0.3077, allocations: 118.8 kB / 1.249 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.3079, allocations: 168.4 kB / 1.249 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.386e-05/0.3079, allocations: 45.7 kB / 1.249 GB, free: 1.816 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.481e-05/0.308, allocations: 121.3 kB / 1.249 GB, free: 1.695 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/0.3081, allocations: 154.8 kB / 1.25 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.3083, allocations: 106.3 kB / 1.25 GB, free: 1.434 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.3085, allocations: 338.8 kB / 1.25 GB, free: 1.094 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003254/0.3088, allocations: 149.2 kB / 1.25 GB, free: 0.9492 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004064/0.3092, allocations: 264.6 kB / 1.25 GB, free: 0.6523 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007086/0.31, allocations: 394.1 kB / 1.251 GB, free: 236 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.31, allocations: 0 / 1.251 GB, free: 236 kB / 0.9981 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.5452/0.8552, allocations: 492.3 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.8552, allocations: 6.688 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.8553, allocations: 4.703 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.8553, allocations: 6.375 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004017/0.8557, allocations: 96.05 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.8557, allocations: 6.281 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.856, allocations: 57.28 kB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.8561, allocations: 20.77 kB / 1.251 GB, free: 14.71 MB / 0.9981 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.0001564/0.8562, allocations: 167.2 kB / 1.252 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.897e-05/0.8563, allocations: 28.34 kB / 1.252 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.773e-05/0.8563, allocations: 31.33 kB / 1.252 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.8564, allocations: 6.547 kB / 1.252 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.8564, allocations: 0.75 kB / 1.252 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.8564, allocations: 4.172 kB / 1.252 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003142/0.8567, allocations: 360.7 kB / 1.252 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.8567, allocations: 1.562 kB / 1.252 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004154/0.8571, allocations: 73.8 kB / 1.252 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.8571, allocations: 3.062 kB / 1.252 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.8572, allocations: 15.31 kB / 1.252 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.8572, allocations: 3.219 kB / 1.252 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.8572, allocations: 1.375 kB / 1.252 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.8583, allocations: 0.585 MB / 1.253 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.694e-05/0.8583, allocations: 105.4 kB / 1.253 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.779e-05/0.8584, allocations: 12.16 kB / 1.253 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.8586, allocations: 37.5 kB / 1.253 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.8588, allocations: 51.91 kB / 1.253 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.077e-05/0.8588, allocations: 17.25 kB / 1.253 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 8.367e-05/0.8589, allocations: 134.1 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8589, allocations: 0 / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003352/0.8592, allocations: 88.66 kB / 1.253 GB, free: 14.13 MB / 0.9981 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.001238/0.8605, allocations: 1.14 MB / 1.254 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007877/0.8613, allocations: 387.9 kB / 1.255 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8613, allocations: 0 / 1.255 GB, free: 13.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004077/0.8617, allocations: 200 kB / 1.255 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.8621, allocations: 52.83 kB / 1.255 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003892/0.866, allocations: 3.155 MB / 1.258 GB, free: 11.45 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.8662, allocations: 0.7609 MB / 1.259 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001683/0.8663, allocations: 44.02 kB / 1.259 GB, free: 10.74 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.8665, allocations: 93.05 kB / 1.259 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of SimCode: time 5.21e-07/0.8665, allocations: 0 / 1.259 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/0.899, allocations: 6.542 MB / 1.265 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/9.044, allocations: 20.78 kB / 1.265 GB, free: 10.06 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.csv --start-time 100 --stop-time 900 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.32 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches