Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001701/0.001701, allocations: 78.09 kB / 19.76 MB, free: 1.875 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.002015/0.002015, allocations: 156.2 kB / 23.01 MB, free: 4.602 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.486/1.486, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.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 2.778/2.778, allocations: 377.9 MB / 0.6228 GB, free: 12.6 MB / 0.5919 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: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,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_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") [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.002116/0.002116, allocations: 67.89 kB / 0.982 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.031/1.033, allocations: 176.1 MB / 1.154 GB, free: 33.3 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.00187/1.035, allocations: 1.034 MB / 1.155 GB, free: 32.65 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0009873/1.036, allocations: 1.13 MB / 1.156 GB, free: 31.81 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.627e-05/1.036, allocations: 6.625 kB / 1.156 GB, free: 31.8 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 4.271e-05/1.036, allocations: 18.8 kB / 1.156 GB, free: 31.79 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001007/1.036, allocations: 40.16 kB / 1.156 GB, free: 31.76 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003847/1.036, allocations: 148.6 kB / 1.156 GB, free: 31.69 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002256/1.037, allocations: 326.3 kB / 1.157 GB, free: 31.54 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/1.037, allocations: 33.58 kB / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/1.037, allocations: 157.2 kB / 1.157 GB, free: 31.45 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/1.037, allocations: 130.1 kB / 1.157 GB, free: 31.4 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.241e-05/1.037, allocations: 30.62 kB / 1.157 GB, free: 31.4 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.682e-05/1.037, allocations: 35.53 kB / 1.157 GB, free: 31.39 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.507e-05/1.037, allocations: 72.53 kB / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.829e-05/1.037, allocations: 116.3 kB / 1.157 GB, free: 31.29 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002478/1.038, allocations: 322.8 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/1.038, allocations: 0 / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.462e-06/1.038, allocations: 2.5 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.482e-06/1.038, allocations: 0 / 1.157 GB, free: 31.17 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.00106/1.039, allocations: 0.5521 MB / 1.158 GB, free: 30.78 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/1.039, allocations: 8.188 kB / 1.158 GB, free: 30.78 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000338/1.039, allocations: 69.16 kB / 1.158 GB, free: 30.76 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.548e-05/1.039, allocations: 144.7 kB / 1.158 GB, free: 30.6 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/1.039, allocations: 499.8 kB / 1.159 GB, free: 30.03 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.624e-05/1.039, allocations: 30.66 kB / 1.159 GB, free: 30.02 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004084/1.04, allocations: 269.5 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/1.04, allocations: 7.891 kB / 1.159 GB, free: 29.88 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.439e-05/1.04, allocations: 6.875 kB / 1.159 GB, free: 29.88 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/1.04, allocations: 11.33 kB / 1.159 GB, free: 29.87 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/1.04, allocations: 181.9 kB / 1.159 GB, free: 29.81 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007915/1.041, allocations: 0.6449 MB / 1.16 GB, free: 29.32 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004094/1.041, allocations: 191.5 kB / 1.16 GB, free: 29.2 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/1.041, allocations: 131 kB / 1.16 GB, free: 29.14 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 4.106e-05/1.042, allocations: 5.219 kB / 1.16 GB, free: 29.14 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004518/1.042, allocations: 314.6 kB / 1.16 GB, free: 28.99 MB / 1.076 GB Notification: Performance of pre-optimization done (n=48): time 1.683e-06/1.042, allocations: 0 / 1.16 GB, free: 28.99 MB / 1.076 GB Notification: Performance of matching and sorting (n=48): time 0.000891/1.043, allocations: 492 kB / 1.161 GB, free: 28.81 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/1.043, allocations: 122.9 kB / 1.161 GB, free: 28.68 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/1.043, allocations: 181 kB / 1.161 GB, free: 28.55 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.946e-05/1.043, allocations: 40.61 kB / 1.161 GB, free: 28.5 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/1.043, allocations: 124.8 kB / 1.161 GB, free: 28.39 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 8.179e-05/1.043, allocations: 156.6 kB / 1.161 GB, free: 28.27 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/1.043, allocations: 104.4 kB / 1.162 GB, free: 28.21 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.706e-05/1.043, allocations: 341 kB / 1.162 GB, free: 27.89 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002606/1.044, allocations: 147.8 kB / 1.162 GB, free: 27.84 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/1.044, allocations: 256.2 kB / 1.162 GB, free: 27.68 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005084/1.044, allocations: 397.5 kB / 1.163 GB, free: 27.44 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/1.044, allocations: 0 / 1.163 GB, free: 27.44 MB / 1.076 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0006814/1.045, allocations: 488.5 kB / 1.163 GB, free: 27.24 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/1.045, allocations: 6.062 kB / 1.163 GB, free: 27.24 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/1.045, allocations: 2.875 kB / 1.163 GB, free: 27.24 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/1.045, allocations: 9.594 kB / 1.163 GB, free: 27.23 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/1.046, allocations: 98.53 kB / 1.163 GB, free: 27.22 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/1.046, allocations: 5.109 kB / 1.163 GB, free: 27.22 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002589/1.046, allocations: 66.02 kB / 1.163 GB, free: 27.18 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/1.046, allocations: 23.44 kB / 1.163 GB, free: 27.18 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.0001238/1.046, allocations: 156.4 kB / 1.163 GB, free: 27.03 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/1.046, allocations: 23.11 kB / 1.164 GB, free: 27.02 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.509e-05/1.046, allocations: 44.48 kB / 1.164 GB, free: 26.98 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/1.046, allocations: 2.875 kB / 1.164 GB, free: 26.98 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/1.046, allocations: 1.656 kB / 1.164 GB, free: 26.98 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/1.046, allocations: 3.516 kB / 1.164 GB, free: 26.98 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/1.046, allocations: 244.9 kB / 1.164 GB, free: 26.79 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/1.046, allocations: 6.562 kB / 1.164 GB, free: 26.79 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003777/1.047, allocations: 72.81 kB / 1.164 GB, free: 26.78 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.768e-06/1.047, allocations: 2.594 kB / 1.164 GB, free: 26.78 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/1.047, allocations: 10.47 kB / 1.164 GB, free: 26.78 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/1.047, allocations: 7.062 kB / 1.164 GB, free: 26.77 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.047, allocations: 4 kB / 1.164 GB, free: 26.77 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008755/1.048, allocations: 0.589 MB / 1.164 GB, free: 26.5 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.666e-05/1.048, allocations: 26.77 kB / 1.164 GB, free: 26.48 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/1.048, allocations: 14.28 kB / 1.165 GB, free: 26.48 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/1.048, allocations: 33.91 kB / 1.165 GB, free: 26.46 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/1.048, allocations: 64.05 kB / 1.165 GB, free: 26.45 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-05/1.048, allocations: 16.73 kB / 1.165 GB, free: 26.44 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.995e-05/1.048, allocations: 124.8 kB / 1.165 GB, free: 26.36 MB / 1.076 GB Notification: Performance of sort global known variables: time 6e-08/1.048, allocations: 0 / 1.165 GB, free: 26.36 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003072/1.048, allocations: 82.77 kB / 1.165 GB, free: 26.34 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.0001099/1.048, allocations: 117.2 kB / 1.165 GB, free: 26.24 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0006138/1.049, allocations: 358.8 kB / 1.165 GB, free: 26.13 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/1.049, allocations: 6.281 kB / 1.165 GB, free: 26.12 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0003109/1.049, allocations: 179.7 kB / 1.165 GB, free: 26.07 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/1.05, allocations: 45.06 kB / 1.165 GB, free: 26.05 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009024/1.051, allocations: 0.6231 MB / 1.166 GB, free: 25.66 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.73e-05/1.051, allocations: 160.5 kB / 1.166 GB, free: 25.57 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001316/1.051, allocations: 40.89 kB / 1.166 GB, free: 25.57 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.842e-05/1.051, allocations: 36.34 kB / 1.166 GB, free: 25.55 MB / 1.076 GB Notification: Performance of SimCode: time 3.41e-07/1.051, allocations: 0 / 1.166 GB, free: 25.55 MB / 1.076 GB Notification: Performance of Templates: time 0.007792/1.059, allocations: 4.005 MB / 1.17 GB, free: 25.15 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.276915326947346]