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.001593/0.001593, allocations: 108.5 kB / 16.27 MB, free: 6.41 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.001766/0.001767, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.406/1.406, allocations: 222.9 MB / 240.9 MB, free: 15.25 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.448/2.448, allocations: 437 MB / 0.711 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 68.27 kB / 0.8699 GB, free: 2.18 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2744, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002347/0.2768, allocations: 1.107 MB / 1.019 GB, free: 9.512 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001404/0.2782, allocations: 1.109 MB / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.2784, allocations: 4 kB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 5.755e-05/0.2785, allocations: 23.67 kB / 1.02 GB, free: 8.363 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.2786, allocations: 39.58 kB / 1.02 GB, free: 8.324 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.2791, allocations: 155.7 kB / 1.02 GB, free: 8.172 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003336/0.2795, allocations: 315.2 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.2796, allocations: 60.28 kB / 1.021 GB, free: 7.801 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.2798, allocations: 127.6 kB / 1.021 GB, free: 7.676 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.2801, allocations: 159.3 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.67e-05/0.2801, allocations: 32 kB / 1.021 GB, free: 7.488 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.218e-05/0.2802, allocations: 28 kB / 1.021 GB, free: 7.461 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.706e-05/0.2803, allocations: 75.78 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.2804, allocations: 135.4 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003064/0.2807, allocations: 307.2 kB / 1.022 GB, free: 6.953 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2807, allocations: 0 / 1.022 GB, free: 6.953 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2807, allocations: 0 / 1.022 GB, free: 6.953 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.2808, allocations: 4 kB / 1.022 GB, free: 6.949 MB / 0.795 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.001284/0.282, allocations: 0.6236 MB / 1.022 GB, free: 6.277 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2821, allocations: 12.88 kB / 1.022 GB, free: 6.266 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.467e-05/0.2822, allocations: 40.56 kB / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.2823, allocations: 196.8 kB / 1.022 GB, free: 5.992 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/0.2826, allocations: 264.3 kB / 1.023 GB, free: 5.68 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.876e-05/0.2826, allocations: 32.38 kB / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000491/0.2831, allocations: 254.3 kB / 1.023 GB, free: 5.387 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.2832, allocations: 7.938 kB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.2832, allocations: 8 kB / 1.023 GB, free: 5.371 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2832, allocations: 12 kB / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.2837, allocations: 171.8 kB / 1.023 GB, free: 5.191 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.2848, allocations: 0.7775 MB / 1.024 GB, free: 4.355 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004866/0.2853, allocations: 211.7 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.2855, allocations: 131.8 kB / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.2856, allocations: 11.92 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005482/0.2861, allocations: 311.6 kB / 1.024 GB, free: 3.645 MB / 0.795 GB Notification: Performance of pre-optimization done (n=48): time 2.044e-06/0.2861, allocations: 0 / 1.024 GB, free: 3.645 MB / 0.795 GB Notification: Performance of matching and sorting (n=48): time 0.001015/0.2872, allocations: 487.5 kB / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.2872, allocations: 110.8 kB / 1.025 GB, free: 3.031 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.2874, allocations: 191.9 kB / 1.025 GB, free: 2.836 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.036e-05/0.2875, allocations: 37.7 kB / 1.025 GB, free: 2.793 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.832e-05/0.2875, allocations: 121.3 kB / 1.025 GB, free: 2.672 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.2877, allocations: 146 kB / 1.026 GB, free: 2.527 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.2878, allocations: 102.3 kB / 1.026 GB, free: 2.422 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2879, allocations: 338.8 kB / 1.026 GB, free: 2.082 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000309/0.2883, allocations: 149.2 kB / 1.026 GB, free: 1.934 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000356/0.2886, allocations: 256.8 kB / 1.026 GB, free: 1.648 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006181/0.2892, allocations: 402 kB / 1.027 GB, free: 1.219 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2893, allocations: 0 / 1.027 GB, free: 1.219 MB / 0.795 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008643/0.2901, allocations: 488.9 kB / 1.027 GB, free: 0.7344 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.2902, allocations: 14.59 kB / 1.027 GB, free: 0.7227 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.2902, allocations: 12.06 kB / 1.027 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.922e-05/0.2902, allocations: 4 kB / 1.027 GB, free: 0.707 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003724/0.2906, allocations: 99.81 kB / 1.027 GB, free: 0.6094 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.2906, allocations: 4 kB / 1.027 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.2909, allocations: 51.66 kB / 1.027 GB, free: 0.5547 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.2909, allocations: 20 kB / 1.027 GB, free: 0.5352 MB / 0.795 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.0001642/0.2911, allocations: 167.4 kB / 1.028 GB, free: 372 kB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.087e-05/0.2912, allocations: 31.66 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.347e-05/0.2912, allocations: 29.88 kB / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2912, allocations: 4 kB / 1.028 GB, free: 308 kB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.2913, allocations: 0 / 1.028 GB, free: 308 kB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.2913, allocations: 11.92 kB / 1.028 GB, free: 296 kB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.2916, allocations: 365 kB / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.2917, allocations: 0 / 1.028 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003974/0.2921, allocations: 71.91 kB / 1.028 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.2921, allocations: 7.938 kB / 1.028 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.181e-05/0.2921, allocations: 15.98 kB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.2921, allocations: 0 / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2921, allocations: 0 / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.2932, allocations: 0.5861 MB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.915e-05/0.2933, allocations: 104.9 kB / 1.029 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.2933, allocations: 15.86 kB / 1.029 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.2936, allocations: 31.97 kB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.739e-05/0.2937, allocations: 40.14 kB / 1.029 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.2937, allocations: 15.98 kB / 1.029 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.563e-05/0.2938, allocations: 133.2 kB / 1.029 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2938, allocations: 0 / 1.029 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00035/0.2942, allocations: 79.98 kB / 1.029 GB, free: 14.75 MB / 0.8106 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.0001688/0.2943, allocations: 120.5 kB / 1.029 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007862/0.2951, allocations: 400.5 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2951, allocations: 4 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.2955, allocations: 177.6 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.2958, allocations: 52.17 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.2971, allocations: 0.6491 MB / 1.03 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.2974, allocations: 0.7647 MB / 1.031 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.2976, allocations: 39.42 kB / 1.031 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.2976, allocations: 0 / 1.031 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of Templates: time 0.006614/0.3042, allocations: 3.956 MB / 1.035 GB, free: 8.555 MB / 0.8106 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/jenkins1/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