Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001373/0.001373, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.47/2.47, allocations: 461.9 MB / 0.7354 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 79.81 kB / 1.055 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7218/0.723, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart): time 0.002734/0.7257, allocations: 1.965 MB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008695/0.7266, allocations: 0.6505 MB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.57e-05/0.7267, allocations: 0 / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.742e-05/0.7268, allocations: 19.73 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.7269, allocations: 51.52 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.7273, allocations: 147.7 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002808/0.7276, allocations: 323.1 kB / 1.212 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.7277, allocations: 48.38 kB / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.7279, allocations: 127.6 kB / 1.212 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.7281, allocations: 151.4 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.736e-05/0.7281, allocations: 32 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.349e-05/0.7282, allocations: 28 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.227e-05/0.7282, allocations: 79.72 kB / 1.212 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.7284, allocations: 135.4 kB / 1.212 GB, free: 9.844 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002803/0.7286, allocations: 310.8 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.7287, allocations: 0 / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.323e-06/0.7287, allocations: 0 / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.7287, allocations: 0 / 1.212 GB, free: 9.543 MB / 0.9356 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.001149/0.7298, allocations: 0.6293 MB / 1.213 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.7299, allocations: 8.031 kB / 1.213 GB, free: 8.855 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.029e-05/0.7299, allocations: 28.66 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.7301, allocations: 200.8 kB / 1.213 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.7303, allocations: 264.3 kB / 1.214 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.7303, allocations: 24.38 kB / 1.214 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004583/0.7308, allocations: 269.8 kB / 1.214 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.7308, allocations: 3.906 kB / 1.214 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.868e-05/0.7309, allocations: 12 kB / 1.214 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.7309, allocations: 7.938 kB / 1.214 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003927/0.7313, allocations: 171.9 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009667/0.7322, allocations: 0.7854 MB / 1.215 GB, free: 6.941 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004544/0.7327, allocations: 207.7 kB / 1.215 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.7329, allocations: 130.5 kB / 1.215 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.733, allocations: 15.97 kB / 1.215 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004853/0.7335, allocations: 307.7 kB / 1.215 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 1.814e-06/0.7335, allocations: 0 / 1.215 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.0009277/0.7344, allocations: 486.7 kB / 1.216 GB, free: 5.758 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.7345, allocations: 118.8 kB / 1.216 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.7346, allocations: 183.4 kB / 1.216 GB, free: 5.426 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/0.7347, allocations: 41.69 kB / 1.216 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.342e-05/0.7347, allocations: 117.3 kB / 1.216 GB, free: 5.262 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.7349, allocations: 146 kB / 1.216 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.735, allocations: 106.3 kB / 1.217 GB, free: 5.008 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.7351, allocations: 338.8 kB / 1.217 GB, free: 4.668 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002821/0.7354, allocations: 149.2 kB / 1.217 GB, free: 4.523 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003297/0.7357, allocations: 256.7 kB / 1.217 GB, free: 4.234 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005859/0.7363, allocations: 390.1 kB / 1.218 GB, free: 3.816 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.7363, allocations: 3.938 kB / 1.218 GB, free: 3.812 MB / 0.9356 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007775/0.7371, allocations: 0.4891 MB / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.7371, allocations: 4 kB / 1.218 GB, free: 3.312 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.7371, allocations: 4 kB / 1.218 GB, free: 3.309 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.7372, allocations: 4 kB / 1.218 GB, free: 3.305 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000364/0.7375, allocations: 99.77 kB / 1.218 GB, free: 3.207 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.7376, allocations: 7.984 kB / 1.218 GB, free: 3.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.7378, allocations: 59.56 kB / 1.218 GB, free: 3.141 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.174e-05/0.7379, allocations: 20.7 kB / 1.218 GB, free: 3.121 MB / 0.9356 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.0001526/0.738, allocations: 163 kB / 1.218 GB, free: 2.957 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.633e-05/0.7381, allocations: 31.64 kB / 1.218 GB, free: 2.926 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.411e-05/0.7381, allocations: 29.88 kB / 1.219 GB, free: 2.898 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.7381, allocations: 8 kB / 1.219 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.7382, allocations: 0 / 1.219 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.7382, allocations: 4.047 kB / 1.219 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003154/0.7385, allocations: 353.2 kB / 1.219 GB, free: 2.492 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.7385, allocations: 4 kB / 1.219 GB, free: 2.488 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003797/0.7389, allocations: 75.83 kB / 1.219 GB, free: 2.414 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.7389, allocations: 4 kB / 1.219 GB, free: 2.41 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.7389, allocations: 15.98 kB / 1.219 GB, free: 2.395 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.7389, allocations: 4 kB / 1.219 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7389, allocations: 0 / 1.219 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009569/0.7399, allocations: 0.5861 MB / 1.22 GB, free: 1.777 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/0.74, allocations: 108.6 kB / 1.22 GB, free: 1.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.74, allocations: 11.98 kB / 1.22 GB, free: 1.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.7403, allocations: 31.97 kB / 1.22 GB, free: 1.609 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.333e-05/0.7404, allocations: 39.95 kB / 1.22 GB, free: 1.57 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.7404, allocations: 20.08 kB / 1.22 GB, free: 1.551 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.761e-05/0.7405, allocations: 121.2 kB / 1.22 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7405, allocations: 0 / 1.22 GB, free: 1.434 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003116/0.7408, allocations: 79.91 kB / 1.22 GB, free: 1.355 MB / 0.9356 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.000155/0.741, allocations: 128.2 kB / 1.22 GB, free: 1.223 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006579/0.7416, allocations: 387.3 kB / 1.22 GB, free: 0.8477 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.7416, allocations: 3.938 kB / 1.22 GB, free: 0.8438 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003279/0.742, allocations: 187.7 kB / 1.221 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.7423, allocations: 47.84 kB / 1.221 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001002/0.7433, allocations: 0.6278 MB / 1.221 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.7436, allocations: 0.7725 MB / 1.222 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.7437, allocations: 31.44 kB / 1.222 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of SimCode: time 2.8e-07/0.7437, allocations: 0 / 1.222 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of Templates: time 0.005467/0.7492, allocations: 3.983 MB / 1.226 GB, free: 11.16 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_nonZeroStart_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_nonZeroStart.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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