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.008381/0.008387, allocations: 104.8 kB / 15.74 MB, free: 5.984 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.00187/0.00187, allocations: 199.1 kB / 16.68 MB, free: 5.91 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.224/2.224, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.91 kB / 0.9505 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8029/0.8043, allocations: 140.4 MB / 1.088 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002193/0.8065, allocations: 1.103 MB / 1.089 GB, free: 4.527 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001314/0.8079, allocations: 1.1 MB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.229e-05/0.808, allocations: 2.312 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.525e-05/0.808, allocations: 17.58 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.8082, allocations: 45.31 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004036/0.8086, allocations: 153 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002965/0.8089, allocations: 326 kB / 1.09 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.809, allocations: 45.97 kB / 1.09 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001774/0.8092, allocations: 127.6 kB / 1.09 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.8094, allocations: 156.3 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.98e-05/0.8095, allocations: 29.72 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 4.785e-05/0.8095, allocations: 30.44 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.145e-05/0.8096, allocations: 79.61 kB / 1.091 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.8097, allocations: 131.4 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003285/0.81, allocations: 327.6 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.81, allocations: 0 / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.492e-06/0.8101, allocations: 0 / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.8101, allocations: 0.9688 kB / 1.091 GB, free: 3.027 MB / 0.8575 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.001158/0.8112, allocations: 0.6157 MB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.8113, allocations: 9.5 kB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.862e-05/0.8113, allocations: 59.48 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.629e-05/0.8114, allocations: 30.56 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.8115, allocations: 209.3 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.8117, allocations: 263.3 kB / 1.092 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.754e-05/0.8118, allocations: 32.69 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004826/0.8123, allocations: 267.8 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.8123, allocations: 1.875 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.8123, allocations: 11.38 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.8123, allocations: 5.406 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004397/0.8128, allocations: 174.1 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009855/0.8138, allocations: 0.7771 MB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004641/0.8143, allocations: 211 kB / 1.094 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.8145, allocations: 129.7 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/0.8146, allocations: 11.91 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005456/0.8151, allocations: 315 kB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 2.134e-06/0.8151, allocations: 224 / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001059/0.8162, allocations: 487.4 kB / 1.095 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.8163, allocations: 115.9 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.8164, allocations: 178.5 kB / 1.095 GB, free: 408 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.601e-05/0.8165, allocations: 38.23 kB / 1.095 GB, free: 368 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.692e-05/0.8165, allocations: 116.6 kB / 1.095 GB, free: 260 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.8166, allocations: 150.5 kB / 1.095 GB, free: 140 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.8168, allocations: 108.7 kB / 1.095 GB, free: 80 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.8169, allocations: 343.4 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003524/0.8173, allocations: 147.9 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.8177, allocations: 247.8 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006858/0.8184, allocations: 397 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.8184, allocations: 1 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009248/0.8193, allocations: 498.1 kB / 1.097 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.8194, allocations: 11.27 kB / 1.097 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.8194, allocations: 3.094 kB / 1.097 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.8194, allocations: 5.938 kB / 1.097 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003985/0.8198, allocations: 93.91 kB / 1.097 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.8198, allocations: 6.859 kB / 1.097 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002973/0.8201, allocations: 61.91 kB / 1.097 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.8202, allocations: 20.7 kB / 1.097 GB, free: 15.04 MB / 0.8731 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.0001714/0.8204, allocations: 158.2 kB / 1.097 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.738e-05/0.8204, allocations: 33.23 kB / 1.097 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.473e-05/0.8205, allocations: 32.25 kB / 1.097 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.8205, allocations: 5.094 kB / 1.097 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.8205, allocations: 8.969 kB / 1.097 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.8205, allocations: 8 kB / 1.097 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003841/0.8209, allocations: 351.2 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.8209, allocations: 1.094 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004191/0.8214, allocations: 74.91 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.8214, allocations: 11.38 kB / 1.098 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.8214, allocations: 10.73 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.8214, allocations: 7.125 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.8214, allocations: 0.8438 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.8226, allocations: 0.5827 MB / 1.098 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.584e-05/0.8226, allocations: 106 kB / 1.098 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.937e-05/0.8227, allocations: 9.828 kB / 1.098 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.8229, allocations: 37.06 kB / 1.098 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.8231, allocations: 56.09 kB / 1.098 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.8231, allocations: 17.61 kB / 1.098 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 9.259e-05/0.8232, allocations: 126.9 kB / 1.099 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8232, allocations: 0 / 1.099 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003391/0.8236, allocations: 83.56 kB / 1.099 GB, free: 14.02 MB / 0.8731 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.00142/0.825, allocations: 1.154 MB / 1.1 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000797/0.8258, allocations: 386.7 kB / 1.1 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8258, allocations: 0 / 1.1 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004013/0.8262, allocations: 191.4 kB / 1.1 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.8266, allocations: 35.27 kB / 1.1 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004329/0.8309, allocations: 3.164 MB / 1.103 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.8312, allocations: 0.7597 MB / 1.104 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001647/0.8314, allocations: 37.95 kB / 1.104 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.8316, allocations: 96.66 kB / 1.104 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of SimCode: time 3.6e-07/0.8316, allocations: 4 kB / 1.104 GB, free: 10.14 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02921/0.8608, allocations: 6.522 MB / 1.111 GB, free: 9.473 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.083/8.943, allocations: 3.594 kB / 1.111 GB, free: 9.473 MB / 0.8731 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