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.001073/0.001073, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001127/0.001127, allocations: 195.1 kB / 16.14 MB, free: 6.656 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.372/1.372, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.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.581/2.581, allocations: 437 MB / 0.7099 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.89 kB / 0.8686 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6744/0.6756, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002349/0.678, allocations: 1.158 MB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001583/0.6796, allocations: 1.112 MB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.707e-05/0.6797, allocations: 3.938 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.401e-05/0.6798, allocations: 7.875 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.6799, allocations: 35.7 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.6803, allocations: 135.8 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002809/0.6806, allocations: 307.2 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.6808, allocations: 48.31 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.681, allocations: 127.7 kB / 1.019 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.6811, allocations: 139.4 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.828e-05/0.6812, allocations: 20 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.088e-05/0.6812, allocations: 16 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.209e-05/0.6813, allocations: 63.8 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.6815, allocations: 123.4 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003448/0.6818, allocations: 304.8 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.6818, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.042e-06/0.6818, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.6818, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 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.001281/0.6831, allocations: 0.6198 MB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.6832, allocations: 11.98 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.948e-05/0.6833, allocations: 36.56 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.6834, allocations: 192.9 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002496/0.6837, allocations: 272.2 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.6837, allocations: 24.38 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000478/0.6842, allocations: 266.3 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.6842, allocations: 3.938 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.6843, allocations: 8 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.6843, allocations: 4 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004106/0.6847, allocations: 179.8 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.6857, allocations: 0.7853 MB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004852/0.6862, allocations: 203.7 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.6865, allocations: 135.3 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.243e-05/0.6866, allocations: 11.98 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005831/0.6871, allocations: 307.6 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 3.526e-06/0.6872, allocations: 3.984 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001021/0.6882, allocations: 494.8 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.359e-05/0.6883, allocations: 118.7 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.6884, allocations: 179.4 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.6885, allocations: 41.69 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.06e-05/0.6885, allocations: 125.2 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.6886, allocations: 146 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.6888, allocations: 106.3 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.6889, allocations: 342.8 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.6893, allocations: 145.2 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003543/0.6896, allocations: 256.8 kB / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006208/0.6902, allocations: 390 kB / 1.025 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.6903, allocations: 4 kB / 1.025 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008174/0.6911, allocations: 485.4 kB / 1.026 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.6911, allocations: 11.94 kB / 1.026 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.6911, allocations: 160 / 1.026 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.6912, allocations: 8 kB / 1.026 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003864/0.6916, allocations: 91.83 kB / 1.026 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.6916, allocations: 15.97 kB / 1.026 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.6919, allocations: 59.66 kB / 1.026 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.6919, allocations: 20 kB / 1.026 GB, free: 8.805 MB / 0.7794 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.0001771/0.6921, allocations: 156.7 kB / 1.026 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.579e-05/0.6922, allocations: 31.64 kB / 1.026 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.583e-05/0.6922, allocations: 33.88 kB / 1.026 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.6923, allocations: 4 kB / 1.026 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.968e-06/0.6923, allocations: 4 kB / 1.026 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.6923, allocations: 7.984 kB / 1.026 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003532/0.6926, allocations: 361 kB / 1.027 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.6926, allocations: 4 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004108/0.6931, allocations: 75.89 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.6931, allocations: 3.938 kB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.6931, allocations: 11.98 kB / 1.027 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.6931, allocations: 4 kB / 1.027 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.6931, allocations: 0 / 1.027 GB, free: 8.062 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.6942, allocations: 0.5861 MB / 1.027 GB, free: 7.453 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.191e-05/0.6942, allocations: 100.8 kB / 1.027 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.539e-05/0.6943, allocations: 19.92 kB / 1.027 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.6945, allocations: 31.97 kB / 1.027 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.6947, allocations: 55.92 kB / 1.027 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/0.6947, allocations: 16 kB / 1.027 GB, free: 7.215 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.641e-05/0.6948, allocations: 129.1 kB / 1.028 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6948, allocations: 0 / 1.028 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003229/0.6951, allocations: 83.94 kB / 1.028 GB, free: 7.008 MB / 0.7794 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.0001616/0.6953, allocations: 123.4 kB / 1.028 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006891/0.696, allocations: 389.8 kB / 1.028 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.696, allocations: 192 / 1.028 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.6964, allocations: 199.8 kB / 1.028 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003193/0.6967, allocations: 43.86 kB / 1.028 GB, free: 6.262 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.6978, allocations: 0.7015 MB / 1.029 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.6981, allocations: 0.7725 MB / 1.03 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001605/0.6983, allocations: 34.97 kB / 1.03 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.6984, allocations: 39.42 kB / 1.03 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.6984, allocations: 0 / 1.03 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of Templates: time 0.006522/0.7049, allocations: 3.401 MB / 1.033 GB, free: 1.285 MB / 0.7794 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