Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 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,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.007497/0.007497, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.002007/0.002007, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.538/2.538, allocations: 469.4 MB / 0.7422 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 63.89 kB / 1.064 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8056/0.8071, allocations: 159.1 MB / 1.22 GB, free: 2.246 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002345/0.8094, allocations: 1.107 MB / 1.221 GB, free: 1.137 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001403/0.8109, allocations: 1.112 MB / 1.222 GB, free: 12 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.811, allocations: 0 / 1.222 GB, free: 12 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 7.558e-05/0.8111, allocations: 19.8 kB / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.8113, allocations: 39.58 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005072/0.8118, allocations: 159.7 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003533/0.8121, allocations: 323 kB / 1.222 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.8123, allocations: 56.25 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002222/0.8125, allocations: 123.7 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.8128, allocations: 155.3 kB / 1.223 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.8129, allocations: 32 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 4.096e-05/0.8129, allocations: 28 kB / 1.223 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.308e-05/0.813, allocations: 75.78 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.8131, allocations: 135.4 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003028/0.8134, allocations: 314.4 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.8134, allocations: 4 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.233e-06/0.8134, allocations: 0 / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.049e-05/0.8135, allocations: 0 / 1.223 GB, free: 14.57 MB / 0.9512 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.001219/0.8147, allocations: 0.6351 MB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.8147, allocations: 8.625 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.284e-05/0.8148, allocations: 54.73 kB / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.308e-05/0.8149, allocations: 28.8 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.8151, allocations: 216.7 kB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.8153, allocations: 268.3 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.8153, allocations: 24.38 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004919/0.8158, allocations: 266.1 kB / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.8159, allocations: 0 / 1.225 GB, free: 12.92 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.8159, allocations: 8 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.8159, allocations: 4 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/0.8163, allocations: 179.8 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.8174, allocations: 0.7776 MB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.8179, allocations: 207.7 kB / 1.226 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.8181, allocations: 130.5 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.8182, allocations: 19.91 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005268/0.8187, allocations: 303.7 kB / 1.226 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=48): time 2.264e-06/0.8187, allocations: 0 / 1.226 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48): time 0.0009969/0.8197, allocations: 485.5 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.07e-05/0.8198, allocations: 122.8 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.82, allocations: 175.5 kB / 1.227 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/0.82, allocations: 41.7 kB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.8201, allocations: 117.3 kB / 1.227 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.8203, allocations: 150.8 kB / 1.227 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.8204, allocations: 110.3 kB / 1.228 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.8205, allocations: 338.8 kB / 1.228 GB, free: 9.617 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.8209, allocations: 145.2 kB / 1.228 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003867/0.8213, allocations: 256.7 kB / 1.228 GB, free: 9.188 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.8219, allocations: 406 kB / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.8219, allocations: 0 / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008942/0.8228, allocations: 497.1 kB / 1.229 GB, free: 8.262 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.8229, allocations: 7.938 kB / 1.229 GB, free: 8.254 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.8229, allocations: 4 kB / 1.229 GB, free: 8.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.8229, allocations: 4 kB / 1.229 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003769/0.8233, allocations: 99.81 kB / 1.229 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/0.8233, allocations: 7.938 kB / 1.229 GB, free: 8.141 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/0.8236, allocations: 59.75 kB / 1.229 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.639e-05/0.8237, allocations: 20 kB / 1.229 GB, free: 8.062 MB / 0.9512 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.0001658/0.8238, allocations: 160 kB / 1.229 GB, free: 7.898 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.403e-05/0.8239, allocations: 35.73 kB / 1.229 GB, free: 7.863 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.187e-05/0.824, allocations: 29.88 kB / 1.23 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.824, allocations: 8 kB / 1.23 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.824, allocations: 0 / 1.23 GB, free: 7.824 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.824, allocations: 3.984 kB / 1.23 GB, free: 7.82 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003467/0.8243, allocations: 357.2 kB / 1.23 GB, free: 7.422 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.8244, allocations: 4 kB / 1.23 GB, free: 7.418 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004241/0.8248, allocations: 71.91 kB / 1.23 GB, free: 7.348 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.8248, allocations: 7.938 kB / 1.23 GB, free: 7.34 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.966e-05/0.8249, allocations: 15.98 kB / 1.23 GB, free: 7.324 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.8249, allocations: 4 kB / 1.23 GB, free: 7.32 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.8249, allocations: 0 / 1.23 GB, free: 7.32 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.8259, allocations: 0.5818 MB / 1.231 GB, free: 6.715 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.313e-05/0.826, allocations: 108.8 kB / 1.231 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.826, allocations: 15.98 kB / 1.231 GB, free: 6.574 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.8263, allocations: 27.97 kB / 1.231 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.8264, allocations: 56.12 kB / 1.231 GB, free: 6.492 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.8265, allocations: 19.98 kB / 1.231 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.929e-05/0.8266, allocations: 133.1 kB / 1.231 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8266, allocations: 0 / 1.231 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003478/0.8269, allocations: 79.92 kB / 1.231 GB, free: 6.266 MB / 0.9512 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.00144/0.8284, allocations: 1.151 MB / 1.232 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007443/0.8291, allocations: 388.2 kB / 1.232 GB, free: 4.703 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8291, allocations: 4 kB / 1.232 GB, free: 4.699 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003784/0.8295, allocations: 188.7 kB / 1.233 GB, free: 4.516 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.8298, allocations: 38.16 kB / 1.233 GB, free: 4.48 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/0.8339, allocations: 3.173 MB / 1.236 GB, free: 1.156 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.8342, allocations: 0.7686 MB / 1.237 GB, free: 368 kB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000156/0.8344, allocations: 43.23 kB / 1.237 GB, free: 320 kB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.8346, allocations: 91.41 kB / 1.237 GB, free: 228 kB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.8346, allocations: 3.938 kB / 1.237 GB, free: 224 kB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02486/0.8594, allocations: 6.519 MB / 1.243 GB, free: 9.84 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.99/8.85, allocations: 21.81 kB / 1.243 GB, free: 9.82 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches