Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001883/0.001883, allocations: 85.38 kB / 19.76 MB, free: 2.023 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.002262/0.002262, allocations: 158.2 kB / 23.01 MB, free: 4.961 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.522/1.522, allocations: 177.2 MB / 203.4 MB, free: 8.965 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 2.933/2.933, allocations: 394.2 MB / 0.6386 GB, free: 11.94 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,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") 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_latest_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.002458/0.002458, allocations: 71.89 kB / 1.009 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.041/1.044, allocations: 181.8 MB / 1.187 GB, free: 16.21 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.003/1.047, allocations: 1.031 MB / 1.188 GB, free: 15.55 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001503/1.048, allocations: 1.132 MB / 1.189 GB, free: 14.71 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.046e-05/1.048, allocations: 1.719 kB / 1.189 GB, free: 14.71 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 5.557e-05/1.048, allocations: 21.61 kB / 1.189 GB, free: 14.69 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001306/1.048, allocations: 41.72 kB / 1.189 GB, free: 14.66 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005379/1.049, allocations: 149.8 kB / 1.189 GB, free: 14.59 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0004197/1.049, allocations: 329.9 kB / 1.189 GB, free: 14.44 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/1.05, allocations: 45.38 kB / 1.189 GB, free: 14.41 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/1.05, allocations: 134.2 kB / 1.189 GB, free: 14.36 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/1.05, allocations: 135.9 kB / 1.19 GB, free: 14.3 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 6.709e-05/1.05, allocations: 29.03 kB / 1.19 GB, free: 14.3 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 9.975e-05/1.05, allocations: 37.55 kB / 1.19 GB, free: 14.3 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 9.719e-05/1.05, allocations: 74.23 kB / 1.19 GB, free: 14.25 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001701/1.051, allocations: 120.4 kB / 1.19 GB, free: 14.19 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.000477/1.051, allocations: 316.2 kB / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/1.051, allocations: 1.094 kB / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.463e-06/1.051, allocations: 0 / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.015e-06/1.051, allocations: 0 / 1.19 GB, free: 14.07 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.001246/1.052, allocations: 0.557 MB / 1.191 GB, free: 13.68 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/1.052, allocations: 13.59 kB / 1.191 GB, free: 13.68 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003456/1.053, allocations: 59.94 kB / 1.191 GB, free: 13.66 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/1.053, allocations: 149.1 kB / 1.191 GB, free: 13.5 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/1.053, allocations: 499.4 kB / 1.191 GB, free: 12.93 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/1.053, allocations: 28.45 kB / 1.191 GB, free: 12.92 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005218/1.054, allocations: 266.8 kB / 1.192 GB, free: 12.79 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/1.054, allocations: 5.906 kB / 1.192 GB, free: 12.79 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/1.054, allocations: 7.438 kB / 1.192 GB, free: 12.79 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/1.054, allocations: 5.781 kB / 1.192 GB, free: 12.79 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/1.054, allocations: 175.7 kB / 1.192 GB, free: 12.73 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000991/1.055, allocations: 0.6637 MB / 1.192 GB, free: 12.22 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004968/1.056, allocations: 195.7 kB / 1.193 GB, free: 12.1 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/1.056, allocations: 128.6 kB / 1.193 GB, free: 12.04 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 4.917e-05/1.056, allocations: 8.047 kB / 1.193 GB, free: 12.04 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006121/1.057, allocations: 309 kB / 1.193 GB, free: 11.89 MB / 1.076 GB Notification: Performance of pre-optimization done (n=48): time 2.044e-06/1.057, allocations: 5.125 kB / 1.193 GB, free: 11.88 MB / 1.076 GB Notification: Performance of matching and sorting (n=48): time 0.001095/1.058, allocations: 492 kB / 1.194 GB, free: 11.7 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.576e-05/1.058, allocations: 116.9 kB / 1.194 GB, free: 11.57 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/1.058, allocations: 169.2 kB / 1.194 GB, free: 11.45 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/1.058, allocations: 42.73 kB / 1.194 GB, free: 11.41 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/1.058, allocations: 121.3 kB / 1.194 GB, free: 11.3 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.000109/1.058, allocations: 154.3 kB / 1.194 GB, free: 11.18 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/1.058, allocations: 112.5 kB / 1.194 GB, free: 11.11 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 9.075e-05/1.058, allocations: 340 kB / 1.195 GB, free: 10.79 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003224/1.059, allocations: 148.8 kB / 1.195 GB, free: 10.74 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003923/1.059, allocations: 256.3 kB / 1.195 GB, free: 10.58 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006535/1.06, allocations: 393.1 kB / 1.195 GB, free: 10.34 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/1.06, allocations: 0 / 1.195 GB, free: 10.34 MB / 1.076 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008772/1.061, allocations: 499 kB / 1.196 GB, free: 10.13 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/1.061, allocations: 6.609 kB / 1.196 GB, free: 10.13 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/1.061, allocations: 2.5 kB / 1.196 GB, free: 10.13 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.423e-05/1.061, allocations: 9.906 kB / 1.196 GB, free: 10.13 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/1.061, allocations: 103.3 kB / 1.196 GB, free: 10.11 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.542e-05/1.061, allocations: 6.047 kB / 1.196 GB, free: 10.11 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/1.061, allocations: 54.33 kB / 1.196 GB, free: 10.09 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.952e-05/1.061, allocations: 23.94 kB / 1.196 GB, free: 10.08 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.0001618/1.061, allocations: 159.7 kB / 1.196 GB, free: 9.93 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.373e-05/1.062, allocations: 28.62 kB / 1.196 GB, free: 9.914 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.585e-05/1.062, allocations: 35.95 kB / 1.196 GB, free: 9.883 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/1.062, allocations: 6.031 kB / 1.196 GB, free: 9.883 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.65e-05/1.062, allocations: 1.969 kB / 1.196 GB, free: 9.883 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/1.062, allocations: 2.969 kB / 1.196 GB, free: 9.883 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003111/1.062, allocations: 235.7 kB / 1.196 GB, free: 9.699 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/1.062, allocations: 5.281 kB / 1.196 GB, free: 9.695 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004317/1.062, allocations: 82.44 kB / 1.197 GB, free: 9.68 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/1.062, allocations: 3 kB / 1.197 GB, free: 9.68 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/1.062, allocations: 11.39 kB / 1.197 GB, free: 9.676 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/1.062, allocations: 6.609 kB / 1.197 GB, free: 9.672 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.062, allocations: 0.9375 kB / 1.197 GB, free: 9.672 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/1.064, allocations: 0.5877 MB / 1.197 GB, free: 9.398 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/1.064, allocations: 30.31 kB / 1.197 GB, free: 9.379 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/1.064, allocations: 15.86 kB / 1.197 GB, free: 9.367 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/1.064, allocations: 34.89 kB / 1.197 GB, free: 9.359 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/1.064, allocations: 56.94 kB / 1.197 GB, free: 9.344 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.963e-05/1.064, allocations: 17.7 kB / 1.197 GB, free: 9.34 MB / 1.076 GB Notification: Performance of sorting global known variables: time 9.592e-05/1.064, allocations: 127.7 kB / 1.197 GB, free: 9.25 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/1.064, allocations: 1.406 kB / 1.197 GB, free: 9.25 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003651/1.065, allocations: 82.64 kB / 1.197 GB, free: 9.23 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.0001689/1.065, allocations: 116.2 kB / 1.198 GB, free: 9.129 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0008006/1.066, allocations: 354.4 kB / 1.198 GB, free: 9.031 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.066, allocations: 4.969 kB / 1.198 GB, free: 9.027 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004001/1.066, allocations: 180.1 kB / 1.198 GB, free: 8.973 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003541/1.066, allocations: 50.14 kB / 1.198 GB, free: 8.949 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/1.068, allocations: 0.6107 MB / 1.199 GB, free: 8.57 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000182/1.068, allocations: 160.7 kB / 1.199 GB, free: 8.48 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001761/1.068, allocations: 47.31 kB / 1.199 GB, free: 8.465 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/1.068, allocations: 37.39 kB / 1.199 GB, free: 8.453 MB / 1.076 GB Notification: Performance of SimCode: time 7.92e-07/1.068, allocations: 1.188 kB / 1.199 GB, free: 8.453 MB / 1.076 GB Notification: Performance of Templates: time 0.0101/1.078, allocations: 4.021 MB / 1.203 GB, free: 8.035 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.66309484699741]