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.001651/0.001651, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001774/0.001774, allocations: 221 kB / 23 MB, free: 4.918 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.512/1.512, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.196/3.196, allocations: 0.4892 GB / 0.7951 GB, free: 35.41 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: 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.002083/0.002083, allocations: 66.5 kB / 1.154 GB, free: 25.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3386, allocations: 176.1 MB / 1.326 GB, free: 1.844 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002773/0.3414, allocations: 1.038 MB / 1.327 GB, free: 0.8086 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001795/0.3431, allocations: 1.135 MB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.3432, allocations: 4 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.044e-05/0.3433, allocations: 19.73 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.3434, allocations: 47.52 kB / 1.329 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004936/0.3439, allocations: 151.6 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003842/0.3443, allocations: 323.2 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.3445, allocations: 36.58 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.3447, allocations: 143.5 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.345, allocations: 135.4 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/0.345, allocations: 28 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.386e-05/0.3451, allocations: 32 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.296e-05/0.3452, allocations: 83.73 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.3453, allocations: 115.5 kB / 1.33 GB, free: 14.56 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.3457, allocations: 322.7 kB / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3457, allocations: 0 / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3457, allocations: 0 / 1.33 GB, free: 14.24 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.3457, allocations: 0 / 1.33 GB, free: 14.24 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.001285/0.347, allocations: 0.5559 MB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.3471, allocations: 8.031 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003237/0.3474, allocations: 60.72 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.3475, allocations: 143 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004718/0.348, allocations: 0.4918 MB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.702e-05/0.3481, allocations: 28.38 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000508/0.3486, allocations: 266.2 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.3486, allocations: 11.89 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.3486, allocations: 8 kB / 1.331 GB, free: 12.49 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3486, allocations: 7.984 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004614/0.3491, allocations: 179.8 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.3502, allocations: 0.6448 MB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005257/0.3507, allocations: 195.7 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000278/0.351, allocations: 126.7 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.067e-05/0.351, allocations: 12 kB / 1.332 GB, free: 11.26 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006688/0.3517, allocations: 319.2 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 2.154e-06/0.3517, allocations: 0 / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001091/0.3528, allocations: 488 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.465e-05/0.3529, allocations: 118.8 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.353, allocations: 187.5 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.065e-05/0.3531, allocations: 37.7 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.289e-05/0.3532, allocations: 117.4 kB / 1.334 GB, free: 9.949 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.3533, allocations: 162.7 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.3535, allocations: 106.3 kB / 1.334 GB, free: 9.676 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002069/0.3537, allocations: 342.8 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003245/0.354, allocations: 149.2 kB / 1.334 GB, free: 9.188 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004681/0.3545, allocations: 252.8 kB / 1.335 GB, free: 8.902 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006933/0.3552, allocations: 398 kB / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3552, allocations: 0 / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001016/0.3562, allocations: 489.6 kB / 1.336 GB, free: 7.992 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.3562, allocations: 8 kB / 1.336 GB, free: 7.984 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.3562, allocations: 4.156 kB / 1.336 GB, free: 7.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.3562, allocations: 7.938 kB / 1.336 GB, free: 7.973 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003987/0.3566, allocations: 91.83 kB / 1.336 GB, free: 7.883 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.3567, allocations: 15.92 kB / 1.336 GB, free: 7.867 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.3569, allocations: 59.7 kB / 1.336 GB, free: 7.809 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-05/0.357, allocations: 23.98 kB / 1.336 GB, free: 7.785 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.0001951/0.3572, allocations: 156 kB / 1.336 GB, free: 7.625 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.395e-05/0.3572, allocations: 27.86 kB / 1.336 GB, free: 7.598 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.463e-05/0.3573, allocations: 41.83 kB / 1.336 GB, free: 7.555 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.3573, allocations: 4 kB / 1.336 GB, free: 7.551 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.3573, allocations: 0 / 1.336 GB, free: 7.551 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.3573, allocations: 4.094 kB / 1.336 GB, free: 7.547 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003914/0.3577, allocations: 233 kB / 1.336 GB, free: 7.289 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.3577, allocations: 15.97 kB / 1.336 GB, free: 7.273 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004211/0.3582, allocations: 67.91 kB / 1.336 GB, free: 7.207 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.3582, allocations: 4 kB / 1.336 GB, free: 7.203 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.3582, allocations: 11.98 kB / 1.336 GB, free: 7.191 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.3582, allocations: 7.938 kB / 1.336 GB, free: 7.184 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3582, allocations: 64 / 1.336 GB, free: 7.184 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.3595, allocations: 0.59 MB / 1.337 GB, free: 6.566 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.578e-05/0.3595, allocations: 31.8 kB / 1.337 GB, free: 6.535 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.3596, allocations: 11.98 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002289/0.3598, allocations: 31.91 kB / 1.337 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.3599, allocations: 47.88 kB / 1.337 GB, free: 6.445 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.3599, allocations: 11.98 kB / 1.337 GB, free: 6.434 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001205/0.3601, allocations: 129.2 kB / 1.337 GB, free: 6.309 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3601, allocations: 0 / 1.337 GB, free: 6.309 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003414/0.3604, allocations: 79.94 kB / 1.337 GB, free: 6.23 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.0001674/0.3606, allocations: 124.1 kB / 1.337 GB, free: 6.102 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007691/0.3613, allocations: 350.7 kB / 1.338 GB, free: 5.762 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3613, allocations: 0 / 1.338 GB, free: 5.762 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003701/0.3617, allocations: 175.8 kB / 1.338 GB, free: 5.59 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.3621, allocations: 52.09 kB / 1.338 GB, free: 5.539 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.3633, allocations: 0.6412 MB / 1.338 GB, free: 4.863 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001607/0.3635, allocations: 160.1 kB / 1.339 GB, free: 4.684 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.3636, allocations: 35.44 kB / 1.339 GB, free: 4.648 MB / 1.029 GB Notification: Performance of SimCode: time 4.41e-07/0.3636, allocations: 4 kB / 1.339 GB, free: 4.645 MB / 1.029 GB Notification: Performance of Templates: time 0.007222/0.3709, allocations: 4.071 MB / 1.343 GB, free: 0.5938 MB / 1.029 GB " [Timeout remaining time 300] 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 -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: 11.470160040073097]