Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_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_10_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_10_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.001994/0.001994, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001967/0.001967, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.506/1.506, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.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.908/2.908, allocations: 437 MB / 0.7104 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002114/0.002115, allocations: 63.91 kB / 0.8692 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7034/0.7055, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.003374/0.7089, allocations: 1.966 MB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.7101, allocations: 0.6544 MB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.956e-05/0.7102, allocations: 0 / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 6.392e-05/0.7103, allocations: 19.73 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.7104, allocations: 47.58 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005047/0.7109, allocations: 147.7 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000387/0.7113, allocations: 319.2 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.7116, allocations: 52.33 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002346/0.7118, allocations: 131.6 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002337/0.7121, allocations: 155.3 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.181e-05/0.7121, allocations: 28 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.769e-05/0.7122, allocations: 32 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.144e-05/0.7123, allocations: 83.78 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.7124, allocations: 127.4 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.7128, allocations: 305 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.7128, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.452e-06/0.7128, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.7128, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 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.001336/0.7141, allocations: 0.6237 MB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.7142, allocations: 8.031 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.345e-05/0.7143, allocations: 32.56 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001925/0.7145, allocations: 200.9 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002709/0.7147, allocations: 264.2 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.378e-05/0.7148, allocations: 32.38 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005609/0.7154, allocations: 265.8 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.7154, allocations: 0 / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.7155, allocations: 15.98 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.7155, allocations: 4 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004589/0.7159, allocations: 176.9 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.7172, allocations: 0.7775 MB / 1.024 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005284/0.7177, allocations: 199.7 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.718, allocations: 134.5 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 5.967e-05/0.7181, allocations: 11.98 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006103/0.7187, allocations: 307.6 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 4.017e-06/0.7187, allocations: 4 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001104/0.7198, allocations: 487.3 kB / 1.025 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.282e-05/0.7199, allocations: 122.7 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.7201, allocations: 183.4 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.7202, allocations: 37.7 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.627e-05/0.7203, allocations: 113.3 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001831/0.7204, allocations: 154 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001777/0.7206, allocations: 106.3 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002259/0.7209, allocations: 342.8 kB / 1.026 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.7212, allocations: 149.2 kB / 1.026 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004225/0.7217, allocations: 245.7 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007732/0.7224, allocations: 406 kB / 1.026 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.7225, allocations: 0 / 1.026 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009956/0.7235, allocations: 493 kB / 1.027 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.7235, allocations: 4 kB / 1.027 GB, free: 8.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.7235, allocations: 4 kB / 1.027 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.617e-05/0.7235, allocations: 8 kB / 1.027 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/0.724, allocations: 99.81 kB / 1.027 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.724, allocations: 8 kB / 1.027 GB, free: 8.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003025/0.7243, allocations: 55.66 kB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-05/0.7243, allocations: 20 kB / 1.027 GB, free: 8.059 MB / 0.7794 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.0002153/0.7246, allocations: 159.5 kB / 1.027 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.7246, allocations: 31.59 kB / 1.027 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.589e-05/0.7247, allocations: 33.88 kB / 1.027 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.7247, allocations: 8 kB / 1.027 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.7247, allocations: 0 / 1.027 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.7248, allocations: 3.984 kB / 1.027 GB, free: 7.816 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004878/0.7252, allocations: 369 kB / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.7253, allocations: 0 / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004027/0.7257, allocations: 75.83 kB / 1.028 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.7257, allocations: 4 kB / 1.028 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.509e-05/0.7257, allocations: 12 kB / 1.028 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.7257, allocations: 4 kB / 1.028 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7258, allocations: 4 kB / 1.028 GB, free: 7.309 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.7269, allocations: 0.5822 MB / 1.028 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.947e-05/0.727, allocations: 112.6 kB / 1.028 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.811e-05/0.7271, allocations: 12 kB / 1.028 GB, free: 6.559 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.7273, allocations: 31.97 kB / 1.029 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.7275, allocations: 55.92 kB / 1.029 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.147e-05/0.7275, allocations: 16 kB / 1.029 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001141/0.7276, allocations: 125.2 kB / 1.029 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.7e-07/0.7276, allocations: 192 / 1.029 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003493/0.728, allocations: 80 kB / 1.029 GB, free: 6.258 MB / 0.7794 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.0002234/0.7282, allocations: 131.4 kB / 1.029 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008936/0.7291, allocations: 400 kB / 1.029 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.7291, allocations: 0 / 1.029 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.7296, allocations: 208.4 kB / 1.029 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003515/0.7299, allocations: 49.22 kB / 1.03 GB, free: 5.48 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.7312, allocations: 0.608 MB / 1.03 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.7317, allocations: 0.7725 MB / 1.031 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001639/0.7319, allocations: 39.23 kB / 1.031 GB, free: 4.008 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.732, allocations: 39.42 kB / 1.031 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.732, allocations: 0 / 1.031 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of Templates: time 0.008856/0.7409, allocations: 3.993 MB / 1.035 GB, free: 4 kB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches