Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.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,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") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 197 kB / 16.53 MB, free: 6.664 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.54/1.54, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.712/2.712, allocations: 390.2 MB / 0.6646 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 68.08 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.962/0.9636, allocations: 140.4 MB / 0.9496 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.003382/0.967, allocations: 1.106 MB / 0.9507 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001623/0.9687, allocations: 1.104 MB / 0.9518 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.9688, allocations: 2.031 kB / 0.9518 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.827e-05/0.9689, allocations: 23.67 kB / 0.9518 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.969, allocations: 36.38 kB / 0.9518 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.9695, allocations: 146.7 kB / 0.952 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003732/0.9699, allocations: 332.7 kB / 0.9523 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.9702, allocations: 45.42 kB / 0.9523 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.9704, allocations: 135.8 kB / 0.9525 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002523/0.9706, allocations: 147.3 kB / 0.9526 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.222e-05/0.9707, allocations: 29.97 kB / 0.9526 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.391e-05/0.9708, allocations: 29.44 kB / 0.9527 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.574e-05/0.9709, allocations: 83.16 kB / 0.9527 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.9711, allocations: 133.8 kB / 0.9529 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00039/0.9715, allocations: 307.1 kB / 0.9532 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.9715, allocations: 3.938 kB / 0.9532 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.705e-06/0.9715, allocations: 1.062 kB / 0.9532 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.107e-05/0.9715, allocations: 0 / 0.9532 GB, free: 6.434 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.001511/0.9731, allocations: 0.6222 MB / 0.9538 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.865e-05/0.9731, allocations: 12.66 kB / 0.9538 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.9733, allocations: 30.09 kB / 0.9538 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.9735, allocations: 200.1 kB / 0.954 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000254/0.9737, allocations: 270.9 kB / 0.9543 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.48e-05/0.9738, allocations: 37.84 kB / 0.9543 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006049/0.9744, allocations: 261.5 kB / 0.9545 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.9745, allocations: 8.906 kB / 0.9545 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.9745, allocations: 6.219 kB / 0.9546 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.9745, allocations: 4.844 kB / 0.9546 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004677/0.975, allocations: 178.6 kB / 0.9547 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.9762, allocations: 0.7776 MB / 0.9555 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005252/0.9767, allocations: 209.6 kB / 0.9557 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.977, allocations: 127.3 kB / 0.9558 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-05/0.977, allocations: 15.08 kB / 0.9558 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006156/0.9777, allocations: 308.7 kB / 0.9561 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.833e-06/0.9777, allocations: 0 / 0.9561 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.001034/0.9787, allocations: 483.6 kB / 0.9566 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.9788, allocations: 119.3 kB / 0.9567 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.9789, allocations: 180.7 kB / 0.9569 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.979, allocations: 41.58 kB / 0.9569 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.334e-05/0.979, allocations: 125 kB / 0.957 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.9792, allocations: 148.4 kB / 0.9572 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001322/0.9793, allocations: 105 kB / 0.9573 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.14e-05/0.9794, allocations: 337.7 kB / 0.9576 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.9797, allocations: 148.5 kB / 0.9577 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003354/0.98, allocations: 251.3 kB / 0.958 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005463/0.9805, allocations: 402.4 kB / 0.9584 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.9806, allocations: 0 / 0.9584 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00079/0.9814, allocations: 487 kB / 0.9588 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.9814, allocations: 14.5 kB / 0.9588 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.9814, allocations: 3.125 kB / 0.9588 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.9814, allocations: 5 kB / 0.9588 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/0.9818, allocations: 94.2 kB / 0.9589 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.9818, allocations: 5.5 kB / 0.9589 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.9821, allocations: 61.64 kB / 0.959 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.7e-05/0.9821, allocations: 19.75 kB / 0.959 GB, free: 1.898 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.0001458/0.9823, allocations: 160.4 kB / 0.9592 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.201e-05/0.9823, allocations: 31.69 kB / 0.9592 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.707e-05/0.9824, allocations: 35.64 kB / 0.9592 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.597e-06/0.9824, allocations: 4.375 kB / 0.9592 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.9824, allocations: 1.188 kB / 0.9592 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.9824, allocations: 5.109 kB / 0.9592 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003098/0.9828, allocations: 352.8 kB / 0.9596 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.9828, allocations: 5 kB / 0.9596 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003758/0.9831, allocations: 79.23 kB / 0.9597 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.9832, allocations: 6.875 kB / 0.9597 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.9832, allocations: 16.36 kB / 0.9597 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.9832, allocations: 2.188 kB / 0.9597 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.9832, allocations: 1.125 kB / 0.9597 GB, free: 1.328 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009573/0.9842, allocations: 0.5744 MB / 0.9602 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.9842, allocations: 105.2 kB / 0.9603 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.881e-05/0.9843, allocations: 16.09 kB / 0.9604 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.9845, allocations: 35.48 kB / 0.9604 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.9846, allocations: 55.06 kB / 0.9604 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.9847, allocations: 23.23 kB / 0.9605 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.127e-05/0.9847, allocations: 121.8 kB / 0.9606 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9847, allocations: 0 / 0.9606 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003244/0.9851, allocations: 83.19 kB / 0.9607 GB, free: 0.707 MB / 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.0001749/0.9852, allocations: 123.6 kB / 0.9608 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007332/0.986, allocations: 421.3 kB / 0.9612 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.986, allocations: 0 / 0.9612 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000354/0.9864, allocations: 197.7 kB / 0.9614 GB, free: 352 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.9867, allocations: 45.56 kB / 0.9614 GB, free: 328 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.9878, allocations: 0.6153 MB / 0.962 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003636/0.9882, allocations: 0.7668 MB / 0.9628 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001525/0.9883, allocations: 44.19 kB / 0.9628 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001062/0.9884, allocations: 35.12 kB / 0.9628 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of SimCode: time 2.21e-07/0.9884, allocations: 0.9688 kB / 0.9628 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of Templates: time 0.007958/0.9964, allocations: 3.984 MB / 0.9667 GB, free: 13.2 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches