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


Performing analysis on: 4FGL_J1202.5-0528_daily_bin925
RA = 180.629, Dec = -5.4709
tmin = 479088001, tmax = 479347201
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='271266', job_status='RUN', time_executed='2021-09-04 21:10:45.590257', time_epoch_executed='1630815045.59' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271266

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271266/ft1_4FGL_J1202.5-0528_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271266/ft1_4FGL_J1202.5-0528_daily_bin925.fits outfile=/scratch/kocevski/271266/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin925.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=479088001.0 tmax=479347201.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.27
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.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/271266/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin925.fits evtable="EVENTS" outfile="/scratch/kocevski/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.fits" evtable="EVENTS" scfile=/scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits sctable="SC_DATA" outfile=/scratch/kocevski/271266/ltcube_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.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/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits
.....................!
real 14.02
user 13.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/271266/ltcube_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.fits outfile=/scratch/kocevski/271266/expmap_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.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/271266/ltcube_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.fits
.....................!
real 189.48
user 184.45
sys 4.66

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1202.5-0528 @ 180.629 -5.4709

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.fits scfile=/scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits outfile=/scratch/kocevski/271266/cmap_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.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=180.629 yref=-5.4709 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.fits scfile=/scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits outfile=/scratch/kocevski/271266/cmap_HighResolution_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.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=180.629 yref=-5.4709 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271266/Model_4FGL_J1202.5-0528_daily_bin925.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/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.fits.....................!
real 50.59
user 49.27
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.fits', '/scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits', expMap='/scratch/kocevski/271266/expmap_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.fits', expCube='/scratch/kocevski/271266/ltcube_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271266/Model_4FGL_J1202.5-0528_daily_bin925.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1202.5-0528'

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  3.355e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  2.834e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  4.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/271266/ft1_filtered_4FGL_J1202.5-0528_daily_bin925.fits
Spacecraft file(s): /scratch/kocevski/271266/ft2_4FGL_J1202.5-0528_daily_bin925.fits
Exposure map: /scratch/kocevski/271266/expmap_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.fits
Exposure cube: /scratch/kocevski/271266/ltcube_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271266/Model_4FGL_J1202.5-0528_daily_bin925.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) = 5418.60417757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.5749       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7495       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.901       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.188       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9430       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7309       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9543       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8928       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.419       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.122       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1426       1.0000         .10000E-03   10000.    
    22 'norm      '    .85267       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.1771       1.0000         .10000E-03   10000.    
    26 'norm      '    2.6029       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.489       1.0000         .10000E-03   10000.    
    28 'Prefactor '    26.587       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .73533       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1684       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5418.596     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     4493 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    37.307        .76086E-04** at limit **
   2  Prefactor     .10000E-03    3.5271        .36031E-06** at limit **
   3  Prefactor     .10011E-03    14.396       -.32640E-04** at limit **
   4  norm          8.5715        1.0154        .31767E-06    .27583E-03
   5  Prefactor     .10000E-03    4.5656        .13242E-05** at limit **
   6  norm          5.7472        1.0197        .49752E-06   -.67513E-04
   7  Prefactor     2.2968        2.2594        .24947E-07   -.18123E-04
   8  Prefactor     28.894        1.7136       -.18680E-05    .19348E-02
   9  Prefactor     32.190        1.1631        .76513E-06   -.86182E-03
  10  norm          .10000E-03    2.3398        .24305E-06** at limit **
  11  Prefactor     3.9425        3.4232        .10063E-05   -.13921E-02
  12  Prefactor     .10002E-03    74.467       -.69998E-04** at limit **
  13  Prefactor     2.7344        1.0711        .10058E-05   -.10455E-04
  14  Prefactor     23.786        1.8383        .23192E-05   -.20862E-02
  15  Prefactor     3.9532        1.0143       -.30437E-06   -.10584E-03
  16  Prefactor     7.8940        1.1002       -.12408E-05    .40768E-03
  17  Prefactor     10.424        1.6550        .30074E-05   -.12417E-02
  18  Prefactor     16.117        1.6706       -.24628E-05    .15408E-02
  19  Prefactor     12.427        1.2111        .13984E-05   -.58730E-03
  20  Prefactor     .10005E-03    9.1740       -.37334E-05** at limit **
  21  Prefactor     2.1377        1.3267       -.31688E-05    .11134E-03
  22  norm          .85315        3.0270        .21249E-05   -.17478E-03
  23  norm          .10000E-03    1.9941        .18736E-06** at limit **
  24  norm          .10000E-03    12.043       -.52227E-05** at limit **
  25  Prefactor     5.1789        1.0274       -.60029E-06   -.17971E-02
  26  norm          2.6029        .73169        .15968E-06    .81127E-03
  27  Prefactor     10.488        1.2511       -.15315E-05   -.12560E-01
  28  Prefactor     26.587        1.0009        .23041E-07    .87525E-04
  29  Prefactor     .10000E-03    3.0687       -.87608E-06** at limit **
  30  Prefactor     .10000E-03    14.276        .81208E-05** at limit **
  31  Prefactor     .10013E-03    8.9530        .55763E-05** at limit **
  32  Normalizat    .73556        .25828       -.18117E-05    .16869E-04
  33  Prefactor     1.1681        .18445       -.33141E-05   -.61550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.000100113
  norm       = 8.57155
  Prefactor  = 0.0001
  norm       = 5.74715
  Prefactor  = 2.29681
  Prefactor  = 28.894
  Prefactor  = 32.1901
  norm       = 0.0001
  Prefactor  = 3.94247
  Prefactor  = 0.000100018
  Prefactor  = 2.73439
  Prefactor  = 23.7862
  Prefactor  = 3.95317
  Prefactor  = 7.89403
  Prefactor  = 10.424
  Prefactor  = 16.1166
  Prefactor  = 12.4266
  Prefactor  = 0.000100048
  Prefactor  = 2.13768
  norm       = 0.853145
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.17892
  norm       = 2.60291
  Prefactor  = 10.4882
  Prefactor  = 26.5868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100133
  Normalizat = 0.735556
  Prefactor  = 1.16815
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.596     FROM HESSE     STATUS=OK           777 CALLS     5270 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    41.248        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10011E-03    27.883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.5715        8.4501        .34223E-02   -1.5122    
   5  Prefactor     .10000E-03    4.4866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7472        16.354        .41877E-02   -1.5228    
   7  Prefactor     2.2968        2.2761        .67704E-02   -1.5405    
   8  Prefactor     28.894        33.407        .18631E-02   -1.4632    
   9  Prefactor     32.190        37.122        .17657E-02   -1.4573    
  10  norm          .10000E-03    2.3338        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9425        3.5502        .50788E-02   -1.5311    
  12  Prefactor     .10002E-03    15.302        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7344        43.395        .61602E-02   -1.5377    
  14  Prefactor     23.786        48.324        .20536E-02   -1.4732    
  15  Prefactor     3.9532        10.290        .50712E-02   -1.5310    
  16  Prefactor     7.8940        19.540        .35681E-02   -1.5146    
  17  Prefactor     10.424        98.991        .31033E-02   -1.5062    
  18  Prefactor     16.117        42.578        .24938E-02   -1.4905    
  19  Prefactor     12.427        31.674        .28412E-02   -1.5003    
  20  Prefactor     .10005E-03    29.528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1377        330.09        .70391E-02   -1.5416    
  22  norm          .85315        37.439        .12635E-01   -1.5523    
  23  norm          .10000E-03    1.9574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.1789        8.4193        .44170E-02   -1.5253    
  26  norm          2.6029        .77664        .63216E-02   -1.5385    
  27  Prefactor     10.488        3.7161        .30929E-02   -1.5060    
  28  Prefactor     26.587        12.841        .19423E-02   -1.4676    
  29  Prefactor     .10000E-03    3.0677        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.704        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10013E-03    30.258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .73556        .26938        .81936E-01   -1.0251    
  33  Prefactor     1.1681        .17743        .35425E-01   -.87317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0261e-07
Minuit parameter uncertainties:
  1  0.00216544
  2  2.60944e-05
  3  0.00354879
  4  8.45124
  5  5.53445e-05
  6  16.3666
  7  2.27618
  8  33.4285
  9  37.1484
  10  1.17962e-07
  11  3.55036
  12  0.00106429
  13  21.8044
  14  48.4037
  15  10.2942
  16  19.556
  17  64.3861
  18  42.6584
  19  31.7166
  20  0.0023795
  21  53.4284
  22  11.3102
  23  1.19675e-05
  24  0.000133843
  25  8.42119
  26  0.776644
  27  3.71613
  28  12.842
  29  4.8267e-06
  30  4.8792e-05
  31  0.00400773
  32  0.269871
  33  0.177523
Done.

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

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  7.894e+00  1.956e+01  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  2.834e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  4.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.168e+00  1.775e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  7.356e-01  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 180.629 -5.471
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271266/likelihoodResults_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.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) = 5418.58283483
delta logL = 0.01339705797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5418.58073237
delta logL = 0.0154995248422

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5418.581     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9429        706.01        .38020E-02   -.18123E-03
   2  Index         3.1130        5.1962        .26775       -.46731E-04
   3  Normalizat    .73033        .69797E-01    .82207E-01   -.35103E-05
   4  Prefactor     1.1706        .52977E-01    .35365E-01   -.71929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.94294
  Index      = 3.113
  Normalizat = 0.730329
  Prefactor  = 1.17064
 **********
 **   18 **HESSE 
 **********

 FCN=   5418.581     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9429        18.527        .15208E-03   -1.5181    
   2  Index         3.1130        1.7641        .16072E-01   -.38699    
   3  Normalizat    .73033        .25675        .36403E-03   -1.0271    
   4  Prefactor     1.1706        .18424        .21384E-03   -.87240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19528e-10
Minuit parameter uncertainties:
  1  18.5419
  2  1.80987
  3  0.257172
  4  0.184344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271266': 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) = 5418.58073175
delta logL = 0.0155001406956

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  6.943e+00  1.854e+01  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  3.113e+00  1.810e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  4.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.171e+00  1.843e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  7.303e-01  2.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 180.629 -5.471

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/271266/cmap_HighResolution_479088001_479347201_4FGL_J1202.5-0528_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.76e-07', time_completed='2021-09-04 21:25:54.903653', job_id='271266', GAL2='1.17', fit_tolerance='1e-08', EG2='0.73', EG='0.74', time_epoch_completed='1630815954.9', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.55e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.83' WHERE bin_id='925' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:25:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 271266: <4FGL_J1202.5-0528_daily_bin925> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin925> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 21:10:26 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:10:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:10:27 2021
Terminated at Sat Sep  4 21:25:55 2021
Results reported at Sat Sep  4 21:25:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin925 180.629 -5.4709 479088001 479347201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1202.5-0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   904.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

