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.001741/0.001741, allocations: 102.1 kB / 19.7 MB, free: 2.246 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.002097/0.002097, allocations: 222.5 kB / 23.01 MB, free: 5.086 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.18/3.18, allocations: 0.49 GB / 0.7958 GB, free: 33.28 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_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.001962/0.001962, allocations: 72.83 kB / 1.155 GB, free: 25.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3215, allocations: 176.1 MB / 1.327 GB, free: 1.414 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003942/0.3254, allocations: 2.011 MB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001311/0.3267, allocations: 0.7401 MB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.85e-05/0.3268, allocations: 4 kB / 1.33 GB, free: 14.64 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 6.071e-05/0.3269, allocations: 27.67 kB / 1.33 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.327, allocations: 39.58 kB / 1.33 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005166/0.3275, allocations: 183.6 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003823/0.3279, allocations: 331.1 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.3281, allocations: 40.86 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.3283, allocations: 131.7 kB / 1.331 GB, free: 13.9 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.3285, allocations: 159.3 kB / 1.331 GB, free: 13.74 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.042e-05/0.3286, allocations: 35.94 kB / 1.331 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.015e-05/0.3286, allocations: 36 kB / 1.331 GB, free: 13.67 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.364e-05/0.3287, allocations: 79.78 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.3289, allocations: 131.4 kB / 1.331 GB, free: 13.46 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003675/0.3292, allocations: 318.7 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3292, allocations: 0 / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3292, allocations: 0 / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.3292, allocations: 0 / 1.331 GB, free: 13.15 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.001234/0.3305, allocations: 0.5691 MB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.3305, allocations: 8.031 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.3308, allocations: 64.72 kB / 1.332 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.3312, allocations: 186.2 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003847/0.3316, allocations: 499.6 kB / 1.333 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.813e-05/0.3316, allocations: 28.36 kB / 1.333 GB, free: 11.65 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005183/0.3321, allocations: 265.8 kB / 1.333 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.3322, allocations: 7.938 kB / 1.333 GB, free: 11.37 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.3322, allocations: 8 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3322, allocations: 7.938 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.3326, allocations: 183.8 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.3337, allocations: 0.7417 MB / 1.334 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004981/0.3342, allocations: 195.7 kB / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.3345, allocations: 126.5 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.3345, allocations: 11.98 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005392/0.3351, allocations: 323.8 kB / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 1.823e-06/0.3351, allocations: 0 / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001053/0.3361, allocations: 484.1 kB / 1.335 GB, free: 9.203 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/0.3362, allocations: 114.8 kB / 1.335 GB, free: 9.066 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.3364, allocations: 186.3 kB / 1.335 GB, free: 8.875 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.3364, allocations: 37.7 kB / 1.335 GB, free: 8.832 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.945e-05/0.3365, allocations: 121.3 kB / 1.335 GB, free: 8.711 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.3367, allocations: 154.8 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.3368, allocations: 102.3 kB / 1.336 GB, free: 8.453 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.337, allocations: 342.8 kB / 1.336 GB, free: 8.109 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003162/0.3373, allocations: 149.2 kB / 1.336 GB, free: 7.961 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.3377, allocations: 252.7 kB / 1.336 GB, free: 7.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006538/0.3383, allocations: 394.1 kB / 1.337 GB, free: 7.258 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.3383, allocations: 4 kB / 1.337 GB, free: 7.254 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008539/0.3392, allocations: 497.4 kB / 1.337 GB, free: 6.762 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3392, allocations: 11.98 kB / 1.337 GB, free: 6.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3392, allocations: 4 kB / 1.337 GB, free: 6.746 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.3392, allocations: 8 kB / 1.337 GB, free: 6.738 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.3396, allocations: 95.77 kB / 1.337 GB, free: 6.645 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.3396, allocations: 8 kB / 1.337 GB, free: 6.637 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002665/0.3399, allocations: 51.75 kB / 1.337 GB, free: 6.586 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-05/0.3399, allocations: 23.94 kB / 1.337 GB, free: 6.562 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.0001744/0.3401, allocations: 167.9 kB / 1.337 GB, free: 6.391 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.55e-05/0.3402, allocations: 35.75 kB / 1.338 GB, free: 6.355 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.698e-05/0.3402, allocations: 33.95 kB / 1.338 GB, free: 6.312 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.3403, allocations: 4 kB / 1.338 GB, free: 6.309 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3403, allocations: 0 / 1.338 GB, free: 6.309 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3403, allocations: 4.062 kB / 1.338 GB, free: 6.305 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003851/0.3406, allocations: 332.4 kB / 1.338 GB, free: 5.938 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3407, allocations: 0 / 1.338 GB, free: 5.938 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003992/0.341, allocations: 79.83 kB / 1.338 GB, free: 5.859 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.3411, allocations: 8 kB / 1.338 GB, free: 5.852 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.3411, allocations: 11.98 kB / 1.338 GB, free: 5.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.3411, allocations: 7.938 kB / 1.338 GB, free: 5.832 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3411, allocations: 0 / 1.338 GB, free: 5.832 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.3422, allocations: 0.5861 MB / 1.339 GB, free: 5.223 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.3422, allocations: 31.69 kB / 1.339 GB, free: 5.191 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.833e-05/0.3423, allocations: 12 kB / 1.339 GB, free: 5.18 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.3425, allocations: 31.95 kB / 1.339 GB, free: 5.148 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3426, allocations: 35.94 kB / 1.339 GB, free: 5.113 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.3426, allocations: 23.92 kB / 1.339 GB, free: 5.09 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001098/0.3427, allocations: 135.1 kB / 1.339 GB, free: 4.957 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3427, allocations: 0 / 1.339 GB, free: 4.957 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003262/0.3431, allocations: 76 kB / 1.339 GB, free: 4.883 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.0001553/0.3432, allocations: 119.2 kB / 1.339 GB, free: 4.758 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007453/0.344, allocations: 358.8 kB / 1.339 GB, free: 4.406 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.344, allocations: 4 kB / 1.339 GB, free: 4.402 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.3443, allocations: 175.7 kB / 1.34 GB, free: 4.23 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.3447, allocations: 43.33 kB / 1.34 GB, free: 4.191 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.3458, allocations: 0.6614 MB / 1.34 GB, free: 3.496 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004033/0.3463, allocations: 0.7687 MB / 1.341 GB, free: 2.695 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.3464, allocations: 39.42 kB / 1.341 GB, free: 2.656 MB / 1.029 GB Notification: Performance of SimCode: time 4.61e-07/0.3464, allocations: 4 kB / 1.341 GB, free: 2.652 MB / 1.029 GB Notification: Performance of Templates: time 0.006684/0.3531, allocations: 4.048 MB / 1.345 GB, free: 14.62 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.323488904017722]