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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002005/0.002005, allocations: 216.2 kB / 22.26 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.563/1.563, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.415/3.415, allocations: 0.505 GB / 0.8101 GB, free: 22.06 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003392/0.003392, allocations: 72.95 kB / 1.177 GB, free: 17.04 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4092/0.4126, allocations: 180.2 MB / 1.353 GB, free: 8.461 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002443/0.415, allocations: 1.107 MB / 1.354 GB, free: 7.355 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.4167, allocations: 1.151 MB / 1.355 GB, free: 6.191 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.4168, allocations: 8 kB / 1.355 GB, free: 6.184 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 6.342e-05/0.4168, allocations: 23.67 kB / 1.355 GB, free: 6.16 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.417, allocations: 39.58 kB / 1.355 GB, free: 6.121 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005177/0.4175, allocations: 151.7 kB / 1.355 GB, free: 5.973 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003935/0.4179, allocations: 323.2 kB / 1.356 GB, free: 5.656 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.418, allocations: 40.45 kB / 1.356 GB, free: 5.617 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000299/0.4183, allocations: 143.6 kB / 1.356 GB, free: 5.477 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002621/0.4186, allocations: 159.3 kB / 1.356 GB, free: 5.32 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.586e-05/0.4186, allocations: 28 kB / 1.356 GB, free: 5.293 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.025e-05/0.4187, allocations: 35.98 kB / 1.356 GB, free: 5.258 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/0.4188, allocations: 79.78 kB / 1.356 GB, free: 5.18 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.4189, allocations: 131.4 kB / 1.356 GB, free: 5.051 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003758/0.4193, allocations: 311.1 kB / 1.357 GB, free: 4.746 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.4193, allocations: 0 / 1.357 GB, free: 4.746 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4193, allocations: 0 / 1.357 GB, free: 4.746 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.368e-05/0.4193, allocations: 3.938 kB / 1.357 GB, free: 4.742 MB / 1.045 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.001326/0.4206, allocations: 0.5637 MB / 1.357 GB, free: 4.137 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.4207, allocations: 12.03 kB / 1.357 GB, free: 4.125 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.724e-05/0.4208, allocations: 58.73 kB / 1.357 GB, free: 4.059 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003347/0.4211, allocations: 52.77 kB / 1.357 GB, free: 4.008 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.4212, allocations: 155 kB / 1.357 GB, free: 3.828 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000353/0.4216, allocations: 499.6 kB / 1.358 GB, free: 3.23 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.381e-05/0.4217, allocations: 36.31 kB / 1.358 GB, free: 3.195 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005097/0.4222, allocations: 262 kB / 1.358 GB, free: 2.926 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.4222, allocations: 0 / 1.358 GB, free: 2.926 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.4222, allocations: 15.98 kB / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.4222, allocations: 8 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004396/0.4227, allocations: 175.8 kB / 1.358 GB, free: 2.73 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.4239, allocations: 0.7417 MB / 1.359 GB, free: 1.938 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000537/0.4244, allocations: 199.7 kB / 1.359 GB, free: 1.715 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002667/0.4247, allocations: 126.5 kB / 1.359 GB, free: 1.582 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 5e-05/0.4247, allocations: 19.97 kB / 1.359 GB, free: 1.562 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006365/0.4254, allocations: 303.7 kB / 1.36 GB, free: 1.246 MB / 1.045 GB Notification: Performance of pre-optimization done (n=48): time 1.924e-06/0.4254, allocations: 0 / 1.36 GB, free: 1.246 MB / 1.045 GB Notification: Performance of matching and sorting (n=48): time 0.001107/0.4265, allocations: 485.5 kB / 1.36 GB, free: 0.7656 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.4266, allocations: 114.8 kB / 1.36 GB, free: 0.6289 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.4268, allocations: 187.4 kB / 1.36 GB, free: 444 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.093e-05/0.4268, allocations: 41.7 kB / 1.36 GB, free: 396 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.4269, allocations: 117.3 kB / 1.361 GB, free: 276 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001491/0.427, allocations: 158.7 kB / 1.361 GB, free: 116 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.4272, allocations: 106.3 kB / 1.361 GB, free: 4 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4274, allocations: 338.8 kB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003224/0.4277, allocations: 153.2 kB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.4281, allocations: 252.7 kB / 1.362 GB, free: 15.23 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.4288, allocations: 390.1 kB / 1.362 GB, free: 14.81 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.4288, allocations: 0 / 1.362 GB, free: 14.81 MB / 1.061 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009086/0.4297, allocations: 493 kB / 1.362 GB, free: 14.32 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.4297, allocations: 7.938 kB / 1.362 GB, free: 14.32 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4297, allocations: 8 kB / 1.362 GB, free: 14.31 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.4297, allocations: 4 kB / 1.362 GB, free: 14.3 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003947/0.4301, allocations: 95.83 kB / 1.362 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.4301, allocations: 7.938 kB / 1.362 GB, free: 14.2 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.4305, allocations: 63.73 kB / 1.363 GB, free: 14.14 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.39e-05/0.4305, allocations: 20 kB / 1.363 GB, free: 14.12 MB / 1.061 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.0002189/0.4307, allocations: 167.5 kB / 1.363 GB, free: 13.95 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.161e-05/0.4308, allocations: 31.75 kB / 1.363 GB, free: 13.91 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.952e-05/0.4309, allocations: 33.95 kB / 1.363 GB, free: 13.88 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.4309, allocations: 8 kB / 1.363 GB, free: 13.87 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.4309, allocations: 4.062 kB / 1.363 GB, free: 13.86 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4309, allocations: 3.984 kB / 1.363 GB, free: 13.86 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004249/0.4313, allocations: 324.3 kB / 1.363 GB, free: 13.5 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.4313, allocations: 0 / 1.363 GB, free: 13.5 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004323/0.4318, allocations: 75.89 kB / 1.363 GB, free: 13.43 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.226e-05/0.4318, allocations: 11.94 kB / 1.363 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.173e-05/0.4318, allocations: 15.98 kB / 1.363 GB, free: 13.4 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.4318, allocations: 4 kB / 1.363 GB, free: 13.39 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4318, allocations: 0.7031 kB / 1.363 GB, free: 13.39 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.4329, allocations: 0.5822 MB / 1.364 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.321e-05/0.433, allocations: 35.69 kB / 1.364 GB, free: 12.75 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.546e-05/0.433, allocations: 8 kB / 1.364 GB, free: 12.74 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.4332, allocations: 31.95 kB / 1.364 GB, free: 12.71 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.4334, allocations: 59.91 kB / 1.364 GB, free: 12.65 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.4334, allocations: 16 kB / 1.364 GB, free: 12.64 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001041/0.4335, allocations: 129.2 kB / 1.364 GB, free: 12.51 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4335, allocations: 0 / 1.364 GB, free: 12.51 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003399/0.4338, allocations: 80 kB / 1.364 GB, free: 12.43 MB / 1.061 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.00147/0.4353, allocations: 1.137 MB / 1.365 GB, free: 11.27 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007898/0.4361, allocations: 367.6 kB / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.4361, allocations: 384 / 1.366 GB, free: 10.91 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0004207/0.4365, allocations: 184.8 kB / 1.366 GB, free: 10.73 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.4369, allocations: 43.92 kB / 1.366 GB, free: 10.69 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004932/0.4418, allocations: 3.167 MB / 1.369 GB, free: 7.355 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.4422, allocations: 0.7725 MB / 1.37 GB, free: 6.559 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001577/0.4424, allocations: 34.97 kB / 1.37 GB, free: 6.523 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.4425, allocations: 91.41 kB / 1.37 GB, free: 6.434 MB / 1.061 GB Notification: Performance of SimCode: time 8.82e-07/0.4425, allocations: 0 / 1.37 GB, free: 6.434 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03675/0.4793, allocations: 6.917 MB / 1.377 GB, free: 15.68 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.22, allocations: 1.172 kB / 1.377 GB, free: 15.68 MB / 1.076 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.477057505166158]