Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001343/0.001343, 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.001523/0.001523, allocations: 222.2 kB / 23 MB, free: 4.91 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.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.138/3.138, allocations: 0.4892 GB / 0.7951 GB, free: 35.7 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_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_12_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_12_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.002013/0.002013, allocations: 76.05 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3079, allocations: 176.1 MB / 1.326 GB, free: 1.781 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003239/0.3111, allocations: 1.904 MB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001245/0.3123, allocations: 0.7012 MB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.968e-05/0.3124, allocations: 4 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.58e-05/0.3125, allocations: 23.67 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001151/0.3126, allocations: 43.58 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000484/0.3131, allocations: 179.6 kB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003733/0.3135, allocations: 323.1 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.3136, allocations: 40.86 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/0.3138, allocations: 135.6 kB / 1.33 GB, free: 14.42 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.3141, allocations: 143.3 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.006e-05/0.3141, allocations: 32 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.202e-05/0.3142, allocations: 36 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.01e-05/0.3143, allocations: 83.72 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.3144, allocations: 115.5 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003733/0.3148, allocations: 314.8 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3148, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3148, allocations: 0 / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.3148, allocations: 0 / 1.33 GB, free: 13.71 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.001245/0.316, allocations: 0.5676 MB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3161, allocations: 8.031 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003349/0.3164, allocations: 64.66 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.3167, allocations: 186.2 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003822/0.3171, allocations: 0.4918 MB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.921e-05/0.3172, allocations: 28.33 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005134/0.3177, allocations: 269.8 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.3177, allocations: 0 / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.3177, allocations: 11.98 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.383e-06/0.3178, allocations: 4 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004417/0.3182, allocations: 179.8 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.3192, allocations: 0.6565 MB / 1.333 GB, free: 11.04 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/0.3197, allocations: 191.7 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002704/0.32, allocations: 126.5 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.32, allocations: 11.98 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005271/0.3206, allocations: 311.7 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 1.864e-06/0.3206, allocations: 0 / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001082/0.3216, allocations: 495.6 kB / 1.334 GB, free: 9.863 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/0.3217, allocations: 110.8 kB / 1.334 GB, free: 9.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.3219, allocations: 182.3 kB / 1.334 GB, free: 9.543 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.322, allocations: 41.7 kB / 1.334 GB, free: 9.496 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.089e-05/0.3221, allocations: 125.3 kB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.3222, allocations: 154.8 kB / 1.334 GB, free: 9.219 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.3223, allocations: 102.3 kB / 1.334 GB, free: 9.113 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3225, allocations: 342.8 kB / 1.335 GB, free: 8.77 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000323/0.3228, allocations: 145.2 kB / 1.335 GB, free: 8.625 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004025/0.3232, allocations: 260.6 kB / 1.335 GB, free: 8.336 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006808/0.3239, allocations: 402 kB / 1.336 GB, free: 7.906 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3239, allocations: 3.938 kB / 1.336 GB, free: 7.902 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008913/0.3248, allocations: 497.2 kB / 1.336 GB, free: 7.41 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.3248, allocations: 7.938 kB / 1.336 GB, free: 7.402 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3248, allocations: 4 kB / 1.336 GB, free: 7.398 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.3248, allocations: 4 kB / 1.336 GB, free: 7.395 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003901/0.3252, allocations: 99.77 kB / 1.336 GB, free: 7.297 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.3252, allocations: 4 kB / 1.336 GB, free: 7.293 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.3255, allocations: 63.75 kB / 1.336 GB, free: 7.23 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.3256, allocations: 23.98 kB / 1.336 GB, free: 7.207 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.0001765/0.3257, allocations: 159.9 kB / 1.336 GB, free: 7.043 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.394e-05/0.3258, allocations: 31.75 kB / 1.336 GB, free: 7.012 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.779e-05/0.3259, allocations: 33.95 kB / 1.336 GB, free: 6.969 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.3259, allocations: 8 kB / 1.336 GB, free: 6.961 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3259, allocations: 0 / 1.336 GB, free: 6.961 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.3259, allocations: 0 / 1.336 GB, free: 6.961 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.3262, allocations: 245.1 kB / 1.337 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3262, allocations: 0 / 1.337 GB, free: 6.691 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004042/0.3266, allocations: 71.91 kB / 1.337 GB, free: 6.621 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.3266, allocations: 4 kB / 1.337 GB, free: 6.617 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/0.3267, allocations: 19.98 kB / 1.337 GB, free: 6.598 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.3267, allocations: 4 kB / 1.337 GB, free: 6.594 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3267, allocations: 0 / 1.337 GB, free: 6.594 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.3278, allocations: 0.5938 MB / 1.337 GB, free: 5.977 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.104e-05/0.3278, allocations: 31.75 kB / 1.337 GB, free: 5.945 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.202e-05/0.3279, allocations: 15.92 kB / 1.337 GB, free: 5.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.3281, allocations: 27.97 kB / 1.337 GB, free: 5.902 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.3282, allocations: 43.94 kB / 1.337 GB, free: 5.859 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.817e-05/0.3282, allocations: 11.98 kB / 1.338 GB, free: 5.848 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001226/0.3284, allocations: 135.1 kB / 1.338 GB, free: 5.715 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3284, allocations: 0 / 1.338 GB, free: 5.715 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003216/0.3287, allocations: 83.95 kB / 1.338 GB, free: 5.633 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.0001593/0.3288, allocations: 115.2 kB / 1.338 GB, free: 5.512 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007537/0.3296, allocations: 360.2 kB / 1.338 GB, free: 5.16 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3296, allocations: 0 / 1.338 GB, free: 5.16 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003743/0.33, allocations: 171.7 kB / 1.338 GB, free: 4.992 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.3303, allocations: 49.66 kB / 1.338 GB, free: 4.945 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.3315, allocations: 0.6499 MB / 1.339 GB, free: 4.262 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.3316, allocations: 160.2 kB / 1.339 GB, free: 4.078 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.3318, allocations: 39.42 kB / 1.339 GB, free: 4.039 MB / 1.029 GB Notification: Performance of SimCode: time 3.5e-07/0.3318, allocations: 7.938 kB / 1.339 GB, free: 4.031 MB / 1.029 GB Notification: Performance of Templates: time 0.00688/0.3386, allocations: 4.145 MB / 1.343 GB, free: 15.91 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,sinInpNoDel.y,movAve1.y,movAve2.y,movAve3.y,movAve4.y,sinInp50sDel.y,movAve6.y,movAve7.y,sinInp100sDel.y,movAve8.y,movAve9.y Variables in the result:movAve1.y,movAve2.y,movAve3.y,movAve4.y,movAve6.y,movAve7.y,movAve8.y,movAve9.y,sinInp100sDel.y,sinInp50sDel.y,sinInpNoDel.y,time [Calling sys.exit(0), Time elapsed: 11.299162748269737]