Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008912/0.0008912, allocations: 72.45 kB / 19.17 MB, free: 0.7344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 173.9 kB / 22.46 MB, free: 2.09 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9091/0.9091, allocations: 177.1 MB / 202.8 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.742/1.742, allocations: 377.8 MB / 0.6221 GB, free: 8.625 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 0.981 GB, free: 2.484 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.905e-05/2.083e-05, allocations: 10.22 kB / 0.981 GB, free: 2.473 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage): time 0.001519/0.00154, allocations: 1.029 MB / 0.982 GB, free: 1.445 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.002721, allocations: 1.143 MB / 0.9832 GB, free: 296 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.391e-05/0.002795, allocations: 0 / 0.9832 GB, free: 296 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 4.277e-05/0.002838, allocations: 19.73 kB / 0.9832 GB, free: 276 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 9.588e-05/0.002934, allocations: 47.52 kB / 0.9832 GB, free: 228 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004064/0.00334, allocations: 151.7 kB / 0.9834 GB, free: 76 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0002478/0.003588, allocations: 339 kB / 0.9837 GB, free: 15.74 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.003734, allocations: 40.45 kB / 0.9837 GB, free: 15.7 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002516/0.003986, allocations: 191.7 kB / 0.9839 GB, free: 15.52 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.004128, allocations: 123.6 kB / 0.984 GB, free: 15.39 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.839e-05/0.004166, allocations: 32 kB / 0.9841 GB, free: 15.36 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.004224, allocations: 32 kB / 0.9841 GB, free: 15.33 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 4.659e-05/0.00427, allocations: 79.77 kB / 0.9842 GB, free: 15.25 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.631e-05/0.004337, allocations: 95.77 kB / 0.9843 GB, free: 15.16 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004126/0.004749, allocations: 343 kB / 0.9846 GB, free: 14.82 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.004752, allocations: 0 / 0.9846 GB, free: 14.82 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.262e-06/0.004754, allocations: 8 kB / 0.9846 GB, free: 14.82 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.004759, allocations: 0 / 0.9846 GB, free: 14.82 MB / 0.948 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.0007462/0.005505, allocations: 0.556 MB / 0.9851 GB, free: 14.23 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.005549, allocations: 8.031 kB / 0.9851 GB, free: 14.22 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.592e-05/0.005605, allocations: 58.73 kB / 0.9852 GB, free: 14.15 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.005801, allocations: 68.69 kB / 0.9853 GB, free: 14.09 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.437e-05/0.005895, allocations: 142.8 kB / 0.9854 GB, free: 13.92 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002089/0.006104, allocations: 495.7 kB / 0.9859 GB, free: 13.32 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.277e-05/0.006147, allocations: 32.36 kB / 0.9859 GB, free: 13.29 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003258/0.006472, allocations: 263.1 kB / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.006486, allocations: 192 / 0.9861 GB, free: 13.02 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.006504, allocations: 8.375 kB / 0.9862 GB, free: 13.02 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.006513, allocations: 11.92 kB / 0.9862 GB, free: 13 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002651/0.006778, allocations: 179.8 kB / 0.9863 GB, free: 12.83 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007372/0.007515, allocations: 0.6909 MB / 0.987 GB, free: 12.09 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.007842, allocations: 199.7 kB / 0.9872 GB, free: 11.86 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.007992, allocations: 122.5 kB / 0.9873 GB, free: 11.73 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.008025, allocations: 15.94 kB / 0.9873 GB, free: 11.72 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000369/0.008394, allocations: 304.2 kB / 0.9876 GB, free: 11.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=48): time 1.523e-06/0.008396, allocations: 0 / 0.9876 GB, free: 11.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=48): time 0.0006615/0.009057, allocations: 0.4888 MB / 0.9881 GB, free: 10.91 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.366e-05/0.009111, allocations: 114.8 kB / 0.9882 GB, free: 10.77 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.009215, allocations: 180.1 kB / 0.9884 GB, free: 10.59 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.009241, allocations: 37.7 kB / 0.9884 GB, free: 10.54 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.392e-05/0.009295, allocations: 117.3 kB / 0.9885 GB, free: 10.43 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.826e-05/0.009383, allocations: 154.8 kB / 0.9887 GB, free: 10.27 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.169e-05/0.009475, allocations: 110.3 kB / 0.9888 GB, free: 10.16 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.009572, allocations: 342.8 kB / 0.9891 GB, free: 9.816 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.009755, allocations: 153.2 kB / 0.9893 GB, free: 9.668 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.009979, allocations: 248.7 kB / 0.9895 GB, free: 9.387 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003973/0.01038, allocations: 390.1 kB / 0.9899 GB, free: 8.969 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.01038, allocations: 4 kB / 0.9899 GB, free: 8.965 MB / 0.948 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005198/0.0109, allocations: 497.4 kB / 0.9903 GB, free: 8.473 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.01092, allocations: 8 kB / 0.9904 GB, free: 8.465 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.01092, allocations: 0 / 0.9904 GB, free: 8.465 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.01094, allocations: 11.94 kB / 0.9904 GB, free: 8.453 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.01113, allocations: 95.81 kB / 0.9905 GB, free: 8.359 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.01114, allocations: 11.94 kB / 0.9905 GB, free: 8.348 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.01127, allocations: 55.81 kB / 0.9905 GB, free: 8.293 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.01129, allocations: 20 kB / 0.9905 GB, free: 8.273 MB / 0.948 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.0001105/0.0114, allocations: 167.6 kB / 0.9907 GB, free: 8.098 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.01143, allocations: 27.81 kB / 0.9907 GB, free: 8.07 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.707e-05/0.01148, allocations: 33.97 kB / 0.9908 GB, free: 8.035 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.01148, allocations: 7.938 kB / 0.9908 GB, free: 8.027 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.01149, allocations: 0 / 0.9908 GB, free: 8.027 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.01149, allocations: 4.078 kB / 0.9908 GB, free: 8.023 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.0117, allocations: 284.4 kB / 0.991 GB, free: 7.703 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.0117, allocations: 3.984 kB / 0.991 GB, free: 7.699 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003479/0.01205, allocations: 75.84 kB / 0.9911 GB, free: 7.625 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.01205, allocations: 4 kB / 0.9911 GB, free: 7.621 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.01208, allocations: 11.98 kB / 0.9911 GB, free: 7.609 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.01208, allocations: 7.938 kB / 0.9911 GB, free: 7.602 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.01208, allocations: 0 / 0.9911 GB, free: 7.602 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006648/0.01275, allocations: 0.5917 MB / 0.9917 GB, free: 6.988 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.08e-05/0.01277, allocations: 27.75 kB / 0.9917 GB, free: 6.961 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.898e-05/0.0128, allocations: 15.98 kB / 0.9918 GB, free: 6.945 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.0129, allocations: 35.91 kB / 0.9918 GB, free: 6.91 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.481e-05/0.01299, allocations: 59.91 kB / 0.9919 GB, free: 6.852 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.01301, allocations: 12 kB / 0.9919 GB, free: 6.84 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.025e-05/0.01307, allocations: 125.2 kB / 0.992 GB, free: 6.719 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.01307, allocations: 0 / 0.992 GB, free: 6.719 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002059/0.01328, allocations: 80 kB / 0.9921 GB, free: 6.641 MB / 0.948 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.0008231/0.0141, allocations: 1.15 MB / 0.9932 GB, free: 5.453 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000438/0.01454, allocations: 371 kB / 0.9935 GB, free: 5.086 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01454, allocations: 0 / 0.9935 GB, free: 5.086 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.01476, allocations: 186.6 kB / 0.9937 GB, free: 4.906 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.01499, allocations: 40.27 kB / 0.9938 GB, free: 4.871 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/0.01759, allocations: 3.133 MB / 0.9968 GB, free: 1.574 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.837e-05/0.01768, allocations: 164.1 kB / 0.997 GB, free: 1.395 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0001001/0.01778, allocations: 34.97 kB / 0.997 GB, free: 1.359 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.0179, allocations: 96.41 kB / 0.9971 GB, free: 1.266 MB / 0.948 GB Notification: Performance of SimCode: time 7.11e-07/0.0179, allocations: 0 / 0.9971 GB, free: 1.266 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.04021, allocations: 7.464 MB / 1.004 GB, free: 10.02 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.824/6.865, allocations: 8.875 kB / 1.004 GB, free: 10.01 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_MovingAverage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.MovingAverage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.002065930515528]