Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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.001298/0.001298, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001516/0.001516, allocations: 220.4 kB / 22.25 MB, free: 5.105 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.26/3.26, allocations: 0.49 GB / 0.7951 GB, free: 35.33 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_nonZeroStart,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart",fmuType="me",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.002135/0.002135, allocations: 66.52 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3734, allocations: 176.1 MB / 1.326 GB, free: 1.406 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003228/0.3767, allocations: 1.92 MB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.3779, allocations: 0.6935 MB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.444e-05/0.378, allocations: 7.938 kB / 1.328 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.665e-05/0.3781, allocations: 19.75 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.3782, allocations: 43.52 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.3787, allocations: 183.6 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003762/0.3791, allocations: 323.1 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.3792, allocations: 45.12 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002386/0.3795, allocations: 139.5 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.3797, allocations: 155.4 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.803e-05/0.3798, allocations: 28 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.09e-05/0.3798, allocations: 36 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.859e-05/0.3799, allocations: 83.78 kB / 1.329 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.38, allocations: 111.5 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003613/0.3804, allocations: 322.7 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3804, allocations: 0 / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3804, allocations: 0 / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.502e-06/0.3804, allocations: 0 / 1.33 GB, free: 13.3 MB / 1.029 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.001317/0.3817, allocations: 0.5685 MB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3818, allocations: 16.02 kB / 1.33 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.77e-05/0.3818, allocations: 54.73 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003405/0.3822, allocations: 64.66 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.3826, allocations: 186.2 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003556/0.3829, allocations: 499.6 kB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.117e-05/0.383, allocations: 32.36 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005312/0.3835, allocations: 269.6 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.3835, allocations: 3.953 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.3836, allocations: 11.98 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.3836, allocations: 11.94 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004419/0.384, allocations: 175.8 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.3851, allocations: 0.6794 MB / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005214/0.3856, allocations: 207.8 kB / 1.333 GB, free: 10.29 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.3859, allocations: 126.5 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.3859, allocations: 8.375 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000581/0.3865, allocations: 315.2 kB / 1.333 GB, free: 9.812 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 2.204e-06/0.3865, allocations: 0 / 1.333 GB, free: 9.812 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001082/0.3876, allocations: 484.5 kB / 1.333 GB, free: 9.336 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.638e-05/0.3877, allocations: 118.7 kB / 1.334 GB, free: 9.195 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.3879, allocations: 186.3 kB / 1.334 GB, free: 9.004 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.384e-05/0.3879, allocations: 37.7 kB / 1.334 GB, free: 8.961 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.696e-05/0.388, allocations: 129.2 kB / 1.334 GB, free: 8.832 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.3882, allocations: 146.8 kB / 1.334 GB, free: 8.688 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.3883, allocations: 106.3 kB / 1.334 GB, free: 8.578 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3885, allocations: 338.8 kB / 1.334 GB, free: 8.238 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/0.3888, allocations: 149.2 kB / 1.335 GB, free: 8.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003965/0.3892, allocations: 252.8 kB / 1.335 GB, free: 7.809 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006823/0.3899, allocations: 402 kB / 1.335 GB, free: 7.379 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3899, allocations: 0 / 1.335 GB, free: 7.379 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009574/0.3909, allocations: 496.9 kB / 1.336 GB, free: 6.887 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.3909, allocations: 8 kB / 1.336 GB, free: 6.879 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.3909, allocations: 7.938 kB / 1.336 GB, free: 6.871 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.3909, allocations: 8 kB / 1.336 GB, free: 6.863 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004146/0.3913, allocations: 95.83 kB / 1.336 GB, free: 6.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.3913, allocations: 4 kB / 1.336 GB, free: 6.766 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002956/0.3916, allocations: 55.73 kB / 1.336 GB, free: 6.711 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.3917, allocations: 20 kB / 1.336 GB, free: 6.691 MB / 1.029 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.0001948/0.3919, allocations: 163.4 kB / 1.336 GB, free: 6.523 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.953e-05/0.3919, allocations: 39.75 kB / 1.336 GB, free: 6.484 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.367e-05/0.392, allocations: 37.95 kB / 1.336 GB, free: 6.438 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.392, allocations: 7.938 kB / 1.336 GB, free: 6.43 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.392, allocations: 4 kB / 1.336 GB, free: 6.426 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.392, allocations: 3.984 kB / 1.336 GB, free: 6.422 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003763/0.3924, allocations: 276.5 kB / 1.336 GB, free: 6.109 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3924, allocations: 3.938 kB / 1.336 GB, free: 6.105 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000424/0.3928, allocations: 75.89 kB / 1.336 GB, free: 6.031 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.3928, allocations: 4 kB / 1.336 GB, free: 6.027 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.3929, allocations: 15.98 kB / 1.337 GB, free: 6.012 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.3929, allocations: 8 kB / 1.337 GB, free: 6.004 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3929, allocations: 0 / 1.337 GB, free: 6.004 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.394, allocations: 0.5861 MB / 1.337 GB, free: 5.395 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.096e-05/0.3941, allocations: 31.78 kB / 1.337 GB, free: 5.363 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.091e-05/0.3941, allocations: 15.92 kB / 1.337 GB, free: 5.348 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.3944, allocations: 35.95 kB / 1.337 GB, free: 5.312 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.3945, allocations: 59.91 kB / 1.337 GB, free: 5.254 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.3945, allocations: 16 kB / 1.337 GB, free: 5.238 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001138/0.3947, allocations: 131.1 kB / 1.337 GB, free: 5.109 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3947, allocations: 0 / 1.337 GB, free: 5.109 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003444/0.395, allocations: 76 kB / 1.337 GB, free: 5.035 MB / 1.029 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.001466/0.3965, allocations: 1.164 MB / 1.339 GB, free: 3.848 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007602/0.3972, allocations: 352.5 kB / 1.339 GB, free: 3.504 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3972, allocations: 0 / 1.339 GB, free: 3.504 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003845/0.3976, allocations: 187.7 kB / 1.339 GB, free: 3.32 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003715/0.398, allocations: 45.75 kB / 1.339 GB, free: 3.277 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004474/0.4025, allocations: 3.2 MB / 1.342 GB, free: 15.91 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.4026, allocations: 156.2 kB / 1.342 GB, free: 15.74 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001739/0.4028, allocations: 42.91 kB / 1.342 GB, free: 15.7 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.403, allocations: 99.39 kB / 1.343 GB, free: 15.6 MB / 1.045 GB Notification: Performance of SimCode: time 1.313e-06/0.403, allocations: 4 kB / 1.343 GB, free: 15.59 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03937/0.4423, allocations: 7.49 MB / 1.35 GB, free: 8.297 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.98, allocations: 11.61 kB / 1.35 GB, free: 8.289 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart_fmu --startTime=100 --stopTime=900 --stepSize=0.32 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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: 18.859933434985578]