Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001809/0.001809, allocations: 79.03 kB / 19.76 MB, free: 2.031 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.002498/0.002498, allocations: 158.2 kB / 23.01 MB, free: 4.945 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.499/1.499, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.006/3.006, allocations: 394.2 MB / 0.6386 GB, free: 11.91 MB / 0.6075 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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sinInpNoDel.y|movAve1.y|movAve2.y|movAve3.y|movAve4.y|sinInp50sDel.y|movAve6.y|movAve7.y|sinInp100sDel.y|movAve8.y|movAve9.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") [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.002294/0.002294, allocations: 71.89 kB / 1.009 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.077/1.079, allocations: 181.8 MB / 1.187 GB, free: 16.14 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003716/1.083, allocations: 1.929 MB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001161/1.084, allocations: 0.699 MB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.881e-05/1.084, allocations: 2.312 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 4.821e-05/1.084, allocations: 26.2 kB / 1.189 GB, free: 14.31 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001191/1.084, allocations: 37.31 kB / 1.189 GB, free: 14.29 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/1.085, allocations: 172.4 kB / 1.189 GB, free: 14.2 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0003719/1.085, allocations: 328.2 kB / 1.19 GB, free: 14.05 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/1.085, allocations: 35.05 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/1.086, allocations: 146.3 kB / 1.19 GB, free: 13.97 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/1.086, allocations: 131.6 kB / 1.19 GB, free: 13.92 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.875e-05/1.086, allocations: 29.47 kB / 1.19 GB, free: 13.92 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 9.665e-05/1.086, allocations: 37.02 kB / 1.19 GB, free: 13.91 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 9.699e-05/1.086, allocations: 75.02 kB / 1.19 GB, free: 13.87 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/1.086, allocations: 119.9 kB / 1.19 GB, free: 13.8 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.000415/1.087, allocations: 320.4 kB / 1.191 GB, free: 13.68 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/1.087, allocations: 0 / 1.191 GB, free: 13.68 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.433e-06/1.087, allocations: 0 / 1.191 GB, free: 13.68 MB / 1.076 GB Notification: Performance of Transformations before backend: time 7.604e-06/1.087, allocations: 1.156 kB / 1.191 GB, free: 13.68 MB / 1.076 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.001195/1.088, allocations: 0.5626 MB / 1.191 GB, free: 13.29 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/1.088, allocations: 12.84 kB / 1.191 GB, free: 13.29 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003387/1.088, allocations: 60.69 kB / 1.191 GB, free: 13.27 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003341/1.089, allocations: 186.3 kB / 1.191 GB, free: 13.11 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002179/1.089, allocations: 499.9 kB / 1.192 GB, free: 12.54 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/1.089, allocations: 28.17 kB / 1.192 GB, free: 12.53 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005017/1.089, allocations: 274.9 kB / 1.192 GB, free: 12.39 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/1.089, allocations: 1.281 kB / 1.192 GB, free: 12.39 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.92e-05/1.089, allocations: 15.83 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/1.089, allocations: 4.562 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004429/1.09, allocations: 173 kB / 1.192 GB, free: 12.33 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000994/1.091, allocations: 0.6566 MB / 1.193 GB, free: 11.82 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005454/1.091, allocations: 200.1 kB / 1.193 GB, free: 11.7 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/1.092, allocations: 124.1 kB / 1.193 GB, free: 11.64 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 5.259e-05/1.092, allocations: 8.812 kB / 1.193 GB, free: 11.64 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005914/1.092, allocations: 301.7 kB / 1.194 GB, free: 11.5 MB / 1.076 GB Notification: Performance of pre-optimization done (n=48): time 1.884e-06/1.092, allocations: 0 / 1.194 GB, free: 11.5 MB / 1.076 GB Notification: Performance of matching and sorting (n=48): time 0.001181/1.094, allocations: 499.6 kB / 1.194 GB, free: 11.31 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/1.094, allocations: 121.8 kB / 1.194 GB, free: 11.18 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/1.094, allocations: 185.8 kB / 1.194 GB, free: 11.05 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.959e-05/1.094, allocations: 42.36 kB / 1.194 GB, free: 11.01 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/1.094, allocations: 122.1 kB / 1.195 GB, free: 10.9 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/1.094, allocations: 158.8 kB / 1.195 GB, free: 10.77 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/1.094, allocations: 104 kB / 1.195 GB, free: 10.72 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001065/1.094, allocations: 340.2 kB / 1.195 GB, free: 10.39 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003416/1.095, allocations: 149 kB / 1.195 GB, free: 10.34 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/1.095, allocations: 252.5 kB / 1.196 GB, free: 10.19 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000672/1.096, allocations: 404.8 kB / 1.196 GB, free: 9.941 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/1.096, allocations: 5.312 kB / 1.196 GB, free: 9.938 MB / 1.076 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000879/1.097, allocations: 486.5 kB / 1.196 GB, free: 9.738 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/1.097, allocations: 10.47 kB / 1.196 GB, free: 9.734 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/1.097, allocations: 2.766 kB / 1.196 GB, free: 9.734 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/1.097, allocations: 9.75 kB / 1.196 GB, free: 9.73 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/1.097, allocations: 98.92 kB / 1.196 GB, free: 9.715 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/1.097, allocations: 6.609 kB / 1.196 GB, free: 9.715 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/1.097, allocations: 58.2 kB / 1.197 GB, free: 9.688 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/1.097, allocations: 20.45 kB / 1.197 GB, free: 9.684 MB / 1.076 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.0001396/1.097, allocations: 170.6 kB / 1.197 GB, free: 9.523 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.024e-05/1.098, allocations: 29.53 kB / 1.197 GB, free: 9.508 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/1.098, allocations: 33.12 kB / 1.197 GB, free: 9.477 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/1.098, allocations: 5.688 kB / 1.197 GB, free: 9.477 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/1.098, allocations: 1.344 kB / 1.197 GB, free: 9.477 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/1.098, allocations: 2.672 kB / 1.197 GB, free: 9.477 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/1.098, allocations: 237.8 kB / 1.197 GB, free: 9.293 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/1.098, allocations: 1.734 kB / 1.197 GB, free: 9.293 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/1.098, allocations: 74.77 kB / 1.197 GB, free: 9.285 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/1.098, allocations: 2.516 kB / 1.197 GB, free: 9.285 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/1.098, allocations: 19.7 kB / 1.197 GB, free: 9.273 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/1.098, allocations: 6.281 kB / 1.197 GB, free: 9.27 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.098, allocations: 1.125 kB / 1.197 GB, free: 9.27 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/1.099, allocations: 0.5957 MB / 1.198 GB, free: 8.988 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.71e-05/1.099, allocations: 29.02 kB / 1.198 GB, free: 8.969 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/1.1, allocations: 13.41 kB / 1.198 GB, free: 8.961 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/1.1, allocations: 37.67 kB / 1.198 GB, free: 8.949 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/1.1, allocations: 54.48 kB / 1.198 GB, free: 8.938 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.532e-05/1.1, allocations: 17.53 kB / 1.198 GB, free: 8.934 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001001/1.1, allocations: 128.4 kB / 1.198 GB, free: 8.844 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/1.1, allocations: 0 / 1.198 GB, free: 8.844 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003397/1.1, allocations: 80.89 kB / 1.198 GB, free: 8.828 MB / 1.076 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.0001506/1.101, allocations: 120.9 kB / 1.198 GB, free: 8.727 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000803/1.101, allocations: 362.3 kB / 1.199 GB, free: 8.617 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/1.101, allocations: 1.344 kB / 1.199 GB, free: 8.617 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0003918/1.102, allocations: 183.6 kB / 1.199 GB, free: 8.559 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003601/1.102, allocations: 50.19 kB / 1.199 GB, free: 8.535 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/1.103, allocations: 0.6299 MB / 1.199 GB, free: 8.141 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/1.103, allocations: 162.3 kB / 1.199 GB, free: 8.047 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001547/1.104, allocations: 43.52 kB / 1.2 GB, free: 8.031 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/1.104, allocations: 38.48 kB / 1.2 GB, free: 8.02 MB / 1.076 GB Notification: Performance of SimCode: time 4.31e-07/1.104, allocations: 0 / 1.2 GB, free: 8.02 MB / 1.076 GB Notification: Performance of Templates: time 0.01001/1.114, allocations: 4.027 MB / 1.204 GB, free: 7.602 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 9.650267562945373]