/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 35 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 = 7362
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1331.2-1325_daily_bin851
RA = 202.819, Dec = -13.4282
tmin = 459907201, tmax = 460166401
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='730345', job_status='RUN', time_executed='2021-09-08 01:12:38.457795', time_epoch_executed='1631088758.46' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='851'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/730345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/730345/ft1_4FGL_J1331.2-1325_daily_bin851.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/730345/ft1_4FGL_J1331.2-1325_daily_bin851.fits outfile=/scratch/kocevski/730345/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin851.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=459907201.0 tmax=460166401.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 3.47
user 3.14
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.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/730345/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin851.fits evtable="EVENTS" outfile="/scratch/kocevski/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.fits" evtable="EVENTS" scfile=/scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits sctable="SC_DATA" outfile=/scratch/kocevski/730345/ltcube_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.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/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits
.....................!
real 17.90
user 17.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits sctable="SC_DATA" expcube=/scratch/kocevski/730345/ltcube_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.fits outfile=/scratch/kocevski/730345/expmap_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.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/730345/ltcube_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.fits
.....................!
real 196.37
user 188.71
sys 5.28

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/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.fits scfile=/scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits outfile=/scratch/kocevski/730345/cmap_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.fits scfile=/scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits outfile=/scratch/kocevski/730345/cmap_HighResolution_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/730345/Model_4FGL_J1331.2-1325_daily_bin851.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/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.fits.....................!
real 57.06
user 54.68
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.fits', '/scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits', expMap='/scratch/kocevski/730345/expmap_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.fits', expCube='/scratch/kocevski/730345/ltcube_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/730345/Model_4FGL_J1331.2-1325_daily_bin851.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/730345/ft1_filtered_4FGL_J1331.2-1325_daily_bin851.fits
Spacecraft file(s): /scratch/kocevski/730345/ft2_4FGL_J1331.2-1325_daily_bin851.fits
Exposure map: /scratch/kocevski/730345/expmap_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.fits
Exposure cube: /scratch/kocevski/730345/ltcube_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/730345/Model_4FGL_J1331.2-1325_daily_bin851.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) = 6837.84022517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0089       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11350E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.739       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7459       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8774       1.0000         .10000E-03   10000.    
    12 'norm      '    .12748E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.963       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.637       1.0000         .10000E-03   10000.    
    18 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.677       1.0000         .10000E-03   10000.    
    21 'norm      '    25.368       1.0000         .10000E-03   10000.    
    22 'norm      '    .17966       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73528       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2753       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=   6837.807     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2698 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0089        .32236       -.20628E-07    .24899E-03
   2  norm          .10000E-03    5.8867        .79642E-06** at limit **
   3  norm          .10000E-03    5.8582        .31614E-06** at limit **
   4  Prefactor     .10000E-03    27.179       -.72079E-05** at limit **
   5  norm          .10000E-03    2.8961       -.78518E-06** at limit **
   6  norm          .10000E-03    3.9852        .28557E-07** at limit **
   7  norm          .10000E-03    3.8578       -.45900E-07** at limit **
   8  Prefactor     10.740        10.393       -.67069E-06   -.48409E-04
   9  Prefactor     .10000E-03    7.6498       -.63638E-06** at limit **
  10  Prefactor     2.6847        37.625        .54122E-05   -.54747E-04
  11  norm          2.8776        1.9743       -.17799E-06   -.42405E-03
  12  norm          .10000E-03    2.2571       -.14658E-06** at limit **
  13  norm          15.488        10.326       -.96372E-06   -.63616E-04
  14  Prefactor     .10000E-03    7.2659        .42039E-06** at limit **
  15  Prefactor     25.938        33.773       -.23505E-04    .49527E-05
  16  norm          .10000E-03    28.013        .69893E-05** at limit **
  17  Prefactor     10.642        11.289        .20150E-05   -.48529E-05
  18  norm          .10000E-03    3.5488       -.67467E-07** at limit **
  19  Prefactor     6.4906        7.7434       -.58370E-06   -.15761E-03
  20  Prefactor     26.685        28.320        .46002E-05    .58736E-05
  21  norm          25.366        12.350        .31716E-06    .13504E-03
  22  norm          .19135        1.6735       -.81993E-06    .46042E-03
  23  Normalizat    .73547        .27387        .62957E-06    .13396E-03
  24  Prefactor     1.2751        .14154        .13068E-05    .25754E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00892
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7402
  Prefactor  = 0.0001
  Prefactor  = 2.68466
  norm       = 2.87755
  norm       = 0.0001
  norm       = 15.4881
  Prefactor  = 0.0001
  Prefactor  = 25.9375
  norm       = 0.0001
  Prefactor  = 10.6422
  norm       = 0.0001
  Prefactor  = 6.49061
  Prefactor  = 26.6848
  norm       = 25.3656
  norm       = 0.191353
  Normalizat = 0.735466
  Prefactor  = 1.27511
 **********
 **   18 **HESSE 
 **********

 FCN=   6837.807     FROM HESSE     STATUS=OK           399 CALLS     3097 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0089        .32247        .25529E-04   -1.5507    
   2  norm          .10000E-03    5.9511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8656        .26844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.9950        .16121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.8618        .15862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.740        10.372        .12226E-03   -1.5052    
   9  Prefactor     .10000E-03    7.7225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6847        35.842        .24568E-03   -1.5380    
  11  norm          2.8776        1.9740        .89350E-04   -1.5369    
  12  norm          .10000E-03    2.2577        .12042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.488        10.185        .10179E-03   -1.4921    
  14  Prefactor     .10000E-03    7.2834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.938        33.853        .78619E-04   -1.4689    
  16  norm          .10000E-03    28.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.642        11.268        .12285E-03   -1.5055    
  18  norm          .10000E-03    3.5914        .15207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4906        7.7187        .15752E-03   -1.5198    
  20  Prefactor     26.685        28.323        .77563E-04   -1.4674    
  21  norm          25.366        12.312        .79534E-04   -1.4700    
  22  norm          .19135        15.463        .20253E-02   -1.5620    
  23  Normalizat    .73547        .29515        .44220E-03   -1.0251    
  24  Prefactor     1.2751        .15299        .18861E-03   -.84050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83213e-09
Minuit parameter uncertainties:
  1  0.322468
  2  1.61676e-05
  3  7.55469e-06
  4  3.71859e-06
  5  0.000116198
  6  2.58282e-06
  7  1.93367e-06
  8  10.3741
  9  1.87518e-05
  10  19.6326
  11  1.97409
  12  2.06802e-05
  13  10.1858
  14  4.92897e-07
  15  33.8776
  16  6.88998e-06
  17  11.2707
  18  1.86486e-05
  19  7.71985
  20  28.3368
  21  12.3134
  22  3.44036
  23  0.295789
  24  0.153039
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.685e+00  1.963e+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:  1.275e+00  1.530e-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:  7.355e-01  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/730345/likelihoodResults_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.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): 102
logL (Free Index) = 6837.61041352
delta logL = 0.19641881297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6837.58544926
delta logL = 0.221383069949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93081       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0941       1.0000          .0000       10.000    
     3 'Normalizat'    .68417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2904       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.

 FCN=   6837.585     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91835        27.677        .12919E-01    .12865E-02
   2  Index         4.1005        3.3288        .13291        .15429E-03
   3  Normalizat    .68374        .50389E-01    .10315        .38152E-04
   4  Prefactor     1.2907        .27661E-01    .32779E-01   -.53604E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.918354
  Index      = 4.10051
  Normalizat = 0.683736
  Prefactor  = 1.29065
 **********
 **   18 **HESSE 
 **********

 FCN=   6837.585     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91835        99.462        .11446E-03   -1.5516    
   2  Index         4.1005        6.6285        .80827E-02   -.18088    
   3  Normalizat    .68374        .22204        .45726E-03   -1.0454    
   4  Prefactor     1.2907        .12093        .18757E-03   -.83585    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.33808e-09
Minuit parameter uncertainties:
  1  19.1462
  2  9.73477
  3  0.222328
  4  0.120956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/730345': 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): 102
logL (Free Index) = 6837.58544525
delta logL = 0.221387077932

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.184e-01  1.915e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  4.101e+00  9.735e+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:  1.291e+00  1.210e-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:  6.837e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/730345/cmap_HighResolution_459907201_460166401_4FGL_J1331.2-1325_daily_bin851.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-08 01:24:27.267172', job_id='730345', GAL2='1.29', fit_tolerance='1e-08', EG2='0.68', EG='0.74', time_epoch_completed='1631089467.27', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='2.21e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='851' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:24:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 730345: <4FGL_J1331.2-1325_daily_bin851> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin851> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:10:56 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:11:50 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:11:50 2021
Terminated at Wed Sep  8 01:24:29 2021
Results reported at Wed Sep  8 01:24:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin851 202.819 -13.4282 459907201 460166401 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 :                                   697.61 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            813 sec.

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

