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.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,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.001689/0.00169, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002174/0.002174, allocations: 197.8 kB / 16.14 MB, free: 6.719 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.576/1.576, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.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.619/2.619, allocations: 390.2 MB / 0.6642 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 63.91 kB / 0.8119 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8944/0.8959, allocations: 140.4 MB / 0.9489 GB, free: 8.973 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.002944/0.8989, allocations: 1.165 MB / 0.9501 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001823/0.9008, allocations: 1.101 MB / 0.9512 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.55e-05/0.9009, allocations: 2.531 kB / 0.9512 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.625e-05/0.901, allocations: 11.86 kB / 0.9512 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.9011, allocations: 36.55 kB / 0.9512 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.9016, allocations: 133.6 kB / 0.9513 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003938/0.902, allocations: 303 kB / 0.9516 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.9023, allocations: 43.83 kB / 0.9517 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002452/0.9025, allocations: 118.5 kB / 0.9518 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.9027, allocations: 147.6 kB / 0.9519 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.831e-05/0.9028, allocations: 17.16 kB / 0.9519 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.166e-05/0.9028, allocations: 16.69 kB / 0.9519 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.9029, allocations: 68.06 kB / 0.952 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.9031, allocations: 120 kB / 0.9521 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.9034, allocations: 300.7 kB / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.9034, allocations: 0 / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9035, allocations: 1.125 kB / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.9035, allocations: 0 / 0.9524 GB, free: 6.285 MB / 0.7169 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.001383/0.9049, allocations: 0.6306 MB / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.9049, allocations: 8.125 kB / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.905, allocations: 31.12 kB / 0.9531 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.9052, allocations: 203.1 kB / 0.9533 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002247/0.9054, allocations: 261.4 kB / 0.9535 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.811e-05/0.9055, allocations: 36.03 kB / 0.9535 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005519/0.9061, allocations: 256.2 kB / 0.9538 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.9061, allocations: 5.594 kB / 0.9538 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.9062, allocations: 14.91 kB / 0.9538 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.9062, allocations: 5.125 kB / 0.9538 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004701/0.9067, allocations: 174.2 kB / 0.954 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.9078, allocations: 0.7915 MB / 0.9548 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005327/0.9084, allocations: 206.4 kB / 0.9549 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002816/0.9087, allocations: 135.9 kB / 0.9551 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.507e-05/0.9087, allocations: 10.2 kB / 0.9551 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006929/0.9094, allocations: 310.2 kB / 0.9554 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 3.106e-06/0.9094, allocations: 4 kB / 0.9554 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.001159/0.9106, allocations: 488.6 kB / 0.9559 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.575e-05/0.9107, allocations: 113.9 kB / 0.956 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001938/0.9109, allocations: 175.8 kB / 0.9561 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.058e-05/0.9109, allocations: 38.08 kB / 0.9562 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.076e-05/0.911, allocations: 124 kB / 0.9563 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.9112, allocations: 153.3 kB / 0.9564 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.9114, allocations: 106 kB / 0.9565 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.9115, allocations: 337.6 kB / 0.9569 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.9118, allocations: 148.2 kB / 0.957 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004455/0.9123, allocations: 255.7 kB / 0.9572 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007081/0.913, allocations: 393.8 kB / 0.9576 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.913, allocations: 1.375 kB / 0.9576 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008599/0.9139, allocations: 489.9 kB / 0.9581 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.9139, allocations: 9.906 kB / 0.9581 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.9139, allocations: 3.406 kB / 0.9581 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.229e-05/0.914, allocations: 5.281 kB / 0.9581 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/0.9144, allocations: 98.39 kB / 0.9582 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/0.9144, allocations: 9.5 kB / 0.9582 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.9147, allocations: 56.67 kB / 0.9583 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.954e-05/0.9148, allocations: 20.09 kB / 0.9583 GB, free: 1.742 MB / 0.7169 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.0001734/0.9149, allocations: 155.8 kB / 0.9584 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.829e-05/0.915, allocations: 28.62 kB / 0.9585 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.67e-05/0.9151, allocations: 38.95 kB / 0.9585 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.9151, allocations: 4.781 kB / 0.9585 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/0.9151, allocations: 1.156 kB / 0.9585 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.9151, allocations: 9.016 kB / 0.9585 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004046/0.9155, allocations: 349 kB / 0.9588 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.9156, allocations: 1.094 kB / 0.9588 GB, free: 1.219 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.916, allocations: 71.23 kB / 0.9589 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.916, allocations: 10.25 kB / 0.9589 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.916, allocations: 17.27 kB / 0.9589 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.9161, allocations: 2.188 kB / 0.9589 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.9161, allocations: 9.125 kB / 0.9589 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.9173, allocations: 0.582 MB / 0.9595 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.888e-05/0.9174, allocations: 109.6 kB / 0.9596 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.264e-05/0.9174, allocations: 19.08 kB / 0.9596 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.9177, allocations: 32.5 kB / 0.9597 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.9178, allocations: 55.27 kB / 0.9597 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.91e-05/0.9179, allocations: 10.69 kB / 0.9597 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000119/0.918, allocations: 125.5 kB / 0.9598 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.91e-07/0.918, allocations: 0 / 0.9598 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003869/0.9184, allocations: 83.16 kB / 0.9599 GB, free: 0.5508 MB / 0.7169 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.0002433/0.9187, allocations: 125.8 kB / 0.96 GB, free: 456 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008545/0.9195, allocations: 391.5 kB / 0.9604 GB, free: 292 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.9195, allocations: 0 / 0.9604 GB, free: 292 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004392/0.92, allocations: 205.5 kB / 0.9606 GB, free: 204 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.9203, allocations: 43.14 kB / 0.9607 GB, free: 180 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.9217, allocations: 0.6933 MB / 0.9613 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.9221, allocations: 0.7654 MB / 0.9621 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001673/0.9223, allocations: 38.12 kB / 0.9621 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.9224, allocations: 31.5 kB / 0.9621 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of SimCode: time 4.5e-07/0.9224, allocations: 0 / 0.9621 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of Templates: time 0.008459/0.9309, allocations: 3.41 MB / 0.9655 GB, free: 13.27 MB / 0.7325 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 -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/jenkins/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