Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01295/0.01295, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.002304/0.002305, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.641/1.641, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.694/2.694, allocations: 437 MB / 0.7105 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 71.89 kB / 1.019 GB, free: 9.344 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9813/0.9825, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002251/0.9848, allocations: 1.123 MB / 1.168 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.9862, allocations: 1.106 MB / 1.169 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.595e-05/0.9862, allocations: 4 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.756e-05/0.9863, allocations: 15.75 kB / 1.169 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.9864, allocations: 47.52 kB / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004577/0.9869, allocations: 151.7 kB / 1.169 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.00033/0.9872, allocations: 323.2 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.9874, allocations: 44.39 kB / 1.169 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.9876, allocations: 139.5 kB / 1.17 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.9878, allocations: 155.4 kB / 1.17 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.978e-05/0.9879, allocations: 28 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.01e-05/0.9879, allocations: 32 kB / 1.17 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.164e-05/0.988, allocations: 71.8 kB / 1.17 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.9882, allocations: 135.4 kB / 1.17 GB, free: 484 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.9885, allocations: 319.3 kB / 1.17 GB, free: 168 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.9885, allocations: 4 kB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.253e-06/0.9885, allocations: 0 / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.113e-05/0.9885, allocations: 0 / 1.17 GB, free: 164 kB / 0.8887 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.001257/0.9898, allocations: 0.6273 MB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.9898, allocations: 16.88 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.266e-05/0.9899, allocations: 28.8 kB / 1.171 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.9901, allocations: 204.9 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002321/0.9903, allocations: 268.2 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.873e-05/0.9904, allocations: 40.33 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.9909, allocations: 254.3 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.9909, allocations: 7.938 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.9909, allocations: 11.94 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.9909, allocations: 8 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004354/0.9914, allocations: 171.9 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.9925, allocations: 0.7737 MB / 1.173 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004946/0.993, allocations: 208.3 kB / 1.173 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000258/0.9933, allocations: 126.5 kB / 1.173 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.9933, allocations: 7.984 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005539/0.9939, allocations: 319.8 kB / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=48): time 1.733e-06/0.9939, allocations: 0 / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=48): time 0.001039/0.9949, allocations: 493.9 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.966e-05/0.995, allocations: 110.8 kB / 1.174 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.9952, allocations: 180 kB / 1.174 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.9952, allocations: 37.7 kB / 1.174 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.12e-05/0.9953, allocations: 125.3 kB / 1.174 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.9954, allocations: 154.8 kB / 1.174 GB, free: 11.71 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.9956, allocations: 102.3 kB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.9958, allocations: 342.8 kB / 1.175 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003199/0.9961, allocations: 149.2 kB / 1.175 GB, free: 11.12 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003555/0.9964, allocations: 256.7 kB / 1.175 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006159/0.9971, allocations: 394 kB / 1.175 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.9971, allocations: 0 / 1.175 GB, free: 10.41 MB / 0.9044 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008309/0.9979, allocations: 497.5 kB / 1.176 GB, free: 9.918 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.9979, allocations: 11.94 kB / 1.176 GB, free: 9.906 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.998, allocations: 4 kB / 1.176 GB, free: 9.902 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.998, allocations: 4 kB / 1.176 GB, free: 9.898 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.9984, allocations: 95.83 kB / 1.176 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.9984, allocations: 7.984 kB / 1.176 GB, free: 9.797 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002601/0.9987, allocations: 59.69 kB / 1.176 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.445e-05/0.9987, allocations: 20 kB / 1.176 GB, free: 9.719 MB / 0.9044 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.0001653/0.9989, allocations: 159.5 kB / 1.176 GB, free: 9.555 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.913e-05/0.999, allocations: 35.75 kB / 1.176 GB, free: 9.52 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.241e-05/0.9991, allocations: 33.86 kB / 1.176 GB, free: 9.484 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.9991, allocations: 4 kB / 1.176 GB, free: 9.48 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.9991, allocations: 0 / 1.176 GB, free: 9.48 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.9991, allocations: 11.98 kB / 1.176 GB, free: 9.469 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003588/0.9995, allocations: 353.3 kB / 1.177 GB, free: 9.074 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.9995, allocations: 0 / 1.177 GB, free: 9.074 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004014/0.9999, allocations: 75.89 kB / 1.177 GB, free: 9 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.9999, allocations: 11.81 kB / 1.177 GB, free: 8.988 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.681e-05/0.9999, allocations: 15.98 kB / 1.177 GB, free: 8.973 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.9999, allocations: 3.938 kB / 1.177 GB, free: 8.969 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.9999, allocations: 0 / 1.177 GB, free: 8.969 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/1.001, allocations: 0.5815 MB / 1.177 GB, free: 8.363 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.607e-05/1.001, allocations: 112.9 kB / 1.177 GB, free: 8.234 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.994e-05/1.001, allocations: 11.92 kB / 1.177 GB, free: 8.223 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/1.001, allocations: 31.97 kB / 1.178 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/1.002, allocations: 59.97 kB / 1.178 GB, free: 8.133 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.435e-05/1.002, allocations: 19.98 kB / 1.178 GB, free: 8.113 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001097/1.002, allocations: 121.2 kB / 1.178 GB, free: 7.996 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/1.002, allocations: 0 / 1.178 GB, free: 7.996 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003236/1.002, allocations: 80 kB / 1.178 GB, free: 7.918 MB / 0.9044 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.0002568/1.002, allocations: 124 kB / 1.178 GB, free: 7.789 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009126/1.003, allocations: 382.6 kB / 1.178 GB, free: 7.414 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/1.003, allocations: 4 kB / 1.178 GB, free: 7.41 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003997/1.004, allocations: 192.5 kB / 1.178 GB, free: 7.223 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003837/1.004, allocations: 53.55 kB / 1.178 GB, free: 7.172 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/1.005, allocations: 0.6094 MB / 1.179 GB, free: 6.535 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/1.006, allocations: 0.7647 MB / 1.18 GB, free: 5.746 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001479/1.006, allocations: 38.97 kB / 1.18 GB, free: 5.707 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/1.006, allocations: 39.42 kB / 1.18 GB, free: 5.668 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/1.006, allocations: 0 / 1.18 GB, free: 5.668 MB / 0.9044 GB Notification: Performance of Templates: time 0.008194/1.014, allocations: 3.945 MB / 1.184 GB, free: 1.75 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches