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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 110.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 225.6 MB / 247.8 MB, free: 13.91 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.166/3.166, allocations: 497.2 MB / 0.7811 GB, free: 33.66 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 74.84 kB / 1.134 GB, free: 33.7 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3698, allocations: 173.9 MB / 1.304 GB, free: 1.457 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002524/0.3723, allocations: 1.115 MB / 1.305 GB, free: 352 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.3739, allocations: 1.1 MB / 1.306 GB, free: 15.23 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.315e-05/0.374, allocations: 0 / 1.306 GB, free: 15.23 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 6.498e-05/0.374, allocations: 23.67 kB / 1.306 GB, free: 15.21 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.3742, allocations: 47.52 kB / 1.306 GB, free: 15.16 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005344/0.3747, allocations: 155.7 kB / 1.306 GB, free: 15.01 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003979/0.3751, allocations: 327.1 kB / 1.307 GB, free: 14.69 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.3753, allocations: 36.39 kB / 1.307 GB, free: 14.64 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.3755, allocations: 135.6 kB / 1.307 GB, free: 14.51 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002229/0.3757, allocations: 147.4 kB / 1.307 GB, free: 14.37 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.784e-05/0.3758, allocations: 28 kB / 1.307 GB, free: 14.34 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.431e-05/0.3758, allocations: 28 kB / 1.307 GB, free: 14.31 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.911e-05/0.3759, allocations: 79.8 kB / 1.307 GB, free: 14.23 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.376, allocations: 143.3 kB / 1.307 GB, free: 14.09 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.3764, allocations: 311 kB / 1.308 GB, free: 13.79 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3764, allocations: 0 / 1.308 GB, free: 13.79 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3764, allocations: 0 / 1.308 GB, free: 13.79 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.3764, allocations: 0 / 1.308 GB, free: 13.79 MB / 1.014 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.001348/0.3778, allocations: 0.6312 MB / 1.308 GB, free: 13.11 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3778, allocations: 8.922 kB / 1.308 GB, free: 13.1 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.418e-05/0.3779, allocations: 62.72 kB / 1.308 GB, free: 13.03 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.52e-05/0.378, allocations: 36.75 kB / 1.308 GB, free: 12.99 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.3782, allocations: 189 kB / 1.308 GB, free: 12.77 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.3785, allocations: 272.3 kB / 1.309 GB, free: 12.44 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.833e-05/0.3786, allocations: 28.36 kB / 1.309 GB, free: 12.41 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005206/0.3791, allocations: 266 kB / 1.309 GB, free: 12.14 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/0.3791, allocations: 7.953 kB / 1.309 GB, free: 12.14 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.3791, allocations: 4 kB / 1.309 GB, free: 12.13 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.3791, allocations: 4 kB / 1.309 GB, free: 12.13 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000423/0.3796, allocations: 183.8 kB / 1.309 GB, free: 11.95 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001162/0.3807, allocations: 0.7777 MB / 1.31 GB, free: 11.11 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004815/0.3812, allocations: 195.7 kB / 1.31 GB, free: 10.89 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.3815, allocations: 126.5 kB / 1.31 GB, free: 10.76 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.3815, allocations: 8 kB / 1.31 GB, free: 10.75 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000601/0.3821, allocations: 315.8 kB / 1.311 GB, free: 10.42 MB / 1.014 GB Notification: Performance of pre-optimization done (n=48): time 1.734e-06/0.3821, allocations: 0 / 1.311 GB, free: 10.42 MB / 1.014 GB Notification: Performance of matching and sorting (n=48): time 0.001047/0.3831, allocations: 486.9 kB / 1.311 GB, free: 9.941 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.536e-05/0.3832, allocations: 122.7 kB / 1.311 GB, free: 9.797 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.3834, allocations: 179.4 kB / 1.311 GB, free: 9.609 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.3835, allocations: 37.7 kB / 1.311 GB, free: 9.566 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.143e-05/0.3835, allocations: 125.2 kB / 1.312 GB, free: 9.441 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.3837, allocations: 154.8 kB / 1.312 GB, free: 9.289 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.3838, allocations: 110.3 kB / 1.312 GB, free: 9.176 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001766/0.384, allocations: 338.8 kB / 1.312 GB, free: 8.836 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.3843, allocations: 149.2 kB / 1.312 GB, free: 8.691 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003832/0.3847, allocations: 252.8 kB / 1.312 GB, free: 8.406 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000664/0.3854, allocations: 394 kB / 1.313 GB, free: 7.984 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3854, allocations: 4 kB / 1.313 GB, free: 7.98 MB / 1.014 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008671/0.3862, allocations: 493.1 kB / 1.313 GB, free: 7.492 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3863, allocations: 14.12 kB / 1.313 GB, free: 7.48 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3863, allocations: 0 / 1.313 GB, free: 7.48 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3863, allocations: 8.094 kB / 1.313 GB, free: 7.473 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.3867, allocations: 91.83 kB / 1.313 GB, free: 7.383 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.3867, allocations: 8.703 kB / 1.313 GB, free: 7.375 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.387, allocations: 63.69 kB / 1.313 GB, free: 7.312 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.446e-05/0.387, allocations: 23.98 kB / 1.314 GB, free: 7.289 MB / 1.014 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.0001849/0.3872, allocations: 167.3 kB / 1.314 GB, free: 7.113 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.001e-05/0.3872, allocations: 27.8 kB / 1.314 GB, free: 7.086 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.981e-05/0.3873, allocations: 37.86 kB / 1.314 GB, free: 7.047 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3873, allocations: 7.938 kB / 1.314 GB, free: 7.039 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.3873, allocations: 4 kB / 1.314 GB, free: 7.035 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3873, allocations: 0 / 1.314 GB, free: 7.035 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003823/0.3877, allocations: 353.3 kB / 1.314 GB, free: 6.641 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.3877, allocations: 4 kB / 1.314 GB, free: 6.637 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004193/0.3881, allocations: 71.89 kB / 1.314 GB, free: 6.566 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3881, allocations: 3.938 kB / 1.314 GB, free: 6.562 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.336e-05/0.3882, allocations: 15.98 kB / 1.314 GB, free: 6.547 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.3882, allocations: 4 kB / 1.314 GB, free: 6.543 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3882, allocations: 0 / 1.314 GB, free: 6.543 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.3892, allocations: 0.5872 MB / 1.315 GB, free: 5.934 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.562e-05/0.3893, allocations: 104.8 kB / 1.315 GB, free: 5.812 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.3894, allocations: 8 kB / 1.315 GB, free: 5.805 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.3896, allocations: 39.95 kB / 1.315 GB, free: 5.766 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.3897, allocations: 51.94 kB / 1.315 GB, free: 5.715 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.3898, allocations: 19.98 kB / 1.315 GB, free: 5.695 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001044/0.3899, allocations: 124 kB / 1.315 GB, free: 5.574 MB / 1.014 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3899, allocations: 0 / 1.315 GB, free: 5.574 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003192/0.3902, allocations: 83.95 kB / 1.315 GB, free: 5.492 MB / 1.014 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.001548/0.3917, allocations: 1.149 MB / 1.316 GB, free: 4.305 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0007909/0.3925, allocations: 367 kB / 1.317 GB, free: 3.953 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3925, allocations: 0 / 1.317 GB, free: 3.953 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.3929, allocations: 183.6 kB / 1.317 GB, free: 3.773 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.3932, allocations: 55.84 kB / 1.317 GB, free: 3.719 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004385/0.3976, allocations: 3.168 MB / 1.32 GB, free: 404 kB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.398, allocations: 0.7647 MB / 1.321 GB, free: 15.61 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001698/0.3982, allocations: 47.12 kB / 1.321 GB, free: 15.56 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.3984, allocations: 91.41 kB / 1.321 GB, free: 15.47 MB / 1.029 GB Notification: Performance of SimCode: time 3.81e-07/0.3984, allocations: 0 / 1.321 GB, free: 15.47 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03277/0.4311, allocations: 6.56 MB / 1.327 GB, free: 9.051 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.856/9.287, allocations: 5.172 kB / 1.327 GB, free: 9.047 MB / 1.029 GB " [Timeout remaining time 291] (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_2/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: 15.870450688060373]