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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.008238/0.008238, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002012/0.002012, allocations: 197.3 kB / 16.67 MB, free: 5.934 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.813/2.813, allocations: 469.4 MB / 0.7422 GB, free: 7.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 71.88 kB / 1.064 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3183, allocations: 159.1 MB / 1.22 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003249/0.3216, allocations: 1.972 MB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001222/0.3229, allocations: 0.6427 MB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.323, allocations: 4 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 6.848e-05/0.3231, allocations: 23.67 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.3233, allocations: 35.59 kB / 1.222 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005478/0.3238, allocations: 151.7 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003557/0.3242, allocations: 323.1 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.3244, allocations: 48.33 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002335/0.3246, allocations: 135.6 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.3249, allocations: 147.4 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.677e-05/0.3249, allocations: 28 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.135e-05/0.325, allocations: 35.94 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.448e-05/0.3251, allocations: 79.78 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.3252, allocations: 131.4 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.3256, allocations: 310.8 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3256, allocations: 4 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.552e-06/0.3256, allocations: 0 / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.3256, allocations: 0 / 1.224 GB, free: 10.54 MB / 0.9825 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.00126/0.3269, allocations: 0.6273 MB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.3269, allocations: 12.03 kB / 1.224 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.979e-05/0.327, allocations: 58.73 kB / 1.224 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.612e-05/0.3271, allocations: 32.73 kB / 1.224 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.3272, allocations: 216.7 kB / 1.225 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.3274, allocations: 264.3 kB / 1.225 GB, free: 9.188 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.728e-05/0.3275, allocations: 28.38 kB / 1.225 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004952/0.328, allocations: 265.7 kB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.328, allocations: 3.984 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.3281, allocations: 8 kB / 1.225 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.3281, allocations: 4 kB / 1.225 GB, free: 8.871 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.3285, allocations: 175.8 kB / 1.225 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001055/0.3296, allocations: 0.7815 MB / 1.226 GB, free: 7.859 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.3301, allocations: 209.8 kB / 1.226 GB, free: 7.629 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.3303, allocations: 134.5 kB / 1.226 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.014e-05/0.3304, allocations: 16.3 kB / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005425/0.3309, allocations: 311.3 kB / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=48): time 3.086e-06/0.331, allocations: 0 / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48): time 0.00102/0.332, allocations: 494 kB / 1.227 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.3321, allocations: 114.8 kB / 1.227 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.3322, allocations: 175.5 kB / 1.228 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.147e-05/0.3323, allocations: 37.7 kB / 1.228 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.561e-05/0.3324, allocations: 121.3 kB / 1.228 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.3325, allocations: 154.8 kB / 1.228 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.3327, allocations: 106.3 kB / 1.228 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3328, allocations: 342.8 kB / 1.228 GB, free: 5.57 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003197/0.3331, allocations: 149.2 kB / 1.228 GB, free: 5.426 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003582/0.3335, allocations: 256.7 kB / 1.229 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006194/0.3341, allocations: 386.1 kB / 1.229 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3341, allocations: 0 / 1.229 GB, free: 4.723 MB / 0.9825 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008389/0.335, allocations: 0.4898 MB / 1.23 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.335, allocations: 8 kB / 1.23 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.335, allocations: 4 kB / 1.23 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.335, allocations: 4 kB / 1.23 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.3354, allocations: 99.77 kB / 1.23 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3354, allocations: 11.92 kB / 1.23 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.3357, allocations: 55.75 kB / 1.23 GB, free: 4.047 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.359e-05/0.3358, allocations: 24 kB / 1.23 GB, free: 4.023 MB / 0.9825 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.0001608/0.336, allocations: 155.5 kB / 1.23 GB, free: 3.859 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.705e-05/0.336, allocations: 39.73 kB / 1.23 GB, free: 3.82 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.877e-05/0.3361, allocations: 29.97 kB / 1.23 GB, free: 3.785 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3361, allocations: 7.984 kB / 1.23 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.3361, allocations: 4 kB / 1.23 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3361, allocations: 3.984 kB / 1.23 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003504/0.3365, allocations: 349.2 kB / 1.23 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.3365, allocations: 11.92 kB / 1.23 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/0.337, allocations: 71.91 kB / 1.23 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.337, allocations: 4 kB / 1.23 GB, free: 3.293 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.337, allocations: 19.98 kB / 1.23 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.337, allocations: 0 / 1.23 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.337, allocations: 4.078 kB / 1.23 GB, free: 3.27 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.3381, allocations: 0.5825 MB / 1.231 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.795e-05/0.3382, allocations: 108.8 kB / 1.231 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.114e-05/0.3382, allocations: 15.98 kB / 1.231 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.3385, allocations: 23.97 kB / 1.231 GB, free: 2.5 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.3386, allocations: 59.94 kB / 1.231 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.3387, allocations: 15.98 kB / 1.231 GB, free: 2.426 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.962e-05/0.3388, allocations: 129.2 kB / 1.231 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3388, allocations: 0 / 1.231 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003334/0.3391, allocations: 83.92 kB / 1.231 GB, free: 2.219 MB / 0.9825 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.001367/0.3405, allocations: 1.151 MB / 1.232 GB, free: 1.031 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007587/0.3412, allocations: 394.7 kB / 1.233 GB, free: 0.6484 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3413, allocations: 0 / 1.233 GB, free: 0.6484 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003764/0.3416, allocations: 187.8 kB / 1.233 GB, free: 476 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.342, allocations: 46.47 kB / 1.233 GB, free: 432 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003987/0.346, allocations: 3.167 MB / 1.236 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.3463, allocations: 0.7647 MB / 1.237 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001641/0.3465, allocations: 38.97 kB / 1.237 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001782/0.3467, allocations: 91.41 kB / 1.237 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of SimCode: time 3.7e-07/0.3467, allocations: 3.938 kB / 1.237 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02647/0.3731, allocations: 6.533 MB / 1.243 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.837/8.21, allocations: 14.08 kB / 1.243 GB, free: 5.801 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 50 --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