Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009634/0.009634, allocations: 101.4 kB / 15.73 MB, free: 5.492 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.001827/0.001827, allocations: 188.4 kB / 16.67 MB, free: 5.422 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.489/1.489, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.322/2.322, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.001381, allocations: 67.91 kB / 0.9509 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.158/1.16, allocations: 140.4 MB / 1.088 GB, free: 5.758 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003162/1.163, allocations: 1.968 MB / 1.09 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001109/1.164, allocations: 0.6468 MB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.123e-05/1.164, allocations: 1.062 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.705e-05/1.164, allocations: 18.19 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001315/1.164, allocations: 42.11 kB / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004902/1.165, allocations: 153 kB / 1.091 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003683/1.165, allocations: 325.7 kB / 1.091 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/1.165, allocations: 48.48 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002122/1.166, allocations: 128.9 kB / 1.091 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/1.166, allocations: 151.7 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.219e-05/1.166, allocations: 29.75 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.486e-05/1.166, allocations: 29.44 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.494e-05/1.166, allocations: 76.95 kB / 1.092 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001477/1.166, allocations: 135.4 kB / 1.092 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003989/1.167, allocations: 307.7 kB / 1.092 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/1.167, allocations: 4.75 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.934e-06/1.167, allocations: 0 / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.045e-06/1.167, allocations: 0.75 kB / 1.092 GB, free: 3.238 MB / 0.8575 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.001258/1.168, allocations: 0.6272 MB / 1.093 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/1.168, allocations: 8.969 kB / 1.093 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.964e-05/1.168, allocations: 31.05 kB / 1.093 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/1.168, allocations: 201.7 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001965/1.168, allocations: 262.2 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.863e-05/1.169, allocations: 28.42 kB / 1.093 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005936/1.169, allocations: 268.7 kB / 1.093 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/1.169, allocations: 5.609 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/1.169, allocations: 14.89 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/1.169, allocations: 5.062 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004843/1.17, allocations: 174.1 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/1.171, allocations: 0.7819 MB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005518/1.171, allocations: 206.6 kB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/1.172, allocations: 134.8 kB / 1.095 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.566e-05/1.172, allocations: 11.56 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006917/1.173, allocations: 311.2 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 3.376e-06/1.173, allocations: 3.984 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.00128/1.174, allocations: 481.8 kB / 1.095 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/1.174, allocations: 120.7 kB / 1.095 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/1.174, allocations: 177.5 kB / 1.096 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/1.174, allocations: 38.92 kB / 1.096 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.711e-05/1.174, allocations: 121.3 kB / 1.096 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.000124/1.174, allocations: 145.9 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/1.175, allocations: 104.4 kB / 1.096 GB, free: 348 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001023/1.175, allocations: 339.5 kB / 1.096 GB, free: 16 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/1.175, allocations: 152.2 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004716/1.176, allocations: 254.7 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008205/1.176, allocations: 390.9 kB / 1.097 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.768e-06/1.176, allocations: 0 / 1.097 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001052/1.177, allocations: 497.8 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/1.177, allocations: 7.609 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/1.177, allocations: 3.156 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.219e-05/1.178, allocations: 5.656 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004507/1.178, allocations: 97.94 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.139e-05/1.178, allocations: 7.203 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003007/1.178, allocations: 53.3 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/1.178, allocations: 20.78 kB / 1.098 GB, free: 15.31 MB / 0.8731 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.0002163/1.179, allocations: 161.4 kB / 1.098 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.337e-05/1.179, allocations: 33.58 kB / 1.098 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.363e-05/1.179, allocations: 32.34 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/1.179, allocations: 6.328 kB / 1.098 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/1.179, allocations: 3.938 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/1.179, allocations: 3.891 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005037/1.179, allocations: 359.1 kB / 1.098 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/1.179, allocations: 1.094 kB / 1.098 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004208/1.18, allocations: 78.86 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/1.18, allocations: 2.844 kB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/1.18, allocations: 15.69 kB / 1.098 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/1.18, allocations: 2.891 kB / 1.098 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.18, allocations: 1.797 kB / 1.098 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/1.181, allocations: 0.5882 MB / 1.099 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.231e-05/1.181, allocations: 109.6 kB / 1.099 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.21e-05/1.181, allocations: 9.125 kB / 1.099 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/1.182, allocations: 32.98 kB / 1.099 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/1.182, allocations: 52.78 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-05/1.182, allocations: 21.58 kB / 1.099 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001146/1.182, allocations: 126.1 kB / 1.099 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.91e-07/1.182, allocations: 0.6562 kB / 1.099 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003839/1.182, allocations: 79.36 kB / 1.099 GB, free: 14.29 MB / 0.8731 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.0002217/1.183, allocations: 123.4 kB / 1.1 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009452/1.183, allocations: 390 kB / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.183, allocations: 0 / 1.1 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004905/1.184, allocations: 194.2 kB / 1.1 GB, free: 14 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/1.184, allocations: 44.7 kB / 1.1 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/1.186, allocations: 0.6101 MB / 1.101 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005476/1.186, allocations: 0.7681 MB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001898/1.186, allocations: 37.77 kB / 1.102 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/1.187, allocations: 37.14 kB / 1.102 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of SimCode: time 2.6e-07/1.187, allocations: 0.5 kB / 1.102 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of Templates: time 0.00979/1.196, allocations: 3.939 MB / 1.105 GB, free: 12.64 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches