Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_nonZeroStart,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.009037/0.009038, allocations: 171.1 kB / 16.26 MB, free: 6.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.533/1.533, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.121/3.121, allocations: 462.7 MB / 0.7364 GB, free: 344 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004455/0.0004457, allocations: 14.64 kB / 0.9028 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.4121, allocations: 159.6 MB / 1.059 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002575/0.4148, allocations: 1.675 MB / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001362/0.4162, allocations: 0.6465 MB / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.4164, allocations: 4 kB / 1.061 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.568e-05/0.4164, allocations: 7.875 kB / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.4167, allocations: 43.62 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000554/0.4172, allocations: 127.9 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004183/0.4177, allocations: 299.1 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.4179, allocations: 48.38 kB / 1.061 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.4182, allocations: 119.5 kB / 1.062 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002653/0.4185, allocations: 131.4 kB / 1.062 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.06e-05/0.4185, allocations: 16 kB / 1.062 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.267e-05/0.4186, allocations: 16 kB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.719e-05/0.4187, allocations: 59.78 kB / 1.062 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.4189, allocations: 153.1 kB / 1.062 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003578/0.4192, allocations: 279.2 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4192, allocations: 0 / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.425e-06/0.4193, allocations: 0 / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.3e-05/0.4193, allocations: 0 / 1.062 GB, free: 1.883 MB / 0.8106 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.001421/0.4207, allocations: 0.6082 MB / 1.063 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.4208, allocations: 8.031 kB / 1.063 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.4209, allocations: 28.66 kB / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.4211, allocations: 200.8 kB / 1.063 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002833/0.4214, allocations: 272.2 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.374e-05/0.4215, allocations: 28.38 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005955/0.4221, allocations: 265.9 kB / 1.064 GB, free: 344 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.4221, allocations: 4 kB / 1.064 GB, free: 340 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.4222, allocations: 4 kB / 1.064 GB, free: 336 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.4222, allocations: 8 kB / 1.064 GB, free: 328 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004885/0.4227, allocations: 193.4 kB / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.424, allocations: 0.7853 MB / 1.065 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005183/0.4245, allocations: 213.4 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002741/0.4248, allocations: 134.5 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.033e-05/0.4249, allocations: 19.91 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005801/0.4255, allocations: 315.6 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=48): time 2.594e-06/0.4255, allocations: 0 / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.001154/0.4266, allocations: 0.503 MB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.558e-05/0.4267, allocations: 114.8 kB / 1.066 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.427, allocations: 175.4 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.626e-05/0.427, allocations: 41.7 kB / 1.066 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.4271, allocations: 121.3 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.4273, allocations: 150 kB / 1.066 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.4274, allocations: 61.69 kB / 1.066 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.4276, allocations: 342.8 kB / 1.067 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.4279, allocations: 153.2 kB / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.4283, allocations: 252.8 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007032/0.4291, allocations: 410 kB / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.4291, allocations: 3.938 kB / 1.067 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009512/0.43, allocations: 0.4975 MB / 1.068 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.4301, allocations: 8 kB / 1.068 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.4301, allocations: 0 / 1.068 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.4301, allocations: 8 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004221/0.4305, allocations: 107.8 kB / 1.068 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.969e-05/0.4306, allocations: 11.94 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.4309, allocations: 63.66 kB / 1.068 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.022e-05/0.4309, allocations: 20 kB / 1.068 GB, free: 11.41 MB / 0.8262 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.0002101/0.4312, allocations: 167.4 kB / 1.068 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.4312, allocations: 31.56 kB / 1.068 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.758e-05/0.4313, allocations: 29.88 kB / 1.068 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.4313, allocations: 8 kB / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.4314, allocations: 0 / 1.068 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.4314, allocations: 7.922 kB / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004286/0.4318, allocations: 357.2 kB / 1.069 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.4318, allocations: 0 / 1.069 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004249/0.4322, allocations: 87.89 kB / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-05/0.4323, allocations: 0 / 1.069 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.305e-05/0.4323, allocations: 16.09 kB / 1.069 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.4323, allocations: 0 / 1.069 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4323, allocations: 4 kB / 1.069 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.4335, allocations: 0.5992 MB / 1.069 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.482e-05/0.4336, allocations: 116.7 kB / 1.069 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.109e-05/0.4337, allocations: 8 kB / 1.069 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.4339, allocations: 39.97 kB / 1.07 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.4341, allocations: 51.92 kB / 1.07 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.4341, allocations: 23.98 kB / 1.07 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001182/0.4342, allocations: 121.2 kB / 1.07 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4342, allocations: 0 / 1.07 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003535/0.4346, allocations: 80 kB / 1.07 GB, free: 9.586 MB / 0.8262 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.0002126/0.4348, allocations: 124.1 kB / 1.07 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008884/0.4357, allocations: 394.6 kB / 1.07 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4357, allocations: 0 / 1.07 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004355/0.4362, allocations: 207.7 kB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.4366, allocations: 52.03 kB / 1.071 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001314/0.4379, allocations: 0.7257 MB / 1.071 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.4383, allocations: 0.7648 MB / 1.072 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000175/0.4385, allocations: 38.95 kB / 1.072 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.4386, allocations: 31.44 kB / 1.072 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of SimCode: time 5.61e-07/0.4386, allocations: 0 / 1.072 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of Templates: time 0.007494/0.4461, allocations: 3.383 MB / 1.075 GB, free: 3.855 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches