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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001487/0.001487, allocations: 115.5 kB / 16.37 MB, free: 6.004 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.001648/0.001648, allocations: 195.6 kB / 17.31 MB, free: 5.613 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.411/1.411, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.505/2.505, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 65.03 kB / 0.8707 GB, free: 1.445 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2895, allocations: 151.7 MB / 1.019 GB, free: 9.844 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002501/0.292, allocations: 1.095 MB / 1.02 GB, free: 8.746 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.2935, allocations: 1.117 MB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.418e-05/0.2936, allocations: 0 / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 5.062e-05/0.2937, allocations: 15.75 kB / 1.021 GB, free: 7.602 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.2938, allocations: 47.56 kB / 1.021 GB, free: 7.555 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004476/0.2943, allocations: 147.8 kB / 1.021 GB, free: 7.41 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003005/0.2946, allocations: 327.1 kB / 1.021 GB, free: 7.09 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.2948, allocations: 56.3 kB / 1.022 GB, free: 7.031 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.2949, allocations: 127.7 kB / 1.022 GB, free: 6.906 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001963/0.2951, allocations: 155.3 kB / 1.022 GB, free: 6.754 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.803e-05/0.2952, allocations: 32 kB / 1.022 GB, free: 6.723 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 4.072e-05/0.2952, allocations: 28 kB / 1.022 GB, free: 6.695 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.2954, allocations: 75.78 kB / 1.022 GB, free: 6.621 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.2955, allocations: 131.4 kB / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.2958, allocations: 314.9 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2958, allocations: 0 / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2958, allocations: 0 / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.2959, allocations: 4 kB / 1.022 GB, free: 6.18 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.001268/0.2971, allocations: 0.6314 MB / 1.023 GB, free: 5.5 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.2972, allocations: 11.98 kB / 1.023 GB, free: 5.488 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.258e-05/0.2972, allocations: 32.56 kB / 1.023 GB, free: 5.457 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.2974, allocations: 204.8 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/0.2976, allocations: 264.3 kB / 1.023 GB, free: 4.902 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.206e-05/0.2977, allocations: 28.38 kB / 1.024 GB, free: 4.875 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005088/0.2982, allocations: 258.3 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.2982, allocations: 3.938 kB / 1.024 GB, free: 4.605 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.2983, allocations: 12 kB / 1.024 GB, free: 4.594 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2983, allocations: 7.938 kB / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004918/0.2988, allocations: 172.5 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.2999, allocations: 0.7814 MB / 1.025 GB, free: 3.578 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000461/0.3004, allocations: 207.7 kB / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002445/0.3006, allocations: 135.6 kB / 1.025 GB, free: 3.207 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 4.436e-05/0.3007, allocations: 15.97 kB / 1.025 GB, free: 3.191 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006576/0.3013, allocations: 307.6 kB / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of pre-optimization done (n=48): time 1.814e-06/0.3014, allocations: 0 / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of matching and sorting (n=48): time 0.001195/0.3026, allocations: 492.2 kB / 1.026 GB, free: 2.383 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.3026, allocations: 110.8 kB / 1.026 GB, free: 2.25 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.3028, allocations: 187.9 kB / 1.026 GB, free: 2.055 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.3029, allocations: 41.69 kB / 1.026 GB, free: 2.008 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.419e-05/0.303, allocations: 117.3 kB / 1.026 GB, free: 1.891 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.3031, allocations: 146 kB / 1.026 GB, free: 1.746 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.3033, allocations: 106.3 kB / 1.026 GB, free: 1.637 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002153/0.3035, allocations: 338.8 kB / 1.027 GB, free: 1.297 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/0.3038, allocations: 149.2 kB / 1.027 GB, free: 1.148 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004551/0.3043, allocations: 252.7 kB / 1.027 GB, free: 0.8672 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006011/0.3049, allocations: 390.1 kB / 1.028 GB, free: 460 kB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3049, allocations: 0 / 1.028 GB, free: 460 kB / 0.795 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008309/0.3057, allocations: 497.5 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.3058, allocations: 7.938 kB / 1.028 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3058, allocations: 8 kB / 1.028 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.3058, allocations: 8 kB / 1.028 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003768/0.3062, allocations: 95.77 kB / 1.028 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.3062, allocations: 7.984 kB / 1.028 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.3065, allocations: 55.66 kB / 1.028 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.3066, allocations: 20.09 kB / 1.028 GB, free: 15.76 MB / 0.8106 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.0001814/0.3067, allocations: 167.4 kB / 1.028 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.426e-05/0.3068, allocations: 31.64 kB / 1.028 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.745e-05/0.3069, allocations: 29.88 kB / 1.028 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3069, allocations: 8 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.3069, allocations: 3.938 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.3069, allocations: 3.984 kB / 1.028 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005444/0.3075, allocations: 361 kB / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3075, allocations: 0 / 1.029 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004037/0.3079, allocations: 79.95 kB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.545e-06/0.3079, allocations: 11.94 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.308, allocations: 11.98 kB / 1.029 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.308, allocations: 4 kB / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.308, allocations: 0 / 1.029 GB, free: 15 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.309, allocations: 0.5861 MB / 1.029 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.3092, allocations: 100.8 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.3093, allocations: 15.92 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.3095, allocations: 31.97 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.3096, allocations: 51.94 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.3097, allocations: 15.98 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.33e-05/0.3098, allocations: 129.2 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3098, allocations: 0 / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003163/0.3101, allocations: 76 kB / 1.03 GB, free: 13.96 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.000171/0.3103, allocations: 128.5 kB / 1.03 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006689/0.311, allocations: 384.9 kB / 1.03 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.311, allocations: 0 / 1.03 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003382/0.3113, allocations: 191.7 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.3116, allocations: 43.91 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.3128, allocations: 0.6104 MB / 1.031 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.3132, allocations: 0.7763 MB / 1.032 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001354/0.3133, allocations: 34.97 kB / 1.032 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.3134, allocations: 39.42 kB / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of SimCode: time 2.7e-07/0.3134, allocations: 0 / 1.032 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of Templates: time 0.00716/0.3206, allocations: 3.888 MB / 1.036 GB, free: 7.844 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 -s cvode -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