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.00188/0.00188, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.002288/0.002288, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.627/1.627, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.091/3.091, allocations: 0.5003 GB / 0.8026 GB, free: 6.754 MB / 0.6387 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="cs",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.001993/0.001993, allocations: 67.89 kB / 1.165 GB, free: 472 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.066/1.068, allocations: 178.9 MB / 1.34 GB, free: 16.26 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002238/1.07, allocations: 1.12 MB / 1.341 GB, free: 15.5 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001447/1.072, allocations: 1.15 MB / 1.342 GB, free: 14.65 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.635e-05/1.072, allocations: 2.75 kB / 1.342 GB, free: 14.65 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 5.135e-05/1.072, allocations: 17.34 kB / 1.342 GB, free: 14.63 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/1.072, allocations: 44.7 kB / 1.342 GB, free: 14.6 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004755/1.072, allocations: 146.4 kB / 1.343 GB, free: 14.53 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000315/1.073, allocations: 326.1 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/1.073, allocations: 46.84 kB / 1.343 GB, free: 14.35 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002329/1.073, allocations: 146.6 kB / 1.343 GB, free: 14.29 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/1.073, allocations: 147.5 kB / 1.343 GB, free: 14.22 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.757e-05/1.073, allocations: 29.28 kB / 1.343 GB, free: 14.22 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.796e-05/1.073, allocations: 32.95 kB / 1.343 GB, free: 14.22 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.546e-05/1.073, allocations: 76.11 kB / 1.343 GB, free: 14.18 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/1.073, allocations: 137.1 kB / 1.344 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003765/1.074, allocations: 323.9 kB / 1.344 GB, free: 13.97 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/1.074, allocations: 0.6094 kB / 1.344 GB, free: 13.97 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.793e-06/1.074, allocations: 0 / 1.344 GB, free: 13.97 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.544e-06/1.074, allocations: 4 kB / 1.344 GB, free: 13.96 MB / 1.061 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.00116/1.075, allocations: 0.6354 MB / 1.344 GB, free: 13.48 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/1.075, allocations: 9.625 kB / 1.344 GB, free: 13.48 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.615e-05/1.075, allocations: 6.125 kB / 1.344 GB, free: 13.48 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.888e-05/1.075, allocations: 55.34 kB / 1.345 GB, free: 13.43 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003231/1.075, allocations: 56.55 kB / 1.345 GB, free: 13.41 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/1.076, allocations: 206.4 kB / 1.345 GB, free: 13.18 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/1.076, allocations: 262 kB / 1.345 GB, free: 12.89 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.783e-05/1.076, allocations: 35.89 kB / 1.345 GB, free: 12.88 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004843/1.076, allocations: 263.7 kB / 1.345 GB, free: 12.75 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/1.076, allocations: 2.125 kB / 1.345 GB, free: 12.75 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/1.076, allocations: 7.453 kB / 1.345 GB, free: 12.75 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/1.076, allocations: 6.156 kB / 1.345 GB, free: 12.75 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/1.077, allocations: 180.7 kB / 1.345 GB, free: 12.69 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/1.078, allocations: 0.7711 MB / 1.346 GB, free: 12.11 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004961/1.078, allocations: 198 kB / 1.346 GB, free: 11.99 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/1.078, allocations: 125.2 kB / 1.347 GB, free: 11.93 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.109e-05/1.078, allocations: 15.64 kB / 1.347 GB, free: 11.92 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005844/1.079, allocations: 312.6 kB / 1.347 GB, free: 11.77 MB / 1.061 GB Notification: Performance of pre-optimization done (n=48): time 1.884e-06/1.079, allocations: 0 / 1.347 GB, free: 11.77 MB / 1.061 GB Notification: Performance of matching and sorting (n=48): time 0.001036/1.08, allocations: 499 kB / 1.347 GB, free: 11.58 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/1.08, allocations: 111 kB / 1.347 GB, free: 11.45 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/1.08, allocations: 178.2 kB / 1.348 GB, free: 11.32 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/1.08, allocations: 38.27 kB / 1.348 GB, free: 11.29 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.549e-05/1.08, allocations: 120.8 kB / 1.348 GB, free: 11.18 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/1.08, allocations: 154.8 kB / 1.348 GB, free: 11.05 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/1.081, allocations: 105.2 kB / 1.348 GB, free: 11 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.131e-05/1.081, allocations: 350.5 kB / 1.348 GB, free: 10.66 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/1.081, allocations: 144.9 kB / 1.348 GB, free: 10.62 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003381/1.081, allocations: 259.5 kB / 1.349 GB, free: 10.45 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006171/1.082, allocations: 393.8 kB / 1.349 GB, free: 10.21 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/1.082, allocations: 1 kB / 1.349 GB, free: 10.21 MB / 1.061 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008277/1.083, allocations: 0.4904 MB / 1.35 GB, free: 10 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/1.083, allocations: 6.312 kB / 1.35 GB, free: 10 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/1.083, allocations: 3.641 kB / 1.35 GB, free: 10 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/1.083, allocations: 5.281 kB / 1.35 GB, free: 10 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003806/1.083, allocations: 95.39 kB / 1.35 GB, free: 9.988 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/1.083, allocations: 9.281 kB / 1.35 GB, free: 9.984 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/1.084, allocations: 58.97 kB / 1.35 GB, free: 9.957 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/1.084, allocations: 23.97 kB / 1.35 GB, free: 9.949 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.0001389/1.084, allocations: 153.6 kB / 1.35 GB, free: 9.809 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.335e-05/1.084, allocations: 38.08 kB / 1.35 GB, free: 9.785 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.751e-05/1.084, allocations: 31.34 kB / 1.35 GB, free: 9.758 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/1.084, allocations: 9.859 kB / 1.35 GB, free: 9.754 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/1.084, allocations: 2.078 kB / 1.35 GB, free: 9.754 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/1.084, allocations: 11.3 kB / 1.35 GB, free: 9.746 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003351/1.084, allocations: 355.2 kB / 1.35 GB, free: 9.477 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/1.084, allocations: 0 / 1.35 GB, free: 9.477 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/1.085, allocations: 79.06 kB / 1.35 GB, free: 9.465 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/1.085, allocations: 3.094 kB / 1.35 GB, free: 9.465 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/1.085, allocations: 11.14 kB / 1.35 GB, free: 9.461 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/1.085, allocations: 2.781 kB / 1.35 GB, free: 9.461 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/1.085, allocations: 1.062 kB / 1.35 GB, free: 9.461 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/1.086, allocations: 0.5877 MB / 1.351 GB, free: 9.18 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/1.086, allocations: 109 kB / 1.351 GB, free: 9.062 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/1.086, allocations: 13.53 kB / 1.351 GB, free: 9.055 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/1.086, allocations: 33.23 kB / 1.351 GB, free: 9.047 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/1.086, allocations: 56.03 kB / 1.351 GB, free: 9.031 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/1.086, allocations: 13.3 kB / 1.351 GB, free: 9.031 MB / 1.061 GB Notification: Performance of sorting global known variables: time 9.001e-05/1.086, allocations: 126.8 kB / 1.351 GB, free: 8.941 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.086, allocations: 0 / 1.351 GB, free: 8.941 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003562/1.087, allocations: 76.25 kB / 1.351 GB, free: 8.93 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.001265/1.088, allocations: 1.151 MB / 1.353 GB, free: 8.117 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007758/1.089, allocations: 364.1 kB / 1.353 GB, free: 8.012 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/1.089, allocations: 0 / 1.353 GB, free: 8.012 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003638/1.089, allocations: 179.1 kB / 1.353 GB, free: 7.957 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003329/1.089, allocations: 52.34 kB / 1.353 GB, free: 7.934 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003746/1.093, allocations: 3.173 MB / 1.356 GB, free: 5.824 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/1.093, allocations: 0.7602 MB / 1.357 GB, free: 5.125 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001829/1.094, allocations: 38.5 kB / 1.357 GB, free: 5.121 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/1.094, allocations: 96.28 kB / 1.357 GB, free: 5.059 MB / 1.061 GB Notification: Performance of SimCode: time 7.41e-07/1.094, allocations: 0 / 1.357 GB, free: 5.059 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0275/1.121, allocations: 6.605 MB / 1.364 GB, free: 4.359 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.029/10.15, allocations: 9.719 kB / 1.364 GB, free: 4.355 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.98496144299861]