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.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,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.001461/0.001461, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002021/0.002021, allocations: 195.7 kB / 16.26 MB, free: 6.629 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.416/1.416, allocations: 222.9 MB / 239.9 MB, free: 4.52 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.654/2.654, allocations: 437 MB / 0.71 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002166/0.002166, allocations: 64.14 kB / 0.8687 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.697/0.6991, allocations: 151.6 MB / 1.017 GB, free: 2.836 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.002365/0.7016, allocations: 1.156 MB / 1.018 GB, free: 1.68 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.703, allocations: 1.104 MB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.898e-05/0.7031, allocations: 4 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.849e-05/0.7032, allocations: 11.86 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.7033, allocations: 31.7 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004719/0.7038, allocations: 135.8 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003312/0.7041, allocations: 319.2 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.7043, allocations: 52.3 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.7046, allocations: 135.6 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.7048, allocations: 155.3 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.517e-05/0.7048, allocations: 32 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.061e-05/0.7049, allocations: 28 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.997e-05/0.7049, allocations: 79.78 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.705, allocations: 135.4 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.7053, allocations: 304.9 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.148e-05/0.7053, allocations: 7.984 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.854e-06/0.7054, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.7054, allocations: 0 / 1.02 GB, free: 15.16 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.0012/0.7066, allocations: 0.6236 MB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.7066, allocations: 11.98 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.7068, allocations: 36.66 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.707, allocations: 204.7 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002848/0.7073, allocations: 268.3 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/0.7074, allocations: 32.28 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/0.7079, allocations: 250.3 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.7079, allocations: 15.94 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.7079, allocations: 4 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.7079, allocations: 4 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004106/0.7084, allocations: 179.8 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.7094, allocations: 0.7814 MB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.71, allocations: 207.7 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002521/0.7102, allocations: 135 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.838e-05/0.7103, allocations: 15.95 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005956/0.7109, allocations: 307.7 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 2.144e-06/0.7109, allocations: 0 / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.001048/0.7119, allocations: 490.8 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.712, allocations: 114.8 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.7122, allocations: 175.5 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.7122, allocations: 37.7 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.655e-05/0.7123, allocations: 129.2 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.7125, allocations: 146 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.7126, allocations: 102.3 kB / 1.024 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.7128, allocations: 342.8 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.7131, allocations: 149.2 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003893/0.7135, allocations: 256.7 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006412/0.7142, allocations: 394 kB / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.7142, allocations: 0 / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008483/0.715, allocations: 492.9 kB / 1.026 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.7151, allocations: 11.94 kB / 1.026 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.7151, allocations: 4 kB / 1.026 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.7151, allocations: 4 kB / 1.026 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004169/0.7155, allocations: 95.89 kB / 1.026 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.033e-05/0.7156, allocations: 11.94 kB / 1.026 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.7158, allocations: 55.64 kB / 1.026 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.684e-05/0.7159, allocations: 24 kB / 1.026 GB, free: 8.727 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.0001812/0.7161, allocations: 156.7 kB / 1.026 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.279e-05/0.7161, allocations: 39.59 kB / 1.026 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.195e-05/0.7162, allocations: 33.86 kB / 1.026 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.7162, allocations: 4 kB / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.7162, allocations: 0 / 1.026 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.7163, allocations: 7.984 kB / 1.026 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003523/0.7166, allocations: 357 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.7166, allocations: 4 kB / 1.027 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004088/0.717, allocations: 75.89 kB / 1.027 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.7171, allocations: 3.938 kB / 1.027 GB, free: 8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.357e-05/0.7171, allocations: 15.98 kB / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.7171, allocations: 0 / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.7171, allocations: 0 / 1.027 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.7182, allocations: 0.5822 MB / 1.027 GB, free: 7.379 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/0.7182, allocations: 104.7 kB / 1.028 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.7183, allocations: 19.92 kB / 1.028 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.7185, allocations: 28.06 kB / 1.028 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.7187, allocations: 59.92 kB / 1.028 GB, free: 7.152 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.7187, allocations: 19.98 kB / 1.028 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001031/0.7188, allocations: 125.2 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7188, allocations: 0 / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003243/0.7192, allocations: 79.94 kB / 1.028 GB, free: 6.934 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.0001802/0.7194, allocations: 128 kB / 1.028 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007965/0.7202, allocations: 411.3 kB / 1.028 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.7202, allocations: 0 / 1.028 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003972/0.7206, allocations: 203.7 kB / 1.029 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.7209, allocations: 36.55 kB / 1.029 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.7221, allocations: 0.6926 MB / 1.029 GB, free: 5.441 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.7224, allocations: 0.7648 MB / 1.03 GB, free: 4.652 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001762/0.7226, allocations: 39.14 kB / 1.03 GB, free: 4.617 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.7227, allocations: 39.38 kB / 1.03 GB, free: 4.578 MB / 0.7794 GB Notification: Performance of SimCode: time 3.6e-07/0.7227, allocations: 3.938 kB / 1.03 GB, free: 4.574 MB / 0.7794 GB Notification: Performance of Templates: time 0.007365/0.7301, allocations: 3.588 MB / 1.034 GB, free: 1.012 MB / 0.7794 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 -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/jenkins/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