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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001442/0.001442, allocations: 104.2 kB / 16.35 MB, free: 5.824 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.001591/0.001591, allocations: 192.4 kB / 17.29 MB, free: 5.48 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.3/2.3, allocations: 390.3 MB / 0.6655 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 63.75 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2864, allocations: 140.4 MB / 0.9511 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002389/0.2888, allocations: 1.11 MB / 0.9522 GB, free: 6.898 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.2902, allocations: 1.096 MB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.057e-05/0.2903, allocations: 4 kB / 0.9533 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 5.41e-05/0.2904, allocations: 23.67 kB / 0.9533 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.2905, allocations: 43.58 kB / 0.9534 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004689/0.291, allocations: 143.7 kB / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002959/0.2913, allocations: 335 kB / 0.9538 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.2914, allocations: 44.39 kB / 0.9539 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.2916, allocations: 139.5 kB / 0.954 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.2918, allocations: 147.4 kB / 0.9541 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.486e-05/0.2919, allocations: 28 kB / 0.9542 GB, free: 4.895 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 4.332e-05/0.2919, allocations: 32 kB / 0.9542 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.567e-05/0.292, allocations: 79.73 kB / 0.9543 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.2921, allocations: 139.3 kB / 0.9544 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002851/0.2924, allocations: 307 kB / 0.9547 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.2925, allocations: 4 kB / 0.9547 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.492e-06/0.2925, allocations: 0 / 0.9547 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.2925, allocations: 0 / 0.9547 GB, free: 4.344 MB / 0.7325 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.001313/0.2938, allocations: 0.6197 MB / 0.9553 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.2938, allocations: 16.02 kB / 0.9553 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.868e-05/0.2939, allocations: 32.66 kB / 0.9553 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.2941, allocations: 200.8 kB / 0.9555 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.2944, allocations: 260.3 kB / 0.9558 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.435e-05/0.2945, allocations: 40.27 kB / 0.9558 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.295, allocations: 254.3 kB / 0.9561 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.295, allocations: 7.938 kB / 0.9561 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.295, allocations: 8 kB / 0.9561 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.2951, allocations: 15.92 kB / 0.9561 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004235/0.2955, allocations: 185.7 kB / 0.9563 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0011/0.2966, allocations: 0.766 MB / 0.957 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.2971, allocations: 209 kB / 0.9572 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.2974, allocations: 138.4 kB / 0.9574 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.497e-05/0.2974, allocations: 8 kB / 0.9574 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005639/0.298, allocations: 311.7 kB / 0.9577 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=48): time 1.763e-06/0.298, allocations: 0 / 0.9577 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.000972/0.299, allocations: 491.5 kB / 0.9581 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/0.2991, allocations: 118.8 kB / 0.9582 GB, free: 420 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.2992, allocations: 168.4 kB / 0.9584 GB, free: 240 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.171e-05/0.2993, allocations: 41.7 kB / 0.9584 GB, free: 192 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.251e-05/0.2994, allocations: 121.2 kB / 0.9586 GB, free: 64 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.2995, allocations: 153.9 kB / 0.9587 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.2996, allocations: 98.34 kB / 0.9588 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.2998, allocations: 346.8 kB / 0.9591 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002853/0.3001, allocations: 149.2 kB / 0.9593 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.3004, allocations: 256.7 kB / 0.9595 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006184/0.3011, allocations: 386.1 kB / 0.9599 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3011, allocations: 3.938 kB / 0.9599 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008717/0.302, allocations: 488.9 kB / 0.9604 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.302, allocations: 11.94 kB / 0.9604 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.302, allocations: 4 kB / 0.9604 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.3021, allocations: 7.938 kB / 0.9604 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003956/0.3025, allocations: 99.83 kB / 0.9605 GB, free: 14 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.3025, allocations: 7.938 kB / 0.9605 GB, free: 14 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.3028, allocations: 55.66 kB / 0.9605 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.746e-05/0.3028, allocations: 23.98 kB / 0.9606 GB, free: 13.92 MB / 0.7481 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.0001809/0.303, allocations: 159.4 kB / 0.9607 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.977e-05/0.303, allocations: 31.66 kB / 0.9607 GB, free: 13.72 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.226e-05/0.3031, allocations: 33.86 kB / 0.9608 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3031, allocations: 4.062 kB / 0.9608 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.3031, allocations: 4 kB / 0.9608 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3032, allocations: 8 kB / 0.9608 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003795/0.3035, allocations: 361.2 kB / 0.9611 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3036, allocations: 0 / 0.9611 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/0.3039, allocations: 75.88 kB / 0.9612 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.304, allocations: 3.938 kB / 0.9612 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.947e-05/0.304, allocations: 19.98 kB / 0.9612 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.304, allocations: 0 / 0.9612 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.304, allocations: 0 / 0.9612 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.305, allocations: 0.5823 MB / 0.9618 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.777e-05/0.3051, allocations: 104.8 kB / 0.9619 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.85e-05/0.3052, allocations: 7.938 kB / 0.9619 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.3054, allocations: 39.89 kB / 0.9619 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.3055, allocations: 55.94 kB / 0.962 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.36e-05/0.3056, allocations: 19.98 kB / 0.962 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001091/0.3057, allocations: 124.3 kB / 0.9621 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3057, allocations: 0 / 0.9621 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000334/0.306, allocations: 80 kB / 0.9622 GB, free: 12.12 MB / 0.7481 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.0002268/0.3063, allocations: 123.2 kB / 0.9623 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007429/0.307, allocations: 388.4 kB / 0.9627 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.307, allocations: 4 kB / 0.9627 GB, free: 11.61 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003536/0.3074, allocations: 187.7 kB / 0.9629 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.3078, allocations: 53.06 kB / 0.9629 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.309, allocations: 0.6066 MB / 0.9635 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3094, allocations: 0.7723 MB / 0.9643 GB, free: 9.934 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001409/0.3095, allocations: 38.97 kB / 0.9643 GB, free: 9.898 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.3096, allocations: 35.44 kB / 0.9643 GB, free: 9.863 MB / 0.7481 GB Notification: Performance of SimCode: time 6.31e-07/0.3097, allocations: 0 / 0.9643 GB, free: 9.863 MB / 0.7481 GB Notification: Performance of Templates: time 0.007579/0.3172, allocations: 3.89 MB / 0.9681 GB, free: 6.004 MB / 0.7481 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 -s gbode -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/jenkins1/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