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.001694/0.001694, allocations: 104.2 kB / 19.74 MB, free: 2.066 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.002152/0.002152, allocations: 220.3 kB / 23.05 MB, free: 4.844 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.478/1.478, allocations: 230.6 MB / 256.8 MB, free: 7.73 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.145/3.145, allocations: 0.49 GB / 0.7959 GB, free: 35.65 MB / 0.6231 GB " [Timeout remaining time 177] 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.002038/0.002038, allocations: 68.05 kB / 1.155 GB, free: 25.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3233, allocations: 176.1 MB / 1.327 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002294/0.3256, allocations: 1.044 MB / 1.328 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001452/0.3271, allocations: 1.127 MB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.905e-05/0.3271, allocations: 0 / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.233e-05/0.3272, allocations: 23.69 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.3273, allocations: 43.56 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004519/0.3278, allocations: 143.8 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003456/0.3281, allocations: 335.1 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.3283, allocations: 32.58 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.3285, allocations: 135.6 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.3287, allocations: 143.3 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.161e-05/0.3287, allocations: 32 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.564e-05/0.3288, allocations: 32 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.566e-05/0.3289, allocations: 79.78 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.329, allocations: 115.5 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.3293, allocations: 314.8 kB / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3293, allocations: 0 / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3293, allocations: 0 / 1.331 GB, free: 13.31 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.503e-06/0.3294, allocations: 4 kB / 1.331 GB, free: 13.31 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.001199/0.3306, allocations: 0.552 MB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.3306, allocations: 8.031 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003316/0.3309, allocations: 68.7 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.3311, allocations: 147 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003544/0.3314, allocations: 499.6 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.593e-05/0.3315, allocations: 32.36 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004992/0.332, allocations: 262.2 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.332, allocations: 11.89 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.332, allocations: 8 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.332, allocations: 4 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004288/0.3325, allocations: 175.8 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001085/0.3336, allocations: 0.6487 MB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005289/0.3341, allocations: 203.7 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.3344, allocations: 131.1 kB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 5.426e-05/0.3344, allocations: 11.94 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006334/0.335, allocations: 299.4 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 2.345e-06/0.3351, allocations: 0 / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001098/0.3361, allocations: 494.5 kB / 1.334 GB, free: 9.512 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.402e-05/0.3362, allocations: 114.8 kB / 1.334 GB, free: 9.375 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.3364, allocations: 187.5 kB / 1.334 GB, free: 9.18 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.3365, allocations: 37.7 kB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.197e-05/0.3366, allocations: 113.4 kB / 1.335 GB, free: 9.023 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.3367, allocations: 162.7 kB / 1.335 GB, free: 8.863 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.3369, allocations: 106.3 kB / 1.335 GB, free: 8.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.337, allocations: 342.8 kB / 1.335 GB, free: 8.406 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002994/0.3373, allocations: 145.2 kB / 1.335 GB, free: 8.266 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003757/0.3377, allocations: 256.8 kB / 1.336 GB, free: 7.977 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006489/0.3383, allocations: 398.1 kB / 1.336 GB, free: 7.551 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3383, allocations: 0 / 1.336 GB, free: 7.551 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000862/0.3392, allocations: 497 kB / 1.336 GB, free: 7.059 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3392, allocations: 4 kB / 1.336 GB, free: 7.055 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.3392, allocations: 4 kB / 1.336 GB, free: 7.051 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.3393, allocations: 7.938 kB / 1.336 GB, free: 7.043 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003909/0.3396, allocations: 99.81 kB / 1.336 GB, free: 6.945 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.3397, allocations: 11.94 kB / 1.336 GB, free: 6.934 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.3399, allocations: 63.7 kB / 1.337 GB, free: 6.871 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/0.34, allocations: 20 kB / 1.337 GB, free: 6.852 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.0001774/0.3402, allocations: 156 kB / 1.337 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.971e-05/0.3402, allocations: 27.86 kB / 1.337 GB, free: 6.664 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.561e-05/0.3403, allocations: 33.91 kB / 1.337 GB, free: 6.629 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.3403, allocations: 12 kB / 1.337 GB, free: 6.617 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3403, allocations: 0 / 1.337 GB, free: 6.617 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.3403, allocations: 3.984 kB / 1.337 GB, free: 6.613 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003057/0.3406, allocations: 237 kB / 1.337 GB, free: 6.352 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3406, allocations: 0 / 1.337 GB, free: 6.352 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004083/0.341, allocations: 71.89 kB / 1.337 GB, free: 6.281 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.341, allocations: 4 kB / 1.337 GB, free: 6.277 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.3411, allocations: 15.98 kB / 1.337 GB, free: 6.262 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.3411, allocations: 3.938 kB / 1.337 GB, free: 6.258 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.3411, allocations: 4 kB / 1.337 GB, free: 6.254 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.3422, allocations: 0.5983 MB / 1.338 GB, free: 5.629 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.309e-05/0.3422, allocations: 27.8 kB / 1.338 GB, free: 5.602 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/0.3422, allocations: 8 kB / 1.338 GB, free: 5.594 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.3425, allocations: 39.89 kB / 1.338 GB, free: 5.555 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.3426, allocations: 35.94 kB / 1.338 GB, free: 5.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.2e-05/0.3426, allocations: 19.98 kB / 1.338 GB, free: 5.5 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.758e-05/0.3427, allocations: 125.2 kB / 1.338 GB, free: 5.379 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3427, allocations: 0 / 1.338 GB, free: 5.379 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003444/0.3431, allocations: 83.95 kB / 1.338 GB, free: 5.297 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.0001567/0.3432, allocations: 120 kB / 1.338 GB, free: 5.172 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007484/0.344, allocations: 360.6 kB / 1.338 GB, free: 4.824 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.344, allocations: 4 kB / 1.338 GB, free: 4.82 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003617/0.3443, allocations: 181.9 kB / 1.339 GB, free: 4.645 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.3447, allocations: 40.31 kB / 1.339 GB, free: 4.605 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.3458, allocations: 0.6435 MB / 1.339 GB, free: 3.926 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.3459, allocations: 156.1 kB / 1.339 GB, free: 3.75 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.3461, allocations: 43.42 kB / 1.34 GB, free: 3.707 MB / 1.029 GB Notification: Performance of SimCode: time 5.81e-07/0.3461, allocations: 0 / 1.34 GB, free: 3.707 MB / 1.029 GB Notification: Performance of Templates: time 0.006711/0.3528, allocations: 4.077 MB / 1.344 GB, free: 15.65 MB / 1.045 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.311902494868264]