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.001079/0.001079, allocations: 99.27 kB / 16.02 MB, free: 76 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.001225/0.001225, allocations: 182.2 kB / 16.92 MB, free: 6.918 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.513/1.513, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.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.738/2.738, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003731/0.0003732, allocations: 12 kB / 0.8167 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8055/0.8059, allocations: 142.4 MB / 0.9557 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.002178/0.8082, allocations: 1.666 MB / 0.9574 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009585/0.8091, allocations: 0.6335 MB / 0.958 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.389e-05/0.8092, allocations: 5.281 kB / 0.958 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.574e-05/0.8092, allocations: 11.86 kB / 0.958 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.797e-05/0.8093, allocations: 33.42 kB / 0.958 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.8097, allocations: 145.4 kB / 0.9582 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.8099, allocations: 302.4 kB / 0.9584 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.8101, allocations: 47.66 kB / 0.9585 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.8102, allocations: 113.1 kB / 0.9586 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.8104, allocations: 138.7 kB / 0.9587 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.8104, allocations: 13.53 kB / 0.9587 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.209e-05/0.8104, allocations: 15.19 kB / 0.9588 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.115e-05/0.8105, allocations: 64.7 kB / 0.9588 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.78e-05/0.8106, allocations: 145.2 kB / 0.959 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.8108, allocations: 208.7 kB / 0.9592 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.8108, allocations: 4 kB / 0.9592 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.012e-06/0.8108, allocations: 0 / 0.9592 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.8108, allocations: 0 / 0.9592 GB, free: 5.141 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.0009792/0.8118, allocations: 0.6034 MB / 0.9598 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.8118, allocations: 9.625 kB / 0.9598 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.538e-05/0.8119, allocations: 29.16 kB / 0.9598 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.657e-05/0.812, allocations: 203.8 kB / 0.96 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/0.8122, allocations: 266.2 kB / 0.9602 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.089e-05/0.8122, allocations: 31.53 kB / 0.9603 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.8127, allocations: 273.6 kB / 0.9605 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.8127, allocations: 1.25 kB / 0.9605 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.8128, allocations: 6.594 kB / 0.9605 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.8128, allocations: 5.281 kB / 0.9605 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004484/0.8132, allocations: 192.6 kB / 0.9607 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009852/0.8142, allocations: 0.7852 MB / 0.9615 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000447/0.8147, allocations: 212.9 kB / 0.9617 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000248/0.8149, allocations: 137.2 kB / 0.9618 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.152e-05/0.815, allocations: 13.91 kB / 0.9618 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005197/0.8155, allocations: 327.5 kB / 0.9622 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=48): time 1.663e-06/0.8155, allocations: 0 / 0.9622 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=48): time 0.001062/0.8166, allocations: 0.493 MB / 0.9626 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.8167, allocations: 114.8 kB / 0.9627 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.8168, allocations: 179.8 kB / 0.9629 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.8168, allocations: 42.14 kB / 0.963 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.8169, allocations: 124.2 kB / 0.9631 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.95e-05/0.817, allocations: 149.1 kB / 0.9632 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.774e-05/0.8171, allocations: 57.16 kB / 0.9633 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.296e-05/0.8171, allocations: 346.5 kB / 0.9636 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/0.8175, allocations: 153.7 kB / 0.9637 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003606/0.8178, allocations: 256.6 kB / 0.964 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006193/0.8185, allocations: 409.8 kB / 0.9644 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.8185, allocations: 1.156 kB / 0.9644 GB, free: 0.9648 MB / 0.7169 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008693/0.8193, allocations: 0.4968 MB / 0.9649 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.8194, allocations: 7.312 kB / 0.9649 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.8194, allocations: 2.125 kB / 0.9649 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.8194, allocations: 5.219 kB / 0.9649 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.8198, allocations: 100.9 kB / 0.965 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.8198, allocations: 6.594 kB / 0.965 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.8201, allocations: 67.62 kB / 0.965 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.8201, allocations: 25.92 kB / 0.9651 GB, free: 0.6445 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.0001404/0.8203, allocations: 157.9 kB / 0.9652 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/0.8203, allocations: 29 kB / 0.9653 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.883e-05/0.8204, allocations: 33.77 kB / 0.9653 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.8204, allocations: 6.031 kB / 0.9653 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.8204, allocations: 0.75 kB / 0.9653 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.8205, allocations: 0.6562 kB / 0.9653 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003501/0.8208, allocations: 365.8 kB / 0.9656 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.8208, allocations: 0 / 0.9656 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004069/0.8212, allocations: 82.73 kB / 0.9657 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.8212, allocations: 2.062 kB / 0.9657 GB, free: 92 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.623e-05/0.8213, allocations: 17.02 kB / 0.9657 GB, free: 80 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.8213, allocations: 2.938 kB / 0.9657 GB, free: 80 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.8213, allocations: 0.9688 kB / 0.9657 GB, free: 80 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.8226, allocations: 0.5915 MB / 0.9663 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.116e-05/0.8227, allocations: 112.8 kB / 0.9664 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.655e-05/0.8227, allocations: 11.94 kB / 0.9664 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.823, allocations: 46.61 kB / 0.9665 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.8231, allocations: 37.33 kB / 0.9665 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.8231, allocations: 22.48 kB / 0.9665 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001122/0.8233, allocations: 125.9 kB / 0.9667 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8233, allocations: 0 / 0.9667 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003601/0.8236, allocations: 79.09 kB / 0.9667 GB, free: 15.46 MB / 0.7325 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.000213/0.8239, allocations: 125.4 kB / 0.9669 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009208/0.8248, allocations: 406.1 kB / 0.9672 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.8248, allocations: 1.156 kB / 0.9672 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004487/0.8253, allocations: 187.5 kB / 0.9674 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004263/0.8257, allocations: 49.89 kB / 0.9675 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.8271, allocations: 0.7508 MB / 0.9682 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003837/0.8275, allocations: 0.7658 MB / 0.9689 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.8276, allocations: 37.86 kB / 0.969 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.8276, allocations: 1.031 kB / 0.969 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of Templates: time 0.008272/0.8359, allocations: 3.906 MB / 0.9728 GB, free: 11.75 MB / 0.7325 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 -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) "" Variables in the reference:time,sinInpNoDel.y,movAve1.y,movAve2.y,movAve3.y,movAve4.y,sinInp50sDel.y,movAve6.y,movAve7.y,sinInp100sDel.y,movAve8.y,movAve9.y Variables in the result:movAve1.y,movAve2.y,movAve3.y,movAve4.y,movAve6.y,movAve7.y,movAve8.y,movAve9.y,sinInp100sDel.y,sinInp50sDel.y,sinInpNoDel.y,time