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.001673/0.001673, allocations: 98.08 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.001634/0.001634, allocations: 217.3 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.749/2.749, allocations: 476.7 MB / 0.7714 GB, free: 4.297 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.001975/0.001975, allocations: 64.98 kB / 1.118 GB, free: 40.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3227, allocations: 170 MB / 1.284 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002466/0.3252, allocations: 1.119 MB / 1.285 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.3268, allocations: 1.141 MB / 1.286 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.3269, allocations: 7.938 kB / 1.286 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.165e-05/0.327, allocations: 19.73 kB / 1.286 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.3271, allocations: 47.52 kB / 1.286 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.3276, allocations: 151.7 kB / 1.287 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.328, allocations: 331.1 kB / 1.287 GB, free: 8.895 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.3281, allocations: 36.56 kB / 1.287 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002686/0.3284, allocations: 143.6 kB / 1.287 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.3286, allocations: 143.4 kB / 1.287 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.793e-05/0.3287, allocations: 28 kB / 1.287 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.917e-05/0.3288, allocations: 47.92 kB / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.3289, allocations: 71.8 kB / 1.287 GB, free: 8.434 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.329, allocations: 147.3 kB / 1.288 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003758/0.3294, allocations: 311 kB / 1.288 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3294, allocations: 4 kB / 1.288 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3294, allocations: 0 / 1.288 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.847e-06/0.3294, allocations: 0 / 1.288 GB, free: 7.984 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.001271/0.3307, allocations: 0.5578 MB / 1.288 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3307, allocations: 8.031 kB / 1.288 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.038e-05/0.3307, allocations: 8.625 kB / 1.288 GB, free: 7.379 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.929e-05/0.3308, allocations: 58.72 kB / 1.288 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003363/0.3311, allocations: 64.72 kB / 1.289 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.3313, allocations: 143 kB / 1.289 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000368/0.3317, allocations: 499.6 kB / 1.289 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.595e-05/0.3317, allocations: 28.38 kB / 1.289 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005266/0.3322, allocations: 257.9 kB / 1.289 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.041e-05/0.3323, allocations: 11.95 kB / 1.289 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.3323, allocations: 11.98 kB / 1.289 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.3323, allocations: 8 kB / 1.289 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004716/0.3328, allocations: 175.8 kB / 1.29 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.3339, allocations: 0.7417 MB / 1.29 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005189/0.3344, allocations: 206.1 kB / 1.291 GB, free: 4.969 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002649/0.3347, allocations: 130.5 kB / 1.291 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.3347, allocations: 4 kB / 1.291 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005933/0.3353, allocations: 315.9 kB / 1.291 GB, free: 4.496 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=48): time 1.743e-06/0.3353, allocations: 3.938 kB / 1.291 GB, free: 4.492 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48): time 0.001092/0.3364, allocations: 487.7 kB / 1.291 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.723e-05/0.3365, allocations: 118.8 kB / 1.292 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.3367, allocations: 180 kB / 1.292 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.154e-05/0.3368, allocations: 41.7 kB / 1.292 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.926e-05/0.3369, allocations: 121.4 kB / 1.292 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.337, allocations: 154.8 kB / 1.292 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.3372, allocations: 106.3 kB / 1.292 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.3373, allocations: 338.8 kB / 1.292 GB, free: 2.914 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003337/0.3377, allocations: 145.2 kB / 1.293 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003958/0.3381, allocations: 260.7 kB / 1.293 GB, free: 2.48 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006723/0.3387, allocations: 394.1 kB / 1.293 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3388, allocations: 0 / 1.293 GB, free: 2.059 MB / 0.9825 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000905/0.3397, allocations: 489.2 kB / 1.294 GB, free: 1.574 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3397, allocations: 8 kB / 1.294 GB, free: 1.566 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.3397, allocations: 4 kB / 1.294 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.3397, allocations: 8 kB / 1.294 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003801/0.3401, allocations: 91.83 kB / 1.294 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.3401, allocations: 11.94 kB / 1.294 GB, free: 1.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.3404, allocations: 67.62 kB / 1.294 GB, free: 1.387 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.3404, allocations: 20 kB / 1.294 GB, free: 1.367 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.0001955/0.3406, allocations: 159.5 kB / 1.294 GB, free: 1.203 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.763e-05/0.3407, allocations: 31.8 kB / 1.294 GB, free: 1.172 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.623e-05/0.3407, allocations: 37.89 kB / 1.294 GB, free: 1.129 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.3408, allocations: 4 kB / 1.294 GB, free: 1.125 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3408, allocations: 0 / 1.294 GB, free: 1.125 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.3408, allocations: 4 kB / 1.294 GB, free: 1.121 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004071/0.3412, allocations: 328.3 kB / 1.294 GB, free: 0.7578 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.3412, allocations: 4.062 kB / 1.294 GB, free: 0.7539 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/0.3416, allocations: 79.92 kB / 1.294 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.3416, allocations: 3.984 kB / 1.294 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.3416, allocations: 23.98 kB / 1.294 GB, free: 0.6484 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3416, allocations: 0 / 1.294 GB, free: 0.6484 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3416, allocations: 0 / 1.294 GB, free: 0.6484 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.3427, allocations: 0.5792 MB / 1.295 GB, free: 48 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.7e-05/0.3428, allocations: 31.73 kB / 1.295 GB, free: 16 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.178e-05/0.3428, allocations: 12 kB / 1.295 GB, free: 4 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.3431, allocations: 31.95 kB / 1.295 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.3432, allocations: 55.91 kB / 1.295 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.3432, allocations: 16 kB / 1.295 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001104/0.3434, allocations: 125.2 kB / 1.295 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3434, allocations: 4 kB / 1.295 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003379/0.3437, allocations: 87.88 kB / 1.295 GB, free: 15.69 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.0015/0.3452, allocations: 1.143 MB / 1.297 GB, free: 14.51 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007586/0.346, allocations: 360.3 kB / 1.297 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.346, allocations: 4 kB / 1.297 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003953/0.3464, allocations: 191.2 kB / 1.297 GB, free: 13.97 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.3467, allocations: 43.72 kB / 1.297 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004541/0.3512, allocations: 3.158 MB / 1.3 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.3516, allocations: 0.7648 MB / 1.301 GB, free: 9.816 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001691/0.3518, allocations: 38.91 kB / 1.301 GB, free: 9.777 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.352, allocations: 91.41 kB / 1.301 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of SimCode: time 7.22e-07/0.352, allocations: 0 / 1.301 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.031/0.383, allocations: 6.95 MB / 1.308 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.42, allocations: 13.59 kB / 1.308 GB, free: 2.91 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.032884970016312]