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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001425/0.001425, allocations: 98.83 kB / 16.35 MB, free: 5.824 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.001453/0.001453, allocations: 196.6 kB / 17.29 MB, free: 5.48 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.584/1.584, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.41/2.41, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 64.47 kB / 0.814 GB, free: 32.59 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3474, allocations: 140.4 MB / 0.9511 GB, free: 8.02 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage): time 0.003086/0.3506, allocations: 1.114 MB / 0.9522 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001727/0.3523, allocations: 1.104 MB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001872/0.3525, allocations: 4 kB / 0.9533 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 7.623e-05/0.3526, allocations: 19.69 kB / 0.9533 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002024/0.3529, allocations: 39.58 kB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006221/0.3535, allocations: 147.7 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005133/0.354, allocations: 331 kB / 0.9538 GB, free: 5.258 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.3543, allocations: 44.39 kB / 0.9539 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.3546, allocations: 135.6 kB / 0.954 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003396/0.355, allocations: 155.4 kB / 0.9541 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.394e-05/0.3551, allocations: 28 kB / 0.9542 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.425e-05/0.3551, allocations: 35.94 kB / 0.9542 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.374e-05/0.3552, allocations: 75.73 kB / 0.9543 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001654/0.3554, allocations: 135.3 kB / 0.9544 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005012/0.3559, allocations: 307 kB / 0.9547 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.495e-06/0.3559, allocations: 0 / 0.9547 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.358e-06/0.3559, allocations: 4 kB / 0.9547 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.026e-05/0.356, allocations: 0 / 0.9547 GB, free: 4.352 MB / 0.7325 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.001672/0.3577, allocations: 0.6275 MB / 0.9553 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3577, allocations: 16.03 kB / 0.9553 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.3578, allocations: 28.66 kB / 0.9554 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002081/0.3581, allocations: 200.8 kB / 0.9555 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002558/0.3583, allocations: 260.3 kB / 0.9558 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-05/0.3584, allocations: 40.27 kB / 0.9558 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005632/0.359, allocations: 250.3 kB / 0.9561 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.359, allocations: 11.88 kB / 0.9561 GB, free: 2.773 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.3591, allocations: 12 kB / 0.9561 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.3591, allocations: 8 kB / 0.9561 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004414/0.3595, allocations: 175.8 kB / 0.9563 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.3608, allocations: 0.7737 MB / 0.957 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005574/0.3614, allocations: 207.7 kB / 0.9572 GB, free: 1.52 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.3617, allocations: 138.5 kB / 0.9574 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.331e-05/0.3618, allocations: 7.938 kB / 0.9574 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006561/0.3624, allocations: 315.7 kB / 0.9577 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=48): time 3.086e-06/0.3624, allocations: 0 / 0.9577 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.001131/0.3636, allocations: 492.2 kB / 0.9581 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.344e-05/0.3637, allocations: 110.8 kB / 0.9582 GB, free: 432 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001913/0.3639, allocations: 172.4 kB / 0.9584 GB, free: 248 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.408e-05/0.3639, allocations: 37.7 kB / 0.9584 GB, free: 204 kB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.515e-05/0.364, allocations: 129.2 kB / 0.9586 GB, free: 68 kB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.3642, allocations: 150.1 kB / 0.9587 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.3643, allocations: 102.3 kB / 0.9588 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3645, allocations: 338.8 kB / 0.9591 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.3648, allocations: 149.2 kB / 0.9593 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003926/0.3652, allocations: 256.7 kB / 0.9595 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.3659, allocations: 394.1 kB / 0.9599 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.772e-06/0.3659, allocations: 0 / 0.9599 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001037/0.367, allocations: 489 kB / 0.9604 GB, free: 14.13 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.367, allocations: 15.88 kB / 0.9604 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.367, allocations: 8 kB / 0.9604 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.296e-05/0.3671, allocations: 8 kB / 0.9604 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004416/0.3675, allocations: 99.83 kB / 0.9605 GB, free: 14 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.501e-05/0.3676, allocations: 7.938 kB / 0.9605 GB, free: 13.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/0.3679, allocations: 51.66 kB / 0.9605 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.3679, allocations: 23.98 kB / 0.9606 GB, free: 13.92 MB / 0.7481 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.0001985/0.3681, allocations: 159.4 kB / 0.9607 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.71e-05/0.3682, allocations: 35.66 kB / 0.9607 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.401e-05/0.3683, allocations: 33.86 kB / 0.9608 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.3683, allocations: 4 kB / 0.9608 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.996e-06/0.3683, allocations: 0 / 0.9608 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3683, allocations: 4 kB / 0.9608 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004124/0.3687, allocations: 361.1 kB / 0.9611 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3687, allocations: 0 / 0.9611 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000395/0.3691, allocations: 75.89 kB / 0.9612 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/0.3692, allocations: 3.938 kB / 0.9612 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.3692, allocations: 12.08 kB / 0.9612 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.3692, allocations: 8 kB / 0.9612 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3692, allocations: 0 / 0.9612 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.3703, allocations: 0.5785 MB / 0.9618 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.55e-05/0.3704, allocations: 112.6 kB / 0.9619 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.849e-05/0.3705, allocations: 11.94 kB / 0.9619 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.3707, allocations: 35.95 kB / 0.9619 GB, free: 12.39 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/0.3709, allocations: 51.94 kB / 0.962 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.3709, allocations: 19.98 kB / 0.962 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001016/0.371, allocations: 124.3 kB / 0.9621 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/0.371, allocations: 0 / 0.9621 GB, free: 12.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003723/0.3714, allocations: 80 kB / 0.9622 GB, free: 12.12 MB / 0.7481 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.0002207/0.3716, allocations: 123.3 kB / 0.9623 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008365/0.3725, allocations: 384.1 kB / 0.9627 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3725, allocations: 0 / 0.9627 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003805/0.3729, allocations: 196.6 kB / 0.9629 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.3732, allocations: 56.16 kB / 0.9629 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.3745, allocations: 0.6038 MB / 0.9635 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.3749, allocations: 0.7646 MB / 0.9643 GB, free: 9.945 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001522/0.375, allocations: 38.97 kB / 0.9643 GB, free: 9.91 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.3752, allocations: 43.42 kB / 0.9643 GB, free: 9.867 MB / 0.7481 GB Notification: Performance of SimCode: time 7.12e-07/0.3752, allocations: 0 / 0.9643 GB, free: 9.867 MB / 0.7481 GB Notification: Performance of Templates: time 0.008239/0.3834, allocations: 3.892 MB / 0.9681 GB, free: 6.008 MB / 0.7481 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 -s cvode -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/jenkins1/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