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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin686
RA = 180.055, Dec = 2.0172
tmin = 417139201, tmax = 417398401
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='242543', job_status='RUN', time_executed='2021-09-04 19:47:31.901412', time_epoch_executed='1630810051.9' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242543

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242543/ft1_4FGL_J1200.2+0201_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242543/ft1_4FGL_J1200.2+0201_daily_bin686.fits outfile=/scratch/kocevski/242543/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin686.fits ra=180.055 dec=2.0172 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.61
user 5.16
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.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/242543/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin686.fits evtable="EVENTS" outfile="/scratch/kocevski/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.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.60
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/242543/ltcube_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.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/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits
.....................!
real 12.53
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/242543/ltcube_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.fits outfile=/scratch/kocevski/242543/expmap_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.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/242543/ltcube_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.fits
.....................!
real 190.38
user 185.02
sys 4.88

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

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.fits scfile=/scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits outfile=/scratch/kocevski/242543/cmap_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.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.055 yref=2.0172 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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.fits scfile=/scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits outfile=/scratch/kocevski/242543/cmap_HighResolution_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.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.055 yref=2.0172 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242543/Model_4FGL_J1200.2+0201_daily_bin686.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/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.fits.....................!
real 49.04
user 47.71
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.fits', '/scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits', expMap='/scratch/kocevski/242543/expmap_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.fits', expCube='/scratch/kocevski/242543/ltcube_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242543/Model_4FGL_J1200.2+0201_daily_bin686.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/242543/ft1_filtered_4FGL_J1200.2+0201_daily_bin686.fits
Spacecraft file(s): /scratch/kocevski/242543/ft2_4FGL_J1200.2+0201_daily_bin686.fits
Exposure map: /scratch/kocevski/242543/expmap_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.fits
Exposure cube: /scratch/kocevski/242543/ltcube_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242543/Model_4FGL_J1200.2+0201_daily_bin686.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) = 5320.3378103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.5976       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9334       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1812       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.804       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1006       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.571       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    111.92       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0062       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1806       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.417       1.0000         .10000E-03   10000.    
    23 'norm      '    16.932       1.0000         .10000E-03   10000.    
    24 'Prefactor '    152.37       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6782       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.7807       1.0000         .10000E-03   10000.    
    27 'norm      '    3.0810       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .38990E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    31.015       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .45908       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5320.302     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4113 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4369       -.54698E-07** at limit **
   2  norm          7.5976        12.766        .48486E-07   -.39303E-05
   3  Prefactor     .10000E-03    .90430       -.10179E-06** at limit **
   4  Prefactor     .10000E-03    14.693       -.16557E-06** at limit **
   5  norm          2.9338        5.4323        .33192E-05    .13415E-03
   6  Prefactor     3.1813        3.1337       -.40108E-06   -.17925E-04
   7  Prefactor     .10000E-03    6.1874       -.15457E-07** at limit **
   8  Prefactor     .10000E-03    43.873        .34570E-05** at limit **
   9  Prefactor     17.806        13.397       -.42750E-06   -.13164E-03
  10  Prefactor     .10000E-03    14.755       -.10800E-06** at limit **
  11  Prefactor     8.7657        7.7325        .23886E-06    .10967E-03
  12  Prefactor     3.1022        14.535        .43404E-05   -.25551E-04
  13  Prefactor     13.573        14.138        .51549E-06    .79607E-04
  14  Prefactor     .10000E-03    94.188        .10773E-04** at limit **
  15  Prefactor     53.822        42.185       -.33036E-06   -.15602E-05
  16  Prefactor     111.93        57.282       -.82877E-06    .12651E-04
  17  Prefactor     .10000E-03    61.930       -.82187E-05** at limit **
  18  Prefactor     .10000E-03    7.8506        .34456E-07** at limit **
  19  Prefactor     .10000E-03    9.4515        .98367E-07** at limit **
  20  norm          1.0065        2.6219        .48526E-06    .17997E-03
  21  norm          6.1810        4.7824        .39237E-06   -.25473E-05
  22  Prefactor     10.411        35.872        .27911E-05    .12024E-05
  23  norm          16.934        40.968       -.26613E-06   -.29594E-05
  24  Prefactor     152.55        176.33       -.19237E-04   -.36989E-04
  25  norm          1.6781        .68618       -.49081E-07   -.18303E-03
  26  Prefactor     1.7755        7.7002        .11578E-04    .28361E-04
  27  norm          3.0811        1.9165        .49119E-07   -.81424E-04
  28  Prefactor     .10127E-03    9.9414        .21800E-05** at limit **
  29  Prefactor     31.004        51.738        .12916E-05   -.50445E-04
  30  Normalizat    .45894        .23650        .19493E-05    .17220E-04
  31  Prefactor     1.3541        .18641       -.17230E-05    .79384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.59759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93378
  Prefactor  = 3.18135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8058
  Prefactor  = 0.0001
  Prefactor  = 8.76566
  Prefactor  = 3.10217
  Prefactor  = 13.5726
  Prefactor  = 0.0001
  Prefactor  = 53.8218
  Prefactor  = 111.927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00648
  norm       = 6.18102
  Prefactor  = 10.4113
  norm       = 16.9336
  Prefactor  = 152.545
  norm       = 1.67809
  Prefactor  = 1.77547
  norm       = 3.08111
  Prefactor  = 0.000101272
  Prefactor  = 31.004
  Normalizat = 0.458937
  Prefactor  = 1.3541
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.302     FROM HESSE     STATUS=OK           620 CALLS     4733 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4469        .85340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5976        12.760        .14549E-03   -1.5157    
   3  Prefactor     .10000E-03    .92183        .67687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9338        5.3885        .10719E-02   -1.5365    
   6  Prefactor     3.1813        3.1145        .11921E-03   -1.5351    
   7  Prefactor     .10000E-03    6.1885        .17721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    43.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.806        13.372        .94922E-04   -1.4864    
  10  Prefactor     .10000E-03    14.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7657        7.7242        .13539E-03   -1.5116    
  12  Prefactor     3.1022        14.439        .11515E-02   -1.5356    
  13  Prefactor     13.573        14.097        .54365E-03   -1.4971    
  14  Prefactor     .10000E-03    94.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.822        42.218        .54674E-04   -1.4239    
  16  Prefactor     111.93        57.183        .38024E-04   -1.3588    
  17  Prefactor     .10000E-03    62.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0065        2.5775        .18058E-03   -1.5507    
  21  norm          6.1810        4.7712        .11565E-03   -1.5211    
  22  Prefactor     10.411        35.821        .12414E-03   -1.5063    
  23  norm          16.934        41.034        .97334E-04   -1.4885    
  24  Prefactor     152.55        176.48        .16327E-03   -1.3231    
  25  norm          1.6781        .67947        .34766E-04   -1.5449    
  26  Prefactor     1.7755        7.6692        .15681E-02   -1.5441    
  27  norm          3.0811        1.9108        .75347E-04   -1.5357    
  28  Prefactor     .10127E-03    77.913        .42203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     31.004        51.292        .71946E-04   -1.4594    
  30  Normalizat    .45894        .25155        .39674E-03   -1.1436    
  31  Prefactor     1.3541        .20325        .20478E-03   -.81712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58769e-08
Minuit parameter uncertainties:
  1  3.73436e-06
  2  12.7642
  3  3.80552e-06
  4  3.1199e-05
  5  5.38934
  6  3.11461
  7  1.04881e-06
  8  8.59748e-05
  9  13.3744
  10  3.38213e-06
  11  7.72503
  12  13.3907
  13  14.1006
  14  0.000249903
  15  42.2413
  16  57.2113
  17  4.69939e-05
  18  7.87104e-06
  19  1.8653e-05
  20  2.57781
  21  4.77147
  22  35.8949
  23  41.102
  24  177.097
  25  0.67947
  26  7.38151
  27  1.9108
  28  0.0199325
  29  51.3646
  30  0.252173
  31  0.203368
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  8.766e+00  7.725e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.354e+00  2.034e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  4.589e-01  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.56e-05

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) = 5320.17239689
delta logL = 0.130056492806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5320.14142075
delta logL = 0.161032632111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9145       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7942       1.0000          .0000       10.000    
     3 'Normalizat'    .39813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+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=   5320.141     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      289 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9150        14.486        .10148E-03    .16042E-03
   2  Index         2.7951        1.8730        .50824E-02    .60832E-04
   3  Normalizat    .39785        .29564        .42455E-03   -.24797E-04
   4  Prefactor     1.3841        .22096        .20277E-03    .91054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91504
  Index      = 2.79511
  Normalizat = 0.397854
  Prefactor  = 1.38412
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.141     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9150        7.8384        .40592E-05   -1.5265    
   2  Index         2.7951        1.0321        .20330E-03   -.45669    
   3  Normalizat    .39785        .25564        .16982E-04   -1.1741    
   4  Prefactor     1.3841        .20556        .40553E-04   -.80839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06378e-10
Minuit parameter uncertainties:
  1  7.84002
  2  1.0414
  3  0.256398
  4  0.205682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242543': 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) = 5320.14141799
delta logL = 0.161035389489

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  4.915e+00  7.840e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.795e+00  1.041e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.384e+00  2.057e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  3.979e-01  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.30
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.80 +/- 1.04
Photon Flux (Free Index): 8.14e-08 +/- 9.44e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.30e-05

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/242543/cmap_HighResolution_417139201_417398401_4FGL_J1200.2+0201_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.83e-05', photon_flux_error='2.91e-08', dlogl='1.61e-01', energy_flux='1.77e-05', photon_flux2='8.14e-08', job_status='DONE', time_completed='2021-09-04 19:59:54.783331', photon_index_error2='1.04', photon_index2='2.80', ts='4.90', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.46', time_epoch_completed='1630810794.78', return_code='0', job_id='242543', GAL2='1.38', EG2='0.40', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='9.44e-08', ts2='5.30', photon_index='2.11' WHERE bin_id='686' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:59:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 242543: <4FGL_J1200.2+0201_daily_bin686> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin686> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:32 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:45:33 2021
Terminated at Sat Sep  4 19:59:55 2021
Results reported at Sat Sep  4 19:59:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin686 180.055 2.0172 417139201 417398401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   740.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            863 sec.

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

