/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 160 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1331.2-1325_daily_bin944
RA = 202.819, Dec = -13.4282
tmin = 484012801, tmax = 484272001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='731474', job_status='RUN', time_executed='2021-09-08 01:19:04.696824', time_epoch_executed='1631089144.7' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731474

Creating custom pfile directory:
/scratch/kocevski/731474/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=484012801.0 && nMetStart<484272001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=484012801.0 && nMetStart<484272001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731474/ft1_4FGL_J1331.2-1325_daily_bin944.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=484012801.0 && nMetStart<484272001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731474/ft1_4FGL_J1331.2-1325_daily_bin944.fits outfile=/scratch/kocevski/731474/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin944.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=484012801.0 tmax=484272001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.84
user 2.62
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/731474/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin944.fits evtable="EVENTS" outfile="/scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.47
user 0.33
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/731474/ltcube_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits
.....................!
real 13.59
user 13.29
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/731474/ltcube_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits outfile=/scratch/kocevski/731474/expmap_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/731474/ltcube_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits
.....................!
real 153.54
user 149.65
sys 3.54

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits scfile=/scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits outfile=/scratch/kocevski/731474/cmap_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=202.819 yref=-13.4282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.69
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits scfile=/scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits outfile=/scratch/kocevski/731474/cmap_HighResolution_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=202.819 yref=-13.4282 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.50
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731474/Model_4FGL_J1331.2-1325_daily_bin944.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits.....................!
real 41.54
user 39.84
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits', '/scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits', expMap='/scratch/kocevski/731474/expmap_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits', expCube='/scratch/kocevski/731474/ltcube_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731474/Model_4FGL_J1331.2-1325_daily_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731474/ft1_filtered_4FGL_J1331.2-1325_daily_bin944.fits
Spacecraft file(s): /scratch/kocevski/731474/ft2_4FGL_J1331.2-1325_daily_bin944.fits
Exposure map: /scratch/kocevski/731474/expmap_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits
Exposure cube: /scratch/kocevski/731474/ltcube_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731474/Model_4FGL_J1331.2-1325_daily_bin944.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5815.83420613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5815.83096085

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70744       1.0000         .10000E-03   10000.    
     2 'norm      '    14.481       1.0000         .10000E-03   10000.    
     3 'norm      '    16.054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.940       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0689       1.0000         .10000E-03   10000.    
     6 'norm      '    40.793       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8180       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.436       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1441       1.0000         .10000E-03   10000.    
    13 'norm      '    16.323       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.162       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4742       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0633       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.716       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.616       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3687       1.0000         .10000E-03   10000.    
    22 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2115       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76808       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5815.831     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2710 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70751        .29558       -.58182E-07   -.28412E-03
   2  norm          14.482        10.481        .25406E-07   -.11874E-04
   3  norm          16.056        9.9028       -.21485E-07   -.92161E-05
   4  Prefactor     36.928        57.123       -.16332E-04   -.16044E-04
   5  norm          4.0689        3.1719        .65190E-07   -.13669E-04
   6  norm          40.798        16.064        .11420E-05   -.12558E-04
   7  norm          6.8181        8.2703       -.70083E-07   -.12666E-04
   8  Prefactor     .10000E-03    33.822        .42698E-05** at limit **
   9  Prefactor     3.4504        5.8391        .31783E-05    .10454E-05
  10  Prefactor     15.421        32.840       -.22379E-04   -.48244E-04
  11  norm          .10000E-03    .43277        .87329E-07** at limit **
  12  norm          4.1435        6.3905        .56996E-05   -.87164E-03
  13  norm          16.326        11.817        .14480E-05   -.67472E-04
  14  Prefactor     .10000E-03    21.855        .22634E-05** at limit **
  15  Prefactor     58.170        36.963        .67961E-05    .15582E-04
  16  norm          .10000E-03    16.714       -.87523E-06** at limit **
  17  Prefactor     7.4734        12.635       -.11752E-05   -.50061E-04
  18  norm          3.0636        4.4107       -.40509E-06   -.45022E-04
  19  Prefactor     12.716        7.0289        .62421E-06    .19107E-04
  20  Prefactor     27.617        39.479        .21786E-05   -.32397E-06
  21  norm          1.3706        1.8469       -.11224E-05   -.24366E-02
  22  norm          .10000E-03    1.4451        .10162E-06** at limit **
  23  Normalizat    1.2110        .25302        .43164E-06   -.12187E-03
  24  Prefactor     .76821        .12943       -.31353E-06   -.86644E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.70751
  norm       = 14.4822
  norm       = 16.0557
  Prefactor  = 36.9279
  norm       = 4.06894
  norm       = 40.7976
  norm       = 6.81812
  Prefactor  = 0.000100001
  Prefactor  = 3.45042
  Prefactor  = 15.4213
  norm       = 0.0001
  norm       = 4.14347
  norm       = 16.326
  Prefactor  = 0.0001
  Prefactor  = 58.1703
  norm       = 0.0001
  Prefactor  = 7.47337
  norm       = 3.06357
  Prefactor  = 12.7159
  Prefactor  = 27.6173
  norm       = 1.37061
  norm       = 0.0001
  Normalizat = 1.21102
  Prefactor  = 0.768212
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.831     FROM HESSE     STATUS=OK           413 CALLS     3123 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70751        .29478        .25769E-04   -1.5540    
   2  norm          14.482        10.485        .10525E-03   -1.4947    
   3  norm          16.056        9.8995        .99960E-04   -1.4906    
   4  Prefactor     36.928        57.135        .65941E-04   -1.4492    
   5  norm          4.0689        3.1768        .11536E-03   -1.5305    
   6  norm          40.798        16.095        .62761E-04   -1.4430    
   7  norm          6.8181        8.2678        .15366E-03   -1.5186    
   8  Prefactor     .10000E-03    35.268        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4504        5.8287        .21770E-03   -1.5336    
  10  Prefactor     15.421        33.084        .10194E-03   -1.4922    
  11  norm          .10000E-03    .58053        .97645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1435        6.4507        .76327E-03   -1.5301    
  13  norm          16.326        11.764        .99134E-04   -1.4900    
  14  Prefactor     .10000E-03    22.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     58.170        36.975        .52604E-04   -1.4181    
  16  norm          .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4734        12.609        .14670E-03   -1.5161    
  18  norm          3.0636        4.3985        .18448E-03   -1.5358    
  19  Prefactor     12.716        7.2883        .11233E-03   -1.4995    
  20  Prefactor     27.617        39.490        .76235E-04   -1.4656    
  21  norm          1.3706        6.4953        .18044E-02   -1.5474    
  22  norm          .10000E-03    1.5137        .17897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2110        .29423        .32794E-03   -.86263    
  24  Prefactor     .76821        .15105        .20953E-03   -1.0091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56861e-08
Minuit parameter uncertainties:
  1  0.294783
  2  10.4862
  3  9.90055
  4  57.2202
  5  3.1769
  6  16.0966
  7  8.26917
  8  0.000425928
  9  5.82968
  10  33.1231
  11  3.51675e-06
  12  6.45177
  13  11.7653
  14  2.95751e-05
  15  36.9896
  16  2.9698e-06
  17  12.6132
  18  4.39895
  19  7.28879
  20  39.5274
  21  5.96826
  22  4.16832e-07
  23  0.294636
  24  0.151134
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5815.83095761

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.542e+01  3.312e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  7.682e-01  1.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.211e+00  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 2.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731474/likelihoodResults_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.83084783
delta logL = 0.000109784483357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.83063499
delta logL = 0.000322623069223

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.102       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5545       1.0000          .0000       10.000    
     3 'Normalizat'    1.2125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76786       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5815.831     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.116        41.953        .99812E-04    .13244E-04
   2  Index         2.5532        2.0986        .81820E-02    .17394E-03
   3  Normalizat    1.2132        .30090        .32770E-03   -.26423E-03
   4  Prefactor     .76750        .15069        .20962E-03    .32304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1164
  Index      = 2.55321
  Normalizat = 1.21317
  Prefactor  = 0.767503
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.831     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.116        35.518        .99812E-04   -1.4905    
   2  Index         2.5532        1.7931        .16364E-02   -.51135    
   3  Normalizat    1.2132        .29650        .65541E-04   -.86197    
   4  Prefactor     .76750        .14962        .41924E-04   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63868e-09
Minuit parameter uncertainties:
  1  35.5648
  2  1.84791
  3  0.296908
  4  0.149694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731474': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.83063185
delta logL = 0.0003257593944

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.612e+01  3.556e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.553e+00  1.848e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  7.675e-01  1.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.213e+00  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
Ra Dec: 202.819 -13.428

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/731474/cmap_HighResolution_484012801_484272001_4FGL_J1331.2-1325_daily_bin944.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/731474

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-02', job_status='DONE', photon_flux_upper_limit='2.06e-07', time_completed='2021-09-08 01:27:57.649531', job_id='731474', GAL2='0.77', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631089677.65', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.26e-04', ts2='0.62', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='944' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:27:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 731474: <4FGL_J1331.2-1325_daily_bin944> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin944> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 01:15:24 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:16:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:16:11 2021
Terminated at Wed Sep  8 01:27:58 2021
Results reported at Wed Sep  8 01:27:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin944 202.819 -13.4282 484012801 484272001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1331.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   525.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            754 sec.

The output (if any) is above this job summary.

