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.001511/0.001517, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001838/0.001838, allocations: 190.4 kB / 16.25 MB, free: 6.637 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.55/1.55, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.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.512/2.512, allocations: 390.2 MB / 0.6643 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 63.91 kB / 0.8121 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8296/0.831, allocations: 140.3 MB / 0.9491 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003241/0.8343, allocations: 2.018 MB / 0.9511 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008972/0.8352, allocations: 0.6414 MB / 0.9517 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.999e-05/0.8353, allocations: 2.75 kB / 0.9517 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.611e-05/0.8354, allocations: 11.88 kB / 0.9517 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.8355, allocations: 37.19 kB / 0.9518 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.8359, allocations: 138 kB / 0.9519 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003112/0.8362, allocations: 323.9 kB / 0.9522 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.8364, allocations: 53.77 kB / 0.9523 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.8366, allocations: 131.6 kB / 0.9524 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.8368, allocations: 151.1 kB / 0.9525 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.096e-05/0.8369, allocations: 29.38 kB / 0.9526 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.021e-05/0.8369, allocations: 34.25 kB / 0.9526 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.686e-05/0.837, allocations: 80 kB / 0.9527 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.8371, allocations: 136.5 kB / 0.9528 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.8373, allocations: 299.2 kB / 0.9531 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.8374, allocations: 0 / 0.9531 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.835e-06/0.8374, allocations: 0 / 0.9531 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.8374, allocations: 5.719 kB / 0.9531 GB, free: 6.059 MB / 0.7169 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.001136/0.8385, allocations: 0.6255 MB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.8386, allocations: 9.031 kB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.322e-05/0.8387, allocations: 30.19 kB / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.8388, allocations: 199 kB / 0.9539 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.8389, allocations: 266.1 kB / 0.9542 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/0.839, allocations: 38.86 kB / 0.9542 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004734/0.8395, allocations: 261 kB / 0.9545 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.8395, allocations: 1.156 kB / 0.9545 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.8395, allocations: 10.41 kB / 0.9545 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.8396, allocations: 4.594 kB / 0.9545 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004155/0.84, allocations: 175.4 kB / 0.9546 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.841, allocations: 0.784 MB / 0.9554 GB, free: 4 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004834/0.8415, allocations: 202.1 kB / 0.9556 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.8417, allocations: 135.1 kB / 0.9557 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.779e-05/0.8418, allocations: 6.844 kB / 0.9557 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005583/0.8424, allocations: 325.7 kB / 0.9561 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.924e-06/0.8424, allocations: 0 / 0.9561 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.0009319/0.8433, allocations: 483.3 kB / 0.9565 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.8434, allocations: 111.6 kB / 0.9566 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.8435, allocations: 179.4 kB / 0.9568 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.8436, allocations: 37.83 kB / 0.9568 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.8436, allocations: 135.9 kB / 0.957 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.514e-05/0.8437, allocations: 149.1 kB / 0.9571 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.8438, allocations: 105.2 kB / 0.9572 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.107e-05/0.8439, allocations: 337.9 kB / 0.9575 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002896/0.8442, allocations: 149.5 kB / 0.9577 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003327/0.8446, allocations: 250.9 kB / 0.9579 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005728/0.8451, allocations: 398.3 kB / 0.9583 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.8451, allocations: 1.125 kB / 0.9583 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008393/0.846, allocations: 494.5 kB / 0.9588 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.846, allocations: 7.875 kB / 0.9588 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.958e-06/0.846, allocations: 3.094 kB / 0.9588 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.8461, allocations: 5.688 kB / 0.9588 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/0.8465, allocations: 101.8 kB / 0.9589 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.8465, allocations: 6.062 kB / 0.9589 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002844/0.8468, allocations: 52.47 kB / 0.9589 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.8468, allocations: 24.42 kB / 0.9589 GB, free: 1.527 MB / 0.7169 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.0001469/0.847, allocations: 160.5 kB / 0.9591 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.105e-05/0.847, allocations: 28.25 kB / 0.9591 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.382e-05/0.8471, allocations: 33.77 kB / 0.9592 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.8471, allocations: 5.469 kB / 0.9592 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.8471, allocations: 1.5 kB / 0.9592 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.8471, allocations: 0.75 kB / 0.9592 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003163/0.8475, allocations: 360.9 kB / 0.9595 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.8475, allocations: 0.75 kB / 0.9595 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004121/0.8479, allocations: 79.23 kB / 0.9596 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.8479, allocations: 6.188 kB / 0.9596 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.8479, allocations: 17.33 kB / 0.9596 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.848, allocations: 2.312 kB / 0.9596 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.848, allocations: 4.875 kB / 0.9596 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.849, allocations: 0.5761 MB / 0.9602 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.226e-05/0.849, allocations: 113.1 kB / 0.9603 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.886e-05/0.8491, allocations: 7.406 kB / 0.9603 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002394/0.8493, allocations: 36.23 kB / 0.9603 GB, free: 500 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.8495, allocations: 54.59 kB / 0.9604 GB, free: 468 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.8495, allocations: 19.48 kB / 0.9604 GB, free: 460 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.984e-05/0.8496, allocations: 120.9 kB / 0.9605 GB, free: 364 kB / 0.7169 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8496, allocations: 0 / 0.9605 GB, free: 364 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003433/0.85, allocations: 83.84 kB / 0.9606 GB, free: 344 kB / 0.7169 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.0001782/0.8502, allocations: 123.2 kB / 0.9607 GB, free: 240 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007897/0.851, allocations: 412.2 kB / 0.9611 GB, free: 60 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.851, allocations: 3.938 kB / 0.9611 GB, free: 56 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004223/0.8514, allocations: 202.1 kB / 0.9613 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.8518, allocations: 46.92 kB / 0.9613 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.8529, allocations: 0.6836 MB / 0.962 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.8532, allocations: 0.7658 MB / 0.9628 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001639/0.8534, allocations: 40.45 kB / 0.9628 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.8535, allocations: 35.81 kB / 0.9628 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of SimCode: time 3.11e-07/0.8536, allocations: 0 / 0.9628 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.007703/0.8613, allocations: 3.586 MB / 0.9663 GB, free: 12.95 MB / 0.7325 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/jenkins/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