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.001473/0.001473, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001933/0.001933, allocations: 214.5 kB / 23.04 MB, free: 5.074 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.538/1.538, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.287/3.287, allocations: 0.5003 GB / 0.8061 GB, free: 26.77 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="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.003007/0.003007, allocations: 66.92 kB / 1.171 GB, free: 19.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3607, allocations: 179 MB / 1.345 GB, free: 416 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002296/0.363, allocations: 1.123 MB / 1.346 GB, free: 15.28 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001955/0.365, allocations: 1.151 MB / 1.348 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.977e-05/0.3651, allocations: 0 / 1.348 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 9.835e-05/0.3652, allocations: 15.75 kB / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.3653, allocations: 47.56 kB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005857/0.3659, allocations: 155.6 kB / 1.348 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0004541/0.3664, allocations: 323.2 kB / 1.348 GB, free: 13.59 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.3666, allocations: 40.52 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.3668, allocations: 139.6 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.3671, allocations: 151.4 kB / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.236e-05/0.3671, allocations: 32 kB / 1.348 GB, free: 13.23 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.664e-05/0.3672, allocations: 32 kB / 1.348 GB, free: 13.2 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.924e-05/0.3673, allocations: 75.8 kB / 1.349 GB, free: 13.12 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.3674, allocations: 135.3 kB / 1.349 GB, free: 12.99 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003943/0.3678, allocations: 322.9 kB / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3678, allocations: 0 / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3678, allocations: 0 / 1.349 GB, free: 12.68 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.3678, allocations: 4 kB / 1.349 GB, free: 12.67 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.001294/0.3691, allocations: 0.5635 MB / 1.35 GB, free: 12.06 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3692, allocations: 8.031 kB / 1.35 GB, free: 12.05 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.702e-05/0.3692, allocations: 8.625 kB / 1.35 GB, free: 12.05 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.453e-05/0.3693, allocations: 58.72 kB / 1.35 GB, free: 11.98 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003236/0.3696, allocations: 52.77 kB / 1.35 GB, free: 11.93 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.3697, allocations: 147 kB / 1.35 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003692/0.3701, allocations: 499.6 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.258e-05/0.3702, allocations: 40.27 kB / 1.35 GB, free: 11.12 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005141/0.3707, allocations: 261.8 kB / 1.351 GB, free: 10.85 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.3707, allocations: 0 / 1.351 GB, free: 10.85 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.3707, allocations: 12 kB / 1.351 GB, free: 10.84 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.3707, allocations: 4 kB / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004322/0.3712, allocations: 179.8 kB / 1.351 GB, free: 10.66 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.3723, allocations: 0.7417 MB / 1.351 GB, free: 9.863 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.3728, allocations: 207.7 kB / 1.352 GB, free: 9.633 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002737/0.3731, allocations: 122.5 kB / 1.352 GB, free: 9.504 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.3731, allocations: 12 kB / 1.352 GB, free: 9.492 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006024/0.3737, allocations: 319.3 kB / 1.352 GB, free: 9.164 MB / 1.045 GB Notification: Performance of pre-optimization done (n=48): time 1.623e-06/0.3737, allocations: 0 / 1.352 GB, free: 9.164 MB / 1.045 GB Notification: Performance of matching and sorting (n=48): time 0.001129/0.3748, allocations: 493.4 kB / 1.353 GB, free: 8.676 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.945e-05/0.3749, allocations: 118.8 kB / 1.353 GB, free: 8.535 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.3751, allocations: 179.5 kB / 1.353 GB, free: 8.348 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.3752, allocations: 41.7 kB / 1.353 GB, free: 8.301 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.927e-05/0.3752, allocations: 113.3 kB / 1.353 GB, free: 8.188 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.3754, allocations: 162.7 kB / 1.353 GB, free: 8.027 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.3755, allocations: 102.3 kB / 1.353 GB, free: 7.922 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3757, allocations: 346.8 kB / 1.354 GB, free: 7.574 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.376, allocations: 149.2 kB / 1.354 GB, free: 7.43 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.3764, allocations: 248.8 kB / 1.354 GB, free: 7.148 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006873/0.3771, allocations: 398 kB / 1.354 GB, free: 6.723 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3771, allocations: 0 / 1.354 GB, free: 6.723 MB / 1.045 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008921/0.378, allocations: 0.4898 MB / 1.355 GB, free: 6.227 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.378, allocations: 4 kB / 1.355 GB, free: 6.223 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.378, allocations: 4 kB / 1.355 GB, free: 6.219 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.3781, allocations: 4 kB / 1.355 GB, free: 6.215 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.3784, allocations: 99.83 kB / 1.355 GB, free: 6.117 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.3785, allocations: 4 kB / 1.355 GB, free: 6.113 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002687/0.3787, allocations: 63.69 kB / 1.355 GB, free: 6.051 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.3788, allocations: 23.98 kB / 1.355 GB, free: 6.027 MB / 1.045 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.0001723/0.3789, allocations: 155.5 kB / 1.355 GB, free: 5.863 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/0.379, allocations: 31.75 kB / 1.355 GB, free: 5.832 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.609e-05/0.3791, allocations: 33.95 kB / 1.355 GB, free: 5.801 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.495e-06/0.3791, allocations: 8 kB / 1.355 GB, free: 5.793 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3791, allocations: 0 / 1.355 GB, free: 5.793 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.3791, allocations: 4 kB / 1.355 GB, free: 5.789 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003742/0.3795, allocations: 328.3 kB / 1.356 GB, free: 5.426 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.3795, allocations: 4.062 kB / 1.356 GB, free: 5.422 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004145/0.3799, allocations: 75.83 kB / 1.356 GB, free: 5.348 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3799, allocations: 4 kB / 1.356 GB, free: 5.344 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.615e-05/0.3799, allocations: 15.98 kB / 1.356 GB, free: 5.328 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.3799, allocations: 4 kB / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3799, allocations: 0 / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.3811, allocations: 0.5899 MB / 1.356 GB, free: 4.703 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 4.143e-05/0.3811, allocations: 31.69 kB / 1.356 GB, free: 4.672 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.406e-05/0.3812, allocations: 8 kB / 1.356 GB, free: 4.664 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.3814, allocations: 39.95 kB / 1.356 GB, free: 4.625 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.3815, allocations: 51.92 kB / 1.356 GB, free: 4.574 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-05/0.3816, allocations: 19.98 kB / 1.356 GB, free: 4.555 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001042/0.3817, allocations: 121.2 kB / 1.357 GB, free: 4.438 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3817, allocations: 0 / 1.357 GB, free: 4.438 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003427/0.382, allocations: 83.98 kB / 1.357 GB, free: 4.355 MB / 1.045 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.001509/0.3835, allocations: 1.14 MB / 1.358 GB, free: 3.188 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.000769/0.3843, allocations: 362.9 kB / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3843, allocations: 0 / 1.358 GB, free: 2.832 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0003973/0.3847, allocations: 176.9 kB / 1.358 GB, free: 2.66 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.385, allocations: 41.69 kB / 1.358 GB, free: 2.621 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004438/0.3895, allocations: 3.184 MB / 1.361 GB, free: 15.28 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.3898, allocations: 0.7685 MB / 1.362 GB, free: 14.48 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001539/0.39, allocations: 42.95 kB / 1.362 GB, free: 14.44 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000186/0.3902, allocations: 95.41 kB / 1.362 GB, free: 14.35 MB / 1.061 GB Notification: Performance of SimCode: time 5.42e-07/0.3902, allocations: 0 / 1.362 GB, free: 14.35 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0318/0.422, allocations: 6.932 MB / 1.369 GB, free: 7.586 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.29, allocations: 7.984 kB / 1.369 GB, free: 7.578 MB / 1.061 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.29735119099496]