Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001774/0.001774, allocations: 106.2 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 196.5 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.23/2.23, allocations: 390.3 MB / 0.665 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 66.55 kB / 0.8127 GB, free: 32.61 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3127, allocations: 140.4 MB / 0.9498 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003872/0.3167, allocations: 2.026 MB / 0.9518 GB, free: 7.18 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00128/0.318, allocations: 0.6428 MB / 0.9524 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.3182, allocations: 0 / 0.9524 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 7.455e-05/0.3183, allocations: 11.86 kB / 0.9524 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002052/0.3185, allocations: 35.7 kB / 0.9524 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005482/0.3191, allocations: 135.8 kB / 0.9526 GB, free: 6.352 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004188/0.3195, allocations: 319.1 kB / 0.9529 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.3197, allocations: 56.36 kB / 0.9529 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.32, allocations: 131.6 kB / 0.9531 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.3203, allocations: 147.4 kB / 0.9532 GB, free: 5.707 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.58e-05/0.3204, allocations: 31.94 kB / 0.9532 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.131e-05/0.3204, allocations: 28 kB / 0.9533 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.338e-05/0.3205, allocations: 87.72 kB / 0.9533 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.3207, allocations: 139.4 kB / 0.9535 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.3209, allocations: 211.8 kB / 0.9537 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3209, allocations: 0 / 0.9537 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3209, allocations: 0 / 0.9537 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.709e-05/0.321, allocations: 4 kB / 0.9537 GB, free: 5.215 MB / 0.7325 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.001412/0.3224, allocations: 0.6273 MB / 0.9543 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3224, allocations: 12.03 kB / 0.9543 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.3225, allocations: 32.56 kB / 0.9543 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.3227, allocations: 192.8 kB / 0.9545 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002466/0.323, allocations: 272.3 kB / 0.9548 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.614e-05/0.3231, allocations: 32.36 kB / 0.9548 GB, free: 3.918 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.3236, allocations: 257.9 kB / 0.955 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.556e-05/0.3237, allocations: 4 kB / 0.9551 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/0.3237, allocations: 4 kB / 0.9551 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.3237, allocations: 8 kB / 0.9551 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.3242, allocations: 185.7 kB / 0.9552 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.3254, allocations: 0.7775 MB / 0.956 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004948/0.3259, allocations: 203.7 kB / 0.9562 GB, free: 2.395 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002752/0.3262, allocations: 138.5 kB / 0.9563 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.46e-05/0.3262, allocations: 4 kB / 0.9563 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006055/0.3268, allocations: 311.6 kB / 0.9566 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=48): time 2.355e-06/0.3269, allocations: 4.219 kB / 0.9566 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.001088/0.3279, allocations: 488.8 kB / 0.9571 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/0.328, allocations: 118.8 kB / 0.9572 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.3282, allocations: 176.2 kB / 0.9574 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.3283, allocations: 41.7 kB / 0.9574 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.448e-05/0.3284, allocations: 121.3 kB / 0.9575 GB, free: 0.9453 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.3285, allocations: 146 kB / 0.9577 GB, free: 0.8008 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.3287, allocations: 110.3 kB / 0.9578 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002224/0.3289, allocations: 334.8 kB / 0.9581 GB, free: 360 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.3293, allocations: 145.2 kB / 0.9582 GB, free: 216 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003844/0.3297, allocations: 260.7 kB / 0.9585 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006469/0.3303, allocations: 394.1 kB / 0.9589 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.3303, allocations: 0 / 0.9589 GB, free: 15.5 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008925/0.3312, allocations: 489.4 kB / 0.9593 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3313, allocations: 11.94 kB / 0.9593 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3313, allocations: 4.094 kB / 0.9593 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/0.3313, allocations: 7.984 kB / 0.9594 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004081/0.3317, allocations: 99.83 kB / 0.9594 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/0.3318, allocations: 7.938 kB / 0.9595 GB, free: 14.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.3321, allocations: 55.66 kB / 0.9595 GB, free: 14.83 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.915e-05/0.3321, allocations: 23.98 kB / 0.9595 GB, free: 14.8 MB / 0.7481 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.0001795/0.3323, allocations: 163.4 kB / 0.9597 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.3323, allocations: 31.66 kB / 0.9597 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.007e-05/0.3324, allocations: 33.86 kB / 0.9597 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.3324, allocations: 4 kB / 0.9598 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.3324, allocations: 3.938 kB / 0.9598 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3325, allocations: 4 kB / 0.9598 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003809/0.3328, allocations: 353.1 kB / 0.9601 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3329, allocations: 0 / 0.9601 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/0.3333, allocations: 79.83 kB / 0.9602 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.3333, allocations: 0 / 0.9602 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/0.3333, allocations: 19.98 kB / 0.9602 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3333, allocations: 4.078 kB / 0.9602 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3334, allocations: 3.984 kB / 0.9602 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.3345, allocations: 0.5785 MB / 0.9608 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.988e-05/0.3345, allocations: 108.7 kB / 0.9609 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.006e-05/0.3346, allocations: 12 kB / 0.9609 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.3349, allocations: 32.02 kB / 0.9609 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.335, allocations: 43.95 kB / 0.961 GB, free: 13.24 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.335, allocations: 15.98 kB / 0.961 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 9.57e-05/0.3351, allocations: 128.3 kB / 0.9611 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.71e-07/0.3351, allocations: 0 / 0.9611 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003538/0.3355, allocations: 76 kB / 0.9612 GB, free: 13.03 MB / 0.7481 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.0002231/0.3357, allocations: 134.6 kB / 0.9613 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008423/0.3366, allocations: 406.5 kB / 0.9617 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3366, allocations: 0 / 0.9617 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003777/0.337, allocations: 187.7 kB / 0.9619 GB, free: 12.31 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.3373, allocations: 46.09 kB / 0.9619 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.3386, allocations: 0.7059 MB / 0.9626 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.3389, allocations: 0.7723 MB / 0.9633 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.3391, allocations: 31.44 kB / 0.9634 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of SimCode: time 3.116e-06/0.3391, allocations: 0 / 0.9634 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of Templates: time 0.007407/0.3465, allocations: 3.96 MB / 0.9672 GB, free: 6.754 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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