/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 94 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 = 7373
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1328
RA = 202.819, Dec = -13.4282
tmin = 583545601, tmax = 583804801
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='733197', job_status='RUN', time_executed='2021-09-08 01:24:39.774283', time_epoch_executed='1631089479.77' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733197

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733197/ft1_4FGL_J1331.2-1325_daily_bin1328.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733197/ft2_4FGL_J1331.2-1325_daily_bin1328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733197/ft1_4FGL_J1331.2-1325_daily_bin1328.fits outfile=/scratch/kocevski/733197/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1328.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=583545601.0 tmax=583804801.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.52
user 3.26
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733197/ft2_4FGL_J1331.2-1325_daily_bin1328.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/733197/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1328.fits evtable="EVENTS" outfile="/scratch/kocevski/733197/ft1_filtered_4FGL_J1331.2-1325_daily_bin1328.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733197/ft1_filtered_4FGL_J1331.2-1325_daily_bin1328.fits" evtable="EVENTS" scfile=/scratch/kocevski/733197/ft2_4FGL_J1331.2-1325_daily_bin1328.fits sctable="SC_DATA" outfile=/scratch/kocevski/733197/ltcube_583545601_583804801_4FGL_J1331.2-1325_daily_bin1328.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/733197/ft2_4FGL_J1331.2-1325_daily_bin1328.fits
.....................!
real 17.26
user 16.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733197/ft1_filtered_4FGL_J1331.2-1325_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/733197/ft2_4FGL_J1331.2-1325_daily_bin1328.fits sctable="SC_DATA" expcube=/scratch/kocevski/733197/ltcube_583545601_583804801_4FGL_J1331.2-1325_daily_bin1328.fits outfile=/scratch/kocevski/733197/expmap_583545601_583804801_4FGL_J1331.2-1325_daily_bin1328.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/733197/ltcube_583545601_583804801_4FGL_J1331.2-1325_daily_bin1328.fits
.....................!
real 194.07
user 187.92
sys 4.95

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/733197/ft1_filtered_4FGL_J1331.2-1325_daily_bin1328.fits scfile=/scratch/kocevski/733197/ft2_4FGL_J1331.2-1325_daily_bin1328.fits outfile=/scratch/kocevski/733197/cmap_583545601_583804801_4FGL_J1331.2-1325_daily_bin1328.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.60
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733197/ft1_filtered_4FGL_J1331.2-1325_daily_bin1328.fits scfile=/scratch/kocevski/733197/ft2_4FGL_J1331.2-1325_daily_bin1328.fits outfile=/scratch/kocevski/733197/cmap_HighResolution_583545601_583804801_4FGL_J1331.2-1325_daily_bin1328.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733197/ft1_filtered_4FGL_J1331.2-1325_daily_bin1328.fits evtable="EVENTS" scfile=/scratch/kocevski/733197/ft2_4FGL_J1331.2-1325_daily_bin1328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733197/Model_4FGL_J1331.2-1325_daily_bin1328.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/733197/ft1_filtered_4FGL_J1331.2-1325_daily_bin1328.fits.....................!
real 52.28
user 50.73
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9981       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1233       1.0000         .10000E-03   10000.    
     3 'norm      '    12.471       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4010       1.0000         .10000E-03   10000.    
     6 'norm      '    65.422       1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58193       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7364       1.0000         .10000E-03   10000.    
    12 'norm      '    11.974       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5744       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16403E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.168       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .18244E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .32274E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .65414       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0622       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=   6018.464     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2453 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9979        .43233       -.11847E-07   -.94451E-03
   2  norm          6.1196        9.1034        .40794E-06    .16413E-03
   3  norm          12.468        11.173        .14099E-06    .57734E-04
   4  Prefactor     .10001E-03    83.382       -.16060E-05** at limit **
   5  norm          3.4003        2.9467        .10721E-07    .54025E-05
   6  norm          65.411        18.539       -.10538E-06   -.33422E-04
   7  norm          .10000E-03    4.9404        .27341E-07** at limit **
   8  Prefactor     .61527        7.0709        .17769E-06   -.61624E-04
   9  Prefactor     .10000E-03    6.7485       -.91480E-07** at limit **
  10  Prefactor     .10000E-03    90.132        .62460E-06** at limit **
  11  norm          1.7355        1.4969        .10696E-06    .36380E-03
  12  norm          11.986        5.4785        .10168E-05    .24342E-02
  13  norm          3.5737        6.6290        .52200E-06    .57533E-03
  14  Prefactor     .10000E-03    7.5272       -.16796E-06** at limit **
  15  Prefactor     .10000E-03    85.602       -.50700E-06** at limit **
  16  norm          .10000E-03    21.229       -.32580E-07** at limit **
  17  Prefactor     17.156        13.712       -.10975E-06   -.14428E-04
  18  norm          2.5045        5.5604        .14357E-05    .52787E-03
  19  Prefactor     5.5513        5.3229        .16399E-06    .71420E-03
  20  Prefactor     .10000E-03    26.357       -.18573E-06** at limit **
  21  norm          .12687E-03    11.077       -.30375E-05** at limit **
  22  norm          .54698E-02    2.7543        .14615E-05   -.12319E-02
  23  Normalizat    .65473        .26949       -.71110E-06    .91500E-04
  24  Prefactor     1.0622        .13678       -.11981E-06    .26781E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.99786
  norm       = 6.11964
  norm       = 12.4683
  Prefactor  = 0.000100008
  norm       = 3.40035
  norm       = 65.4114
  norm       = 0.0001
  Prefactor  = 0.615271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7355
  norm       = 11.9862
  norm       = 3.57371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1562
  norm       = 2.50448
  Prefactor  = 5.55132
  Prefactor  = 0.0001
  norm       = 0.000126872
  norm       = 0.00546977
  Normalizat = 0.654731
  Prefactor  = 1.06218
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.464     FROM HESSE     STATUS=OK           417 CALLS     2870 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9979        .43331        .22697E-04   -1.5425    
   2  norm          6.1196        9.0915        .16224E-03   -1.5213    
   3  norm          12.468        11.153        .11343E-03   -1.5002    
   4  Prefactor     .10001E-03    83.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4003        2.9494        .11882E-03   -1.5339    
   6  norm          65.411        18.546        .24809E-03   -1.4089    
   7  norm          .10000E-03    4.9513        .16841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .61527        19.795        .38889E-02   -1.5551    
   9  Prefactor     .10000E-03    6.8272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    90.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7355        1.4877        .83102E-04   -1.5444    
  12  norm          11.986        5.4793        .10954E-03   -1.5015    
  13  norm          3.5737        6.5754        .21376E-03   -1.5330    
  14  Prefactor     .10000E-03    7.5425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    86.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    21.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.156        13.694        .96662E-04   -1.4879    
  18  norm          2.5045        5.5486        .25791E-03   -1.5391    
  19  Prefactor     5.5513        5.3267        .16073E-03   -1.5237    
  20  Prefactor     .10000E-03    26.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .12687E-03    6.9483        .54893E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .54698E-02    4.3471        .30694E-01   -1.5693    
  23  Normalizat    .65473        .29470        .43082E-03   -1.0571    
  24  Prefactor     1.0622        .15259        .18487E-03   -.90685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12822e-08
Minuit parameter uncertainties:
  1  0.433308
  2  9.09356
  3  11.1544
  4  0.00167837
  5  2.94958
  6  18.5481
  7  2.99743e-06
  8  6.98172
  9  1.99527e-05
  10  4.6559e-05
  11  1.48771
  12  5.47957
  13  6.57677
  14  2.32992e-05
  15  0.000281494
  16  1.48874e-05
  17  13.6967
  18  5.54976
  19  5.32717
  20  5.01847e-05
  21  0.027332
  22  0.305589
  23  0.295411
  24  0.152654
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  4.656e-05  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.062e+00  1.527e-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.547e-01  2.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733197/likelihoodResults_583545601_583804801_4FGL_J1331.2-1325_daily_bin1328.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) = 6018.46395193
delta logL = -5.24268771187e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6018.16459214
delta logL = 0.299307366035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10558       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1636       1.0000          .0000       10.000    
     3 'Normalizat'    .58987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0826       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=   6018.165     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      307 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10378        1.7734        .73098E-02    .31232E-02
   2  Index         5.1730        2.2748        .16118        .11445E-03
   3  Normalizat    .58986        .39707E-01    .10196        .30378E-04
   4  Prefactor     1.0829        .21404E-01    .38287E-01   -.57533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.103781
  Index      = 5.173
  Normalizat = 0.589861
  Prefactor  = 1.08286
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.165     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      340 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10378        9.4453        .33024E-04   -1.5644    
   2  Index         5.1730        7.5673        .58604E-02    .34608E-01
   3  Normalizat    .58986        .22650        .45198E-03   -1.0842    
   4  Prefactor     1.0829        .12014        .18319E-03   -.90016    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43564e-09
Minuit parameter uncertainties:
  1  1.97951
  2  8.64132
  3  0.226861
  4  0.120166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733197': 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) = 6018.16458102
delta logL = 0.29931848115

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.038e-01  1.980e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  5.173e+00  8.641e+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.083e+00  1.202e-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:  5.899e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/733197/cmap_HighResolution_583545601_583804801_4FGL_J1331.2-1325_daily_bin1328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-08 01:36:06.415934', job_id='733197', GAL2='1.08', fit_tolerance='1e-08', EG2='0.59', EG='0.65', time_epoch_completed='1631090166.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.99e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1328' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:36:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 733197: <4FGL_J1331.2-1325_daily_bin1328> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1328> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:20:56 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:22:25 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:22:25 2021
Terminated at Wed Sep  8 01:36:07 2021
Results reported at Wed Sep  8 01:36:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1328 202.819 -13.4282 583545601 583804801 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 :                                   652.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            911 sec.

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

