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.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_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.001401/0.001401, allocations: 102.9 kB / 16.35 MB, free: 5.879 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.001596/0.001596, allocations: 192.6 kB / 17.29 MB, free: 5.52 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.609/1.609, allocations: 222.9 MB / 241 MB, free: 15.17 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.265/2.265, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 69.3 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3556, allocations: 140.4 MB / 0.9511 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003617/0.3593, allocations: 1.974 MB / 0.9531 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.3604, allocations: 0.6389 MB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.3e-05/0.3605, allocations: 4 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 6.345e-05/0.3606, allocations: 23.67 kB / 0.9537 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.3607, allocations: 43.58 kB / 0.9538 GB, free: 5.305 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.3612, allocations: 155.7 kB / 0.9539 GB, free: 5.152 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003073/0.3615, allocations: 327.1 kB / 0.9542 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.3617, allocations: 48.38 kB / 0.9543 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.3619, allocations: 131.6 kB / 0.9544 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.3621, allocations: 143.5 kB / 0.9545 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.561e-05/0.3622, allocations: 31.94 kB / 0.9546 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 4.055e-05/0.3622, allocations: 32 kB / 0.9546 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.877e-05/0.3623, allocations: 79.73 kB / 0.9547 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.3624, allocations: 139.3 kB / 0.9548 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002844/0.3627, allocations: 295 kB / 0.9551 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3627, allocations: 0 / 0.9551 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.874e-06/0.3627, allocations: 0 / 0.9551 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.3627, allocations: 4 kB / 0.9551 GB, free: 3.941 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.001203/0.3639, allocations: 0.6275 MB / 0.9557 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.364, allocations: 15.97 kB / 0.9557 GB, free: 3.254 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.654e-05/0.3641, allocations: 32.56 kB / 0.9557 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.3642, allocations: 192.8 kB / 0.9559 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000226/0.3645, allocations: 272.3 kB / 0.9562 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-05/0.3645, allocations: 28.38 kB / 0.9562 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004579/0.365, allocations: 261.9 kB / 0.9565 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.365, allocations: 4 kB / 0.9565 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.365, allocations: 7.938 kB / 0.9565 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.3651, allocations: 8 kB / 0.9565 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003996/0.3655, allocations: 181.7 kB / 0.9567 GB, free: 2.176 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.3665, allocations: 0.7776 MB / 0.9574 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/0.367, allocations: 211.7 kB / 0.9576 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/0.3672, allocations: 130.5 kB / 0.9577 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.148e-05/0.3673, allocations: 15.92 kB / 0.9578 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005275/0.3678, allocations: 307.6 kB / 0.958 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=48): time 1.713e-06/0.3678, allocations: 0 / 0.958 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.001026/0.3689, allocations: 489.1 kB / 0.9585 GB, free: 152 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.333e-05/0.369, allocations: 118.8 kB / 0.9586 GB, free: 8 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.3692, allocations: 176.2 kB / 0.9588 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.3692, allocations: 41.7 kB / 0.9588 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 6.594e-05/0.3693, allocations: 117.3 kB / 0.9589 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.3694, allocations: 146 kB / 0.9591 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.3696, allocations: 102.3 kB / 0.9592 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.3697, allocations: 338.8 kB / 0.9595 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.37, allocations: 153.2 kB / 0.9597 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003706/0.3704, allocations: 256.8 kB / 0.9599 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006149/0.371, allocations: 402 kB / 0.9603 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.371, allocations: 0 / 0.9603 GB, free: 14.2 MB / 0.7481 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.000802/0.3718, allocations: 493.4 kB / 0.9608 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.3719, allocations: 8 kB / 0.9608 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3719, allocations: 3.938 kB / 0.9608 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.3719, allocations: 8 kB / 0.9608 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.3723, allocations: 91.83 kB / 0.9609 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.3723, allocations: 11.94 kB / 0.9609 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002776/0.3726, allocations: 59.64 kB / 0.9609 GB, free: 13.53 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.3726, allocations: 24 kB / 0.961 GB, free: 13.51 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.0001579/0.3728, allocations: 159.4 kB / 0.9611 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/0.3729, allocations: 31.66 kB / 0.9611 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.485e-05/0.3729, allocations: 37.8 kB / 0.9612 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.373, allocations: 4 kB / 0.9612 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.373, allocations: 0 / 0.9612 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.373, allocations: 7.984 kB / 0.9612 GB, free: 13.27 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003657/0.3733, allocations: 349.2 kB / 0.9615 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3734, allocations: 8.062 kB / 0.9615 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003998/0.3738, allocations: 79.83 kB / 0.9616 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3738, allocations: 0 / 0.9616 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/0.3738, allocations: 15.98 kB / 0.9616 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.3738, allocations: 4 kB / 0.9616 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3738, allocations: 0 / 0.9616 GB, free: 12.77 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.3748, allocations: 0.5784 MB / 0.9622 GB, free: 12.16 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.3749, allocations: 104.7 kB / 0.9623 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.894e-05/0.375, allocations: 15.94 kB / 0.9623 GB, free: 12.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.3752, allocations: 31.95 kB / 0.9623 GB, free: 12 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.3754, allocations: 59.94 kB / 0.9624 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.3754, allocations: 19.98 kB / 0.9624 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.695e-05/0.3755, allocations: 124.3 kB / 0.9625 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3755, allocations: 0 / 0.9625 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003209/0.3758, allocations: 80 kB / 0.9626 GB, free: 11.72 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.0002027/0.376, allocations: 115.3 kB / 0.9627 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007764/0.3768, allocations: 394.6 kB / 0.9631 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3768, allocations: 0 / 0.9631 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000362/0.3772, allocations: 187.8 kB / 0.9633 GB, free: 11.03 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003477/0.3776, allocations: 54.34 kB / 0.9633 GB, free: 10.98 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.3787, allocations: 0.6068 MB / 0.9639 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.3791, allocations: 0.7723 MB / 0.9647 GB, free: 9.543 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001435/0.3792, allocations: 43.23 kB / 0.9647 GB, free: 9.504 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.3793, allocations: 39.61 kB / 0.9647 GB, free: 9.465 MB / 0.7481 GB Notification: Performance of SimCode: time 3.31e-07/0.3793, allocations: 0 / 0.9647 GB, free: 9.465 MB / 0.7481 GB Notification: Performance of Templates: time 0.007714/0.3871, allocations: 3.897 MB / 0.9685 GB, free: 5.594 MB / 0.7481 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 -s cvode -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/jenkins1/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