Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001393/0.001393, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001446/0.001446, allocations: 217.3 kB / 23.03 MB, free: 4.922 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.743/2.743, allocations: 476.8 MB / 0.7715 GB, free: 3.879 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_11_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.002023/0.002023, allocations: 64.09 kB / 1.118 GB, free: 39.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3399, allocations: 170 MB / 1.284 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002322/0.3422, allocations: 1.043 MB / 1.285 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001567/0.3438, allocations: 1.129 MB / 1.286 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.52e-05/0.3438, allocations: 4 kB / 1.286 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.325e-05/0.3439, allocations: 15.75 kB / 1.286 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.344, allocations: 47.52 kB / 1.286 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.3445, allocations: 147.7 kB / 1.286 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003692/0.3449, allocations: 319.1 kB / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.345, allocations: 37.97 kB / 1.287 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002579/0.3453, allocations: 151.5 kB / 1.287 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.3455, allocations: 147.4 kB / 1.287 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.12e-05/0.3456, allocations: 32 kB / 1.287 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.683e-05/0.3457, allocations: 39.98 kB / 1.287 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.376e-05/0.3458, allocations: 75.8 kB / 1.287 GB, free: 7.508 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.3459, allocations: 115.5 kB / 1.287 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003871/0.3463, allocations: 322.3 kB / 1.288 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3463, allocations: 0 / 1.288 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3463, allocations: 0 / 1.288 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.3463, allocations: 0 / 1.288 GB, free: 7.082 MB / 0.9825 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.001295/0.3476, allocations: 0.558 MB / 1.288 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3476, allocations: 8.031 kB / 1.288 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.5e-05/0.3476, allocations: 8.625 kB / 1.288 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.335e-05/0.3477, allocations: 58.73 kB / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.348, allocations: 64.7 kB / 1.288 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.3482, allocations: 143 kB / 1.288 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003941/0.3486, allocations: 499.6 kB / 1.289 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/0.3486, allocations: 32.31 kB / 1.289 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005683/0.3492, allocations: 261.9 kB / 1.289 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.3492, allocations: 3.953 kB / 1.289 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.3493, allocations: 12 kB / 1.289 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3493, allocations: 4 kB / 1.289 GB, free: 5.262 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004732/0.3497, allocations: 179.8 kB / 1.289 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.3509, allocations: 0.6833 MB / 1.29 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004994/0.3514, allocations: 195.7 kB / 1.29 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002704/0.3517, allocations: 137.6 kB / 1.29 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.133e-05/0.3517, allocations: 11.94 kB / 1.29 GB, free: 3.98 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006198/0.3524, allocations: 311.7 kB / 1.291 GB, free: 3.652 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=48): time 4.058e-06/0.3524, allocations: 3.984 kB / 1.291 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48): time 0.001156/0.3535, allocations: 492.8 kB / 1.291 GB, free: 3.164 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.28e-05/0.3536, allocations: 118.7 kB / 1.291 GB, free: 3.023 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.3538, allocations: 180.1 kB / 1.291 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/0.3538, allocations: 37.7 kB / 1.292 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.163e-05/0.3539, allocations: 117.4 kB / 1.292 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.3541, allocations: 158.7 kB / 1.292 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.3542, allocations: 102.3 kB / 1.292 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.3544, allocations: 346.8 kB / 1.292 GB, free: 2.066 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.3547, allocations: 149.2 kB / 1.292 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004091/0.3551, allocations: 256.7 kB / 1.293 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006797/0.3558, allocations: 398 kB / 1.293 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3558, allocations: 0 / 1.293 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009055/0.3567, allocations: 497.5 kB / 1.293 GB, free: 0.7148 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3567, allocations: 8 kB / 1.293 GB, free: 0.707 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3568, allocations: 8 kB / 1.293 GB, free: 0.6992 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.3568, allocations: 4 kB / 1.293 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003987/0.3572, allocations: 95.83 kB / 1.294 GB, free: 0.6016 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.3572, allocations: 7.938 kB / 1.294 GB, free: 0.5938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002817/0.3575, allocations: 59.7 kB / 1.294 GB, free: 0.5352 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.625e-05/0.3575, allocations: 23.98 kB / 1.294 GB, free: 0.5117 MB / 0.9825 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.0001814/0.3577, allocations: 163.5 kB / 1.294 GB, free: 352 kB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.3578, allocations: 27.8 kB / 1.294 GB, free: 324 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.769e-05/0.3578, allocations: 33.95 kB / 1.294 GB, free: 284 kB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.3578, allocations: 4 kB / 1.294 GB, free: 280 kB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.3578, allocations: 4 kB / 1.294 GB, free: 276 kB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3579, allocations: 0 / 1.294 GB, free: 276 kB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00037/0.3582, allocations: 280.5 kB / 1.294 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3582, allocations: 0 / 1.294 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.3587, allocations: 75.83 kB / 1.294 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.3587, allocations: 4 kB / 1.294 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.434e-05/0.3587, allocations: 16 kB / 1.294 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3587, allocations: 3.938 kB / 1.294 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3587, allocations: 4 kB / 1.294 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.3598, allocations: 0.5822 MB / 1.295 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.3599, allocations: 35.91 kB / 1.295 GB, free: 15.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.3599, allocations: 8 kB / 1.295 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.3602, allocations: 43.97 kB / 1.295 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.3603, allocations: 51.91 kB / 1.295 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.3603, allocations: 19.98 kB / 1.295 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001056/0.3605, allocations: 129.2 kB / 1.295 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.3605, allocations: 0 / 1.295 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004346/0.3609, allocations: 79.95 kB / 1.295 GB, free: 14.89 MB / 0.9981 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.001631/0.3625, allocations: 1.151 MB / 1.296 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007831/0.3633, allocations: 362.2 kB / 1.297 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3633, allocations: 0 / 1.297 GB, free: 13.35 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004066/0.3637, allocations: 183.7 kB / 1.297 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.3641, allocations: 47.72 kB / 1.297 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004696/0.3688, allocations: 3.159 MB / 1.3 GB, free: 9.801 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.3689, allocations: 152.2 kB / 1.3 GB, free: 9.633 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001721/0.3691, allocations: 38.95 kB / 1.3 GB, free: 9.594 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.3693, allocations: 95.41 kB / 1.3 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.483e-06/0.3693, allocations: 0 / 1.3 GB, free: 9.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03139/0.4007, allocations: 6.981 MB / 1.307 GB, free: 2.734 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.53, allocations: 4.375 kB / 1.307 GB, free: 2.734 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.3081745110685]