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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin922
RA = 180.055, Dec = 2.0172
tmin = 478310401, tmax = 478569601
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='244147', job_status='RUN', time_executed='2021-09-04 19:52:29.686218', time_epoch_executed='1630810349.69' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='922'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/244147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/244147/ft1_4FGL_J1200.2+0201_daily_bin922.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/244147/ft2_4FGL_J1200.2+0201_daily_bin922.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/244147/ft1_4FGL_J1200.2+0201_daily_bin922.fits outfile=/scratch/kocevski/244147/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin922.fits ra=180.055 dec=2.0172 rad=12.0 tmin=478310401.0 tmax=478569601.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.49
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/244147/ft2_4FGL_J1200.2+0201_daily_bin922.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/244147/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin922.fits evtable="EVENTS" outfile="/scratch/kocevski/244147/ft1_filtered_4FGL_J1200.2+0201_daily_bin922.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/244147/ft1_filtered_4FGL_J1200.2+0201_daily_bin922.fits" evtable="EVENTS" scfile=/scratch/kocevski/244147/ft2_4FGL_J1200.2+0201_daily_bin922.fits sctable="SC_DATA" outfile=/scratch/kocevski/244147/ltcube_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.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/244147/ft2_4FGL_J1200.2+0201_daily_bin922.fits
.....................!
real 11.83
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/244147/ft1_filtered_4FGL_J1200.2+0201_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/244147/ft2_4FGL_J1200.2+0201_daily_bin922.fits sctable="SC_DATA" expcube=/scratch/kocevski/244147/ltcube_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.fits outfile=/scratch/kocevski/244147/expmap_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.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/244147/ltcube_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.fits
.....................!
real 190.66
user 185.00
sys 5.29

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/244147/ft1_filtered_4FGL_J1200.2+0201_daily_bin922.fits scfile=/scratch/kocevski/244147/ft2_4FGL_J1200.2+0201_daily_bin922.fits outfile=/scratch/kocevski/244147/cmap_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.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.68
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/244147/ft1_filtered_4FGL_J1200.2+0201_daily_bin922.fits scfile=/scratch/kocevski/244147/ft2_4FGL_J1200.2+0201_daily_bin922.fits outfile=/scratch/kocevski/244147/cmap_HighResolution_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.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.61
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/244147/ft1_filtered_4FGL_J1200.2+0201_daily_bin922.fits', '/scratch/kocevski/244147/ft2_4FGL_J1200.2+0201_daily_bin922.fits', expMap='/scratch/kocevski/244147/expmap_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.fits', expCube='/scratch/kocevski/244147/ltcube_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/244147/Model_4FGL_J1200.2+0201_daily_bin922.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/244147/ft1_filtered_4FGL_J1200.2+0201_daily_bin922.fits
Spacecraft file(s): /scratch/kocevski/244147/ft2_4FGL_J1200.2+0201_daily_bin922.fits
Exposure map: /scratch/kocevski/244147/expmap_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.fits
Exposure cube: /scratch/kocevski/244147/ltcube_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/244147/Model_4FGL_J1200.2+0201_daily_bin922.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) = 5785.6324965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78373E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    36.516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4128       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10947E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.340       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53805E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.693       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.710       1.0000         .10000E-03   10000.    
    20 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6072       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.232       1.0000         .10000E-03   10000.    
    25 'norm      '    .50608       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.482       1.0000         .10000E-03   10000.    
    27 'norm      '    4.4293       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2200       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79211       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=   5785.503     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4184 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12667E-01    4.7041       -.21917E-05    .10598E-02
   2  norm          36.694        26.273        .15273E-05    .44669E-03
   3  Prefactor     .10000E-03    1.2919       -.10922E-06** at limit **
   4  Prefactor     .10000E-03    67.406       -.36986E-05** at limit **
   5  norm          .10000E-03    1.9370       -.47027E-07** at limit **
   6  Prefactor     7.4146        4.3856        .66800E-06    .51556E-03
   7  Prefactor     .10000E-03    9.6591       -.28973E-07** at limit **
   8  Prefactor     .10000E-03    55.733        .45612E-05** at limit **
   9  Prefactor     .10000E-03    12.748       -.17551E-06** at limit **
  10  Prefactor     .10000E-03    61.235        .15603E-06** at limit **
  11  Prefactor     7.8285        7.5793       -.76861E-07   -.34125E-04
  12  Prefactor     .10000E-03    4.6243       -.12924E-07** at limit **
  13  Prefactor     10.439        17.194       -.24985E-06    .74692E-04
  14  Prefactor     .10000E-03    71.593       -.12556E-05** at limit **
  15  Prefactor     47.324        35.449        .31120E-06    .55998E-04
  16  Prefactor     .10119E-03    46.422        .95083E-06** at limit **
  17  Prefactor     29.696        26.253       -.31062E-06    .60099E-05
  18  Prefactor     .10000E-03    12.700        .62343E-07** at limit **
  19  Prefactor     31.707        14.924       -.18093E-06    .77225E-05
  20  norm          .10000E-03    1.6022       -.51273E-07** at limit **
  21  norm          3.6065        4.2154        .11150E-08    .25614E-04
  22  Prefactor     .10000E-03    13.018        .64214E-07** at limit **
  23  norm          .10000E-03    35.909       -.64614E-06** at limit **
  24  Prefactor     14.285        122.11        .91259E-05    .46532E-04
  25  norm          .50563        .62780        .19658E-07    .27119E-04
  26  Prefactor     14.483        10.493        .15175E-06    .95016E-04
  27  norm          4.4289        2.0274       -.70372E-07    .22681E-04
  28  Prefactor     .10000E-03    4.3522        .29685E-07** at limit **
  29  Prefactor     .10000E-03    17.369        .63315E-07** at limit **
  30  Normalizat    1.2204        .21437        .16847E-05    .41449E-03
  31  Prefactor     .79202        .16123       -.75485E-07    .44650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0126671
  norm       = 36.6943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.4146
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.82848
  Prefactor  = 0.0001
  Prefactor  = 10.4392
  Prefactor  = 0.0001
  Prefactor  = 47.3242
  Prefactor  = 0.000101189
  Prefactor  = 29.6964
  Prefactor  = 0.0001
  Prefactor  = 31.707
  norm       = 0.0001
  norm       = 3.60654
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2851
  norm       = 0.505629
  Prefactor  = 14.4826
  norm       = 4.42886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22039
  Prefactor  = 0.792021
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.503     FROM HESSE     STATUS=OK           632 CALLS     4816 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12667E-01    12.178        .41040E-01   -1.5686    
   2  norm          36.694        30.330        .66322E-04   -1.4496    
   3  Prefactor     .10000E-03    2.0287        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    68.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9400        .10339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.4146        4.3524        .58224E-03   -1.5163    
   7  Prefactor     .10000E-03    9.6683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    61.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8285        7.5760        .14330E-03   -1.5148    
  12  Prefactor     .10000E-03    4.6270        .15975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.439        17.197        .12400E-03   -1.5062    
  14  Prefactor     .10000E-03    71.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     47.324        35.443        .58278E-04   -1.4331    
  16  Prefactor     .10119E-03    50.316        .13287       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.696        26.245        .73526E-04   -1.4618    
  18  Prefactor     .10000E-03    12.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.707        14.808        .71155E-04   -1.4581    
  20  norm          .10000E-03    1.6240        .93556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6065        4.1368        .14481E-03   -1.5328    
  22  Prefactor     .10000E-03    13.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    36.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.285        121.93        .10617E-03   -1.4952    
  25  norm          .50563        .58815        .57060E-03   -1.5566    
  26  Prefactor     14.483        10.475        .10525E-03   -1.4947    
  27  norm          4.4289        2.0189        .69389E-04   -1.5287    
  28  Prefactor     .10000E-03    4.3592        .15496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2204        .25200        .26713E-03   -.85975    
  31  Prefactor     .79202        .18781        .25626E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95968e-09
Minuit parameter uncertainties:
  1  0.782559
  2  30.3432
  3  1.47262e-05
  4  0.000347649
  5  3.56964e-06
  6  4.35257
  7  4.51421e-06
  8  0.000744182
  9  4.42453e-05
  10  8.4752e-05
  11  7.57697
  12  2.96531e-06
  13  17.205
  14  0.000288635
  15  35.4593
  16  0.0154846
  17  26.2554
  18  6.72362e-06
  19  14.8096
  20  1.48913e-06
  21  4.13712
  22  6.81011e-06
  23  0.000111694
  24  83.6996
  25  0.58816
  26  10.4763
  27  2.01894
  28  2.85924e-06
  29  4.3676e-07
  30  0.252248
  31  0.187962
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  7.828e+00  7.577e+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:  7.920e-01  1.880e-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:  1.220e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.19
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.53e-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) = 5785.40711067
delta logL = 0.0956706735669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5785.39028939
delta logL = 0.112491946144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0410       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7474       1.0000          .0000       10.000    
     3 'Normalizat'    1.1652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81691       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=   5785.390     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      308 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0412        11.971        .11759E-03    .37483E-03
   2  Index         2.7468        1.6405        .50342E-02    .11464E-03
   3  Normalizat    1.1653        .28207        .27230E-03    .45090E-05
   4  Prefactor     .81688        .20050        .25267E-03    .53948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04116
  Index      = 2.74678
  Normalizat = 1.16528
  Prefactor  = 0.816879
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.390     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0412        7.9052        .47036E-05   -1.5259    
   2  Index         2.7468        1.0937        .20137E-03   -.46749    
   3  Normalizat    1.1653        .25880        .10892E-04   -.87683    
   4  Prefactor     .81688        .19229        .10107E-04   -.99109    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15939e-10
Minuit parameter uncertainties:
  1  7.90686
  2  1.10496
  3  0.259085
  4  0.192453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/244147': 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) = 5785.39028857
delta logL = 0.112492766193

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  5.041e+00  7.907e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.747e+00  1.105e+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:  8.169e-01  1.925e-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:  1.165e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.75 +/- 1.10
Photon Flux (Free Index): 7.47e-08 +/- 1.01e-07
Energy Flux (Free Index): 1.74e-05 +/- 1.40e-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/244147/cmap_HighResolution_478310401_478569601_4FGL_J1200.2+0201_daily_bin922.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='1.74e-05', photon_flux_error='2.85e-08', dlogl='1.12e-01', energy_flux='1.58e-05', photon_flux2='7.47e-08', job_status='DONE', time_completed='2021-09-04 20:05:23.459544', photon_index_error2='1.10', photon_index2='2.75', ts='4.19', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.22', time_epoch_completed='1630811123.46', return_code='0', job_id='244147', GAL2='0.82', EG2='1.17', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.01e-07', ts2='4.45', photon_index='2.11' WHERE bin_id='922' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 244147: <4FGL_J1200.2+0201_daily_bin922> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin922> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 19:50:31 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:50:32 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:50:32 2021
Terminated at Sat Sep  4 20:05:24 2021
Results reported at Sat Sep  4 20:05:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin922 180.055 2.0172 478310401 478569601 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 :                                   771.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

