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.001255/0.001255, allocations: 100.8 kB / 19.74 MB, free: 2.07 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.001382/0.001382, allocations: 217.8 kB / 23.04 MB, free: 4.863 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.412/1.412, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.178/3.178, allocations: 0.49 GB / 0.7959 GB, free: 35.53 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.002/0.002, allocations: 70.58 kB / 1.155 GB, free: 25.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3148, allocations: 176.1 MB / 1.327 GB, free: 0.8789 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003227/0.318, allocations: 1.921 MB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.3193, allocations: 0.6973 MB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.12e-05/0.3194, allocations: 4 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 5.274e-05/0.3194, allocations: 15.75 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.3195, allocations: 47.52 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004949/0.32, allocations: 175.6 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003775/0.3204, allocations: 323.1 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.3205, allocations: 40.84 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.3208, allocations: 151.5 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.321, allocations: 135.4 kB / 1.331 GB, free: 13.37 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.98e-05/0.321, allocations: 28 kB / 1.331 GB, free: 13.34 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.616e-05/0.3211, allocations: 36 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.579e-05/0.3212, allocations: 75.8 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.3213, allocations: 123.4 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.3216, allocations: 318.7 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3217, allocations: 4 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3217, allocations: 0 / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.3217, allocations: 0 / 1.331 GB, free: 12.79 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.001219/0.3229, allocations: 0.5598 MB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.3229, allocations: 8.031 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.3232, allocations: 68.7 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003542/0.3236, allocations: 182.2 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003633/0.324, allocations: 0.4918 MB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.298e-05/0.324, allocations: 28.38 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005077/0.3245, allocations: 269.7 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.3246, allocations: 7.953 kB / 1.333 GB, free: 11.01 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.3246, allocations: 8 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3246, allocations: 8 kB / 1.333 GB, free: 11 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004285/0.325, allocations: 171.8 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.326, allocations: 0.6487 MB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004849/0.3265, allocations: 199.7 kB / 1.334 GB, free: 9.918 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002529/0.3268, allocations: 126.5 kB / 1.334 GB, free: 9.785 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.227e-05/0.3268, allocations: 11.98 kB / 1.334 GB, free: 9.773 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005188/0.3273, allocations: 319.7 kB / 1.334 GB, free: 9.438 MB / 1.029 GB Notification: Performance of pre-optimization done (n=48): time 2.404e-06/0.3273, allocations: 0 / 1.334 GB, free: 9.438 MB / 1.029 GB Notification: Performance of matching and sorting (n=48): time 0.001078/0.3284, allocations: 494.3 kB / 1.335 GB, free: 8.953 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/0.3285, allocations: 118.8 kB / 1.335 GB, free: 8.812 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.3287, allocations: 178.3 kB / 1.335 GB, free: 8.629 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.93e-05/0.3287, allocations: 41.69 kB / 1.335 GB, free: 8.582 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.189e-05/0.3288, allocations: 121.3 kB / 1.335 GB, free: 8.461 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.329, allocations: 154.8 kB / 1.335 GB, free: 8.309 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.3291, allocations: 106.3 kB / 1.335 GB, free: 8.199 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3293, allocations: 342.8 kB / 1.336 GB, free: 7.855 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003024/0.3296, allocations: 145.2 kB / 1.336 GB, free: 7.711 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.3299, allocations: 252.8 kB / 1.336 GB, free: 7.43 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006582/0.3306, allocations: 394 kB / 1.336 GB, free: 7.008 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.3306, allocations: 7.938 kB / 1.336 GB, free: 7 MB / 1.029 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008776/0.3315, allocations: 493.2 kB / 1.337 GB, free: 6.512 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3315, allocations: 11.94 kB / 1.337 GB, free: 6.5 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.3315, allocations: 0 / 1.337 GB, free: 6.5 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.721e-05/0.3315, allocations: 15.94 kB / 1.337 GB, free: 6.484 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.332, allocations: 95.81 kB / 1.337 GB, free: 6.391 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.332, allocations: 8 kB / 1.337 GB, free: 6.383 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.3322, allocations: 51.75 kB / 1.337 GB, free: 6.332 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.3323, allocations: 20 kB / 1.337 GB, free: 6.312 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.0001872/0.3325, allocations: 167.9 kB / 1.337 GB, free: 6.141 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.581e-05/0.3325, allocations: 39.75 kB / 1.337 GB, free: 6.102 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.496e-05/0.3326, allocations: 29.97 kB / 1.337 GB, free: 6.062 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.3326, allocations: 4 kB / 1.337 GB, free: 6.059 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.3326, allocations: 4 kB / 1.337 GB, free: 6.055 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.629e-06/0.3326, allocations: 3.984 kB / 1.337 GB, free: 6.051 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00031/0.3329, allocations: 241.1 kB / 1.338 GB, free: 5.785 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3329, allocations: 0 / 1.338 GB, free: 5.785 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003984/0.3333, allocations: 71.89 kB / 1.338 GB, free: 5.715 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3333, allocations: 0 / 1.338 GB, free: 5.715 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.3334, allocations: 27.98 kB / 1.338 GB, free: 5.688 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3334, allocations: 0 / 1.338 GB, free: 5.688 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3334, allocations: 4 kB / 1.338 GB, free: 5.684 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.3345, allocations: 0.5899 MB / 1.338 GB, free: 5.07 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-05/0.3345, allocations: 31.75 kB / 1.338 GB, free: 5.039 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.769e-05/0.3346, allocations: 15.94 kB / 1.338 GB, free: 5.023 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.3348, allocations: 31.95 kB / 1.338 GB, free: 4.992 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.3349, allocations: 40.03 kB / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.3349, allocations: 23.97 kB / 1.338 GB, free: 4.93 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001123/0.3351, allocations: 127.1 kB / 1.338 GB, free: 4.805 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3351, allocations: 0 / 1.338 GB, free: 4.805 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003326/0.3354, allocations: 76 kB / 1.339 GB, free: 4.73 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.0001944/0.3356, allocations: 119.3 kB / 1.339 GB, free: 4.605 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007592/0.3363, allocations: 368.2 kB / 1.339 GB, free: 4.246 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3363, allocations: 0 / 1.339 GB, free: 4.246 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003542/0.3367, allocations: 167.8 kB / 1.339 GB, free: 4.082 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.337, allocations: 48.09 kB / 1.339 GB, free: 4.035 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.3383, allocations: 0.6641 MB / 1.34 GB, free: 3.336 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.3384, allocations: 160.2 kB / 1.34 GB, free: 3.152 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001446/0.3385, allocations: 39.42 kB / 1.34 GB, free: 3.113 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3385, allocations: 0 / 1.34 GB, free: 3.113 MB / 1.029 GB Notification: Performance of Templates: time 0.007038/0.3456, allocations: 4.14 MB / 1.344 GB, free: 15 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.004287764895707]