/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 7 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_J1202.5-0528_daily_bin944
RA = 180.629, Dec = -5.4709
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='271298', job_status='RUN', time_executed='2021-09-04 21:10:47.296528', time_epoch_executed='1630815047.3' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271298

Creating custom pfile directory:
/scratch/kocevski/271298/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/271298/ft1_4FGL_J1202.5-0528_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/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271298/ft1_4FGL_J1202.5-0528_daily_bin944.fits outfile=/scratch/kocevski/271298/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin944.fits ra=180.629 dec=-5.4709 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 3.58
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271298/ft2_4FGL_J1202.5-0528_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/271298/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin944.fits evtable="EVENTS" outfile="/scratch/kocevski/271298/ft1_filtered_4FGL_J1202.5-0528_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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271298/ft1_filtered_4FGL_J1202.5-0528_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/271298/ltcube_484012801_484272001_4FGL_J1202.5-0528_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/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits
.....................!
real 12.96
user 12.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271298/ft1_filtered_4FGL_J1202.5-0528_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/271298/ltcube_484012801_484272001_4FGL_J1202.5-0528_daily_bin944.fits outfile=/scratch/kocevski/271298/expmap_484012801_484272001_4FGL_J1202.5-0528_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/271298/ltcube_484012801_484272001_4FGL_J1202.5-0528_daily_bin944.fits
.....................!
real 191.00
user 185.57
sys 4.93

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/271298/ft1_filtered_4FGL_J1202.5-0528_daily_bin944.fits scfile=/scratch/kocevski/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits outfile=/scratch/kocevski/271298/cmap_484012801_484272001_4FGL_J1202.5-0528_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=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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271298/ft1_filtered_4FGL_J1202.5-0528_daily_bin944.fits scfile=/scratch/kocevski/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits outfile=/scratch/kocevski/271298/cmap_HighResolution_484012801_484272001_4FGL_J1202.5-0528_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=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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271298/ft1_filtered_4FGL_J1202.5-0528_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271298/Model_4FGL_J1202.5-0528_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/271298/ft1_filtered_4FGL_J1202.5-0528_daily_bin944.fits.....................!
real 43.94
user 42.42
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271298/ft1_filtered_4FGL_J1202.5-0528_daily_bin944.fits', '/scratch/kocevski/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits', expMap='/scratch/kocevski/271298/expmap_484012801_484272001_4FGL_J1202.5-0528_daily_bin944.fits', expCube='/scratch/kocevski/271298/ltcube_484012801_484272001_4FGL_J1202.5-0528_daily_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271298/Model_4FGL_J1202.5-0528_daily_bin944.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/271298/ft1_filtered_4FGL_J1202.5-0528_daily_bin944.fits
Spacecraft file(s): /scratch/kocevski/271298/ft2_4FGL_J1202.5-0528_daily_bin944.fits
Exposure map: /scratch/kocevski/271298/expmap_484012801_484272001_4FGL_J1202.5-0528_daily_bin944.fits
Exposure cube: /scratch/kocevski/271298/ltcube_484012801_484272001_4FGL_J1202.5-0528_daily_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271298/Model_4FGL_J1202.5-0528_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) = 4631.61553751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79398       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49365       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    90.243       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.500       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8553       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10415E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.3953       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3418       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.5781       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.851       1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.945       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .55110       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1062       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4631.570     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     3965 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71069        15.169       -.32967E-05    .58497E-03
   2  Prefactor     .49225        5.1898       -.28078E-05    .41478E-03
   3  Prefactor     .10000E-03    24.340       -.58916E-05** at limit **
   4  norm          .10000E-03    14.566       -.69168E-06** at limit **
   5  Prefactor     .10000E-03    4.0562        .92898E-07** at limit **
   6  norm          .10000E-03    14.278        .55169E-06** at limit **
   7  Prefactor     .23546        1.9049       -.81184E-06   -.49297E-03
   8  Prefactor     13.605        26.265       -.18165E-05    .14102E-03
   9  Prefactor     .10000E-03    10.213       -.96538E-06** at limit **
  10  norm          .10000E-03    3.2548       -.42816E-08** at limit **
  11  Prefactor     .10000E-03    3.4534       -.27835E-07** at limit **
  12  Prefactor     .10000E-03    19.648        .39975E-05** at limit **
  13  Prefactor     .10000E-03    72.086        .90592E-05** at limit **
  14  Prefactor     .10000E-03    11.255        .20854E-06** at limit **
  15  Prefactor     .10000E-03    3.8316        .67119E-07** at limit **
  16  Prefactor     .10000E-03    7.4752        .37872E-06** at limit **
  17  Prefactor     90.202        46.685       -.12582E-04    .52581E-05
  18  Prefactor     .10000E-03    242.34        .27887E-06** at limit **
  19  Prefactor     15.504        21.497        .12095E-05    .29952E-06
  20  Prefactor     .10000E-03    17.185       -.43895E-05** at limit **
  21  Prefactor     4.8514        10.789       -.10697E-05   -.11231E-03
  22  norm          .10000E-03    1.5107       -.20438E-07** at limit **
  23  norm          .10000E-03    1.6141       -.15754E-06** at limit **
  24  norm          .10000E-03    13.315        .38431E-05** at limit **
  25  Prefactor     2.3942        4.8427        .35027E-05   -.27968E-03
  26  norm          1.3416        .59291       -.24453E-07    .24583E-03
  27  Prefactor     6.5780        2.8490       -.41562E-06    .86299E-04
  28  Prefactor     .10000E-03    14.766       -.23759E-05** at limit **
  29  Prefactor     15.844        14.960       -.10761E-05   -.58280E-04
  30  Prefactor     12.942        10.051       -.74449E-06   -.66124E-03
  31  Prefactor     .10000E-03    21.986        .60730E-05** at limit **
  32  Normalizat    .55111        .22952        .30191E-05    .27706E-03
  33  Prefactor     1.1064        .16179        .46701E-06    .47137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.710691
  Prefactor  = 0.492251
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.235463
  Prefactor  = 13.6053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.2018
  Prefactor  = 0.000100003
  Prefactor  = 15.5041
  Prefactor  = 0.0001
  Prefactor  = 4.85144
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.39416
  norm       = 1.34157
  Prefactor  = 6.57799
  Prefactor  = 0.0001
  Prefactor  = 15.8442
  Prefactor  = 12.9418
  Prefactor  = 0.0001
  Normalizat = 0.551112
  Prefactor  = 1.10635
 **********
 **   18 **HESSE 
 **********

 FCN=   4631.570     FROM HESSE     STATUS=OK           695 CALLS     4660 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71069        128.90        .48028E-02   -1.5539    
   2  Prefactor     .49225        10.735        .28101E-02   -1.5568    
   3  Prefactor     .10000E-03    24.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1179        .13326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    14.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .23546        3.9174        .17857E-02   -1.5611    
   8  Prefactor     13.605        26.110        .10860E-03   -1.4970    
   9  Prefactor     .10000E-03    10.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.2689        .11987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5532        .24655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    73.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.8463        .13007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     90.202        46.830        .21149E-03   -1.3806    
  18  Prefactor     .10000E-03    251.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.504        21.462        .10173E-03   -1.4920    
  20  Prefactor     .10000E-03    17.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8514        10.698        .18256E-03   -1.5267    
  22  norm          .10000E-03    1.5215        .81116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.7906        .16610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.3942        4.7660        .19927E-03   -1.5398    
  26  norm          1.3416        .58595        .32220E-04   -1.5476    
  27  Prefactor     6.5780        2.8496        .71891E-04   -1.5195    
  28  Prefactor     .10000E-03    15.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.844        14.950        .10060E-03   -1.4912    
  30  Prefactor     12.942        10.107        .55665E-03   -1.4988    
  31  Prefactor     .10000E-03    21.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .55111        .25382        .34683E-03   -1.1010    
  33  Prefactor     1.1064        .18299        .18681E-03   -.89264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7785e-08
Minuit parameter uncertainties:
  1  19.183
  2  4.59797
  3  6.15237e-06
  4  0.000198953
  5  4.5239e-05
  6  2.8174e-05
  7  1.92059
  8  26.1322
  9  3.39219e-06
  10  2.21268e-06
  11  6.93339e-06
  12  2.3855e-05
  13  0.000368176
  14  2.36627e-05
  15  9.7164e-06
  16  3.33287e-05
  17  46.8497
  18  0.00164254
  19  21.4732
  20  1.50549e-05
  21  10.7027
  22  2.24732e-06
  23  2.0623e-05
  24  3.76382e-06
  25  4.76677
  26  0.585954
  27  2.84967
  28  3.06053e-06
  29  14.9538
  30  10.1079
  31  5.88215e-06
  32  0.254353
  33  0.183089
Done.

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

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  3.333e-05  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.106e+00  1.831e-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:  5.511e-01  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.629 -5.471
Photon Flux Upper Limit: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271298/likelihoodResults_484012801_484272001_4FGL_J1202.5-0528_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): 102
logL (Free Index) = 4631.57067867
delta logL = -0.000632710006357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4631.57004631
delta logL = -3.46300112142e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4630.794     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      319 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18601E-02    .98313E-01    .76375E-03** at limit **
   2  Index        10.0000        9.9803        .50000    ** at limit **
   3  Normalizat    .47305        .11055        .34682E-02   -.40604E-04
   4  Prefactor     1.1455        .78253E-01    .18681E-03    .16084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00186007
  Index      = 10
  Normalizat = 0.473046
  Prefactor  = 1.14553
 **********
 **   18 **HESSE 
 **********

 FCN=   4630.794     FROM HESSE     STATUS=OK            33 CALLS      352 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18601E-02    .19435E-02    .31254E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.9231        .46482E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .47305        .24912        .13873E-03   -1.1368    
   4  Prefactor     1.1455        .18422        .37362E-04   -.88024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6869e-10
Minuit parameter uncertainties:
  1  0.00194346
  2  0.000112039
  3  0.249705
  4  0.184325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271298': 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) = 4630.79365667
delta logL = 0.776389293352

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  1.860e-03  1.943e-03  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  1.000e+01  1.120e-04  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.146e+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:  4.730e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 180.629 -5.471
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.97e-08 +/- 6.04e-08
Energy Flux (Free Index): 6.67e-06 +/- 6.79e-06

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/271298/cmap_HighResolution_484012801_484272001_4FGL_J1202.5-0528_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', comment='SUCCESS', energy_flux2='6.67e-06', dlogl='7.76e-01', photon_flux2='5.97e-08', job_status='DONE', time_completed='2021-09-04 21:23:49.077025', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='9.00e-08', energy_flux_error2='6.79e-06', EG='0.55', time_epoch_completed='1630815829.08', return_code='0', job_id='271298', GAL2='1.15', EG2='0.47', return_code2='0', photon_flux_error2='6.04e-08', ts2='1.67', photon_index='2.83' WHERE bin_id='944' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 271298: <4FGL_J1202.5-0528_daily_bin944> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin944> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 21:10:28 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:10:30 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:30 2021
Terminated at Sat Sep  4 21:23:49 2021
Results reported at Sat Sep  4 21:23:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin944 180.629 -5.4709 484012801 484272001 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

