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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001673/0.001673, allocations: 102.5 kB / 16.35 MB, free: 5.879 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.001653/0.001654, allocations: 194.2 kB / 17.3 MB, free: 5.52 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.416/1.416, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 65.86 kB / 0.814 GB, free: 32.79 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3518, allocations: 140.4 MB / 0.9511 GB, free: 8.02 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.00425/0.3561, allocations: 1.966 MB / 0.9531 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3577, allocations: 0.6467 MB / 0.9537 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002228/0.3579, allocations: 4 kB / 0.9537 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.3581, allocations: 27.61 kB / 0.9537 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.3584, allocations: 39.58 kB / 0.9538 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007063/0.3591, allocations: 159.7 kB / 0.9539 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000567/0.3597, allocations: 319.1 kB / 0.9542 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002486/0.36, allocations: 52.38 kB / 0.9543 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003412/0.3603, allocations: 135.5 kB / 0.9544 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002595/0.3606, allocations: 143.5 kB / 0.9545 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.658e-05/0.3607, allocations: 28 kB / 0.9546 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.66e-05/0.3607, allocations: 28 kB / 0.9546 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.185e-05/0.3608, allocations: 79.73 kB / 0.9547 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.361, allocations: 139.3 kB / 0.9548 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.3614, allocations: 306.9 kB / 0.9551 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3614, allocations: 0 / 0.9551 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3614, allocations: 4 kB / 0.9551 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.302e-05/0.3614, allocations: 0 / 0.9551 GB, free: 3.945 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.001485/0.3629, allocations: 0.6236 MB / 0.9557 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.363, allocations: 8.031 kB / 0.9557 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.3631, allocations: 36.56 kB / 0.9557 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.3632, allocations: 192.8 kB / 0.9559 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/0.3635, allocations: 272.3 kB / 0.9562 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.247e-05/0.3635, allocations: 24.38 kB / 0.9562 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.3641, allocations: 273.8 kB / 0.9565 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.3641, allocations: 0 / 0.9565 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.188e-05/0.3641, allocations: 8 kB / 0.9565 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.3642, allocations: 7.938 kB / 0.9565 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004343/0.3646, allocations: 185.7 kB / 0.9567 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.3659, allocations: 0.7699 MB / 0.9574 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005095/0.3664, allocations: 207.8 kB / 0.9576 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.3667, allocations: 132 kB / 0.9577 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.838e-05/0.3668, allocations: 11.98 kB / 0.9577 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000539/0.3673, allocations: 323.6 kB / 0.9581 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=48): time 2.534e-06/0.3673, allocations: 0 / 0.9581 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.000995/0.3683, allocations: 479.7 kB / 0.9585 GB, free: 164 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.628e-05/0.3684, allocations: 118.8 kB / 0.9586 GB, free: 20 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.3686, allocations: 180.3 kB / 0.9588 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.5e-05/0.3687, allocations: 41.7 kB / 0.9588 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 7.508e-05/0.3687, allocations: 121.3 kB / 0.959 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.3689, allocations: 141.9 kB / 0.9591 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.3691, allocations: 110.3 kB / 0.9592 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3692, allocations: 338.8 kB / 0.9595 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003249/0.3696, allocations: 145.2 kB / 0.9597 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003983/0.37, allocations: 256.8 kB / 0.9599 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006283/0.3706, allocations: 394 kB / 0.9603 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.3706, allocations: 4 kB / 0.9603 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008543/0.3715, allocations: 489.4 kB / 0.9607 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.3715, allocations: 9.719 kB / 0.9608 GB, free: 13.72 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.3715, allocations: 4 kB / 0.9608 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.717e-05/0.3716, allocations: 11.94 kB / 0.9608 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.3719, allocations: 91.83 kB / 0.9609 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.833e-05/0.372, allocations: 8 kB / 0.9609 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003115/0.3723, allocations: 59.64 kB / 0.9609 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.3723, allocations: 20 kB / 0.9609 GB, free: 13.53 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.0001782/0.3725, allocations: 167.3 kB / 0.9611 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.858e-05/0.3726, allocations: 27.75 kB / 0.9611 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.208e-05/0.3727, allocations: 37.84 kB / 0.9612 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.3727, allocations: 8 kB / 0.9612 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.3727, allocations: 0 / 0.9612 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3727, allocations: 3.984 kB / 0.9612 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003794/0.3731, allocations: 349.2 kB / 0.9615 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.3731, allocations: 0 / 0.9615 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.3735, allocations: 87.89 kB / 0.9616 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.3735, allocations: 4 kB / 0.9616 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.3736, allocations: 15.98 kB / 0.9616 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.3736, allocations: 4 kB / 0.9616 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3736, allocations: 80 / 0.9616 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.3747, allocations: 0.5784 MB / 0.9622 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.156e-05/0.3748, allocations: 104.7 kB / 0.9623 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.43e-05/0.3748, allocations: 12 kB / 0.9623 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.3751, allocations: 35.89 kB / 0.9623 GB, free: 12.01 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.3752, allocations: 55.94 kB / 0.9624 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-05/0.3752, allocations: 19.98 kB / 0.9624 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.612e-05/0.3753, allocations: 128.3 kB / 0.9625 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3753, allocations: 0 / 0.9625 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003376/0.3757, allocations: 76 kB / 0.9626 GB, free: 11.73 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.0002205/0.3759, allocations: 119.3 kB / 0.9627 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000796/0.3767, allocations: 394.6 kB / 0.9631 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3767, allocations: 192 / 0.9631 GB, free: 11.23 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.3771, allocations: 188.9 kB / 0.9633 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.3775, allocations: 47.84 kB / 0.9633 GB, free: 11 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.3787, allocations: 0.6103 MB / 0.9639 GB, free: 10.35 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004324/0.3792, allocations: 0.7723 MB / 0.9647 GB, free: 9.551 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001491/0.3793, allocations: 38.97 kB / 0.9647 GB, free: 9.516 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.3794, allocations: 39.42 kB / 0.9647 GB, free: 9.477 MB / 0.7481 GB Notification: Performance of SimCode: time 4.01e-07/0.3794, allocations: 0 / 0.9647 GB, free: 9.477 MB / 0.7481 GB Notification: Performance of Templates: time 0.009499/0.3889, allocations: 3.899 MB / 0.9685 GB, free: 5.609 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 -s gbode -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) Reference file matches