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.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_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.001147/0.001147, allocations: 110 kB / 16.41 MB, free: 6.477 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.001246/0.001246, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.349/2.349, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 63.91 kB / 0.9516 GB, free: 7.594 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.084/1.085, allocations: 140.4 MB / 1.089 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.MovingAverage_nonZeroStart): time 0.003219/1.088, allocations: 1.979 MB / 1.091 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00113/1.09, allocations: 0.6418 MB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.12e-05/1.09, allocations: 2.688 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.849e-05/1.09, allocations: 22.36 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000116/1.09, allocations: 41.48 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005015/1.09, allocations: 148.5 kB / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003832/1.091, allocations: 329 kB / 1.092 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/1.091, allocations: 42.12 kB / 1.092 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/1.091, allocations: 136.9 kB / 1.092 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/1.091, allocations: 147.6 kB / 1.092 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.049e-05/1.092, allocations: 29.91 kB / 1.092 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.528e-05/1.092, allocations: 30.12 kB / 1.092 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.962e-05/1.092, allocations: 76.38 kB / 1.092 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001305/1.092, allocations: 135.4 kB / 1.092 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004302/1.092, allocations: 315.8 kB / 1.093 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/1.092, allocations: 0 / 1.093 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.074e-06/1.092, allocations: 0.9375 kB / 1.093 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.835e-06/1.092, allocations: 0 / 1.093 GB, free: 3.254 MB / 0.8575 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.001257/1.094, allocations: 0.6191 MB / 1.093 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/1.094, allocations: 9.688 kB / 1.093 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.128e-05/1.094, allocations: 31.14 kB / 1.093 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/1.094, allocations: 200.8 kB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/1.094, allocations: 267.2 kB / 1.094 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.287e-05/1.094, allocations: 32.84 kB / 1.094 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005668/1.095, allocations: 263.7 kB / 1.094 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/1.095, allocations: 9.766 kB / 1.094 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/1.095, allocations: 7.766 kB / 1.094 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/1.095, allocations: 4.5 kB / 1.094 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004628/1.095, allocations: 177.6 kB / 1.094 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/1.096, allocations: 0.7746 MB / 1.095 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005902/1.097, allocations: 210.2 kB / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/1.097, allocations: 129.8 kB / 1.095 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.287e-05/1.097, allocations: 8.859 kB / 1.095 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007881/1.098, allocations: 318.3 kB / 1.096 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=48): time 2.345e-06/1.098, allocations: 1.062 kB / 1.096 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of matching and sorting (n=48): time 0.001373/1.1, allocations: 482.2 kB / 1.096 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/1.1, allocations: 121 kB / 1.096 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002649/1.1, allocations: 173.5 kB / 1.096 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.329e-05/1.1, allocations: 42.67 kB / 1.096 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/1.1, allocations: 120.8 kB / 1.096 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.000177/1.1, allocations: 146 kB / 1.097 GB, free: 432 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/1.101, allocations: 108.6 kB / 1.097 GB, free: 372 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001533/1.101, allocations: 339.3 kB / 1.097 GB, free: 40 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004405/1.101, allocations: 148.5 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005551/1.102, allocations: 255 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008693/1.103, allocations: 403 kB / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/1.103, allocations: 1.281 kB / 1.098 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001077/1.104, allocations: 489.1 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/1.104, allocations: 6.859 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/1.104, allocations: 3.125 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.794e-05/1.104, allocations: 9.656 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004577/1.104, allocations: 94.64 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/1.104, allocations: 6.312 kB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003151/1.105, allocations: 58.2 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/1.105, allocations: 24.25 kB / 1.098 GB, free: 15.33 MB / 0.8731 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.0002123/1.105, allocations: 161.8 kB / 1.099 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.455e-05/1.105, allocations: 33.16 kB / 1.099 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.803e-05/1.105, allocations: 32.72 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/1.105, allocations: 5.094 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-05/1.105, allocations: 1.406 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/1.105, allocations: 7.969 kB / 1.099 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005344/1.106, allocations: 347.3 kB / 1.099 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/1.106, allocations: 0.7812 kB / 1.099 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004314/1.106, allocations: 78.97 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/1.106, allocations: 2.281 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/1.106, allocations: 19.17 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/1.106, allocations: 3.281 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.155e-06/1.106, allocations: 0.7031 kB / 1.099 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/1.108, allocations: 0.5927 MB / 1.1 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/1.108, allocations: 110.6 kB / 1.1 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.316e-05/1.108, allocations: 16.72 kB / 1.1 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/1.108, allocations: 29.53 kB / 1.1 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/1.108, allocations: 37.28 kB / 1.1 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.186e-05/1.108, allocations: 17.28 kB / 1.1 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001303/1.108, allocations: 126.9 kB / 1.1 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/1.108, allocations: 4 kB / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004064/1.109, allocations: 79.75 kB / 1.1 GB, free: 14.31 MB / 0.8731 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.0002739/1.109, allocations: 119.9 kB / 1.1 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001003/1.11, allocations: 385.7 kB / 1.101 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/1.11, allocations: 4.781 kB / 1.101 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004999/1.111, allocations: 176.9 kB / 1.101 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/1.111, allocations: 45.12 kB / 1.101 GB, free: 14.02 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/1.112, allocations: 0.6383 MB / 1.101 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/1.113, allocations: 0.7643 MB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/1.113, allocations: 39.03 kB / 1.102 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of SimCode: time 3.91e-07/1.113, allocations: 0 / 1.102 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of Templates: time 0.009554/1.123, allocations: 3.986 MB / 1.106 GB, free: 12.54 MB / 0.8731 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