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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin759
RA = 180.055, Dec = 2.0172
tmin = 436060801, tmax = 436320001
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='242653', job_status='RUN', time_executed='2021-09-04 19:47:39.064993', time_epoch_executed='1630810059.07' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242653/ft1_4FGL_J1200.2+0201_daily_bin759.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242653/ft2_4FGL_J1200.2+0201_daily_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242653/ft1_4FGL_J1200.2+0201_daily_bin759.fits outfile=/scratch/kocevski/242653/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin759.fits ra=180.055 dec=2.0172 rad=12.0 tmin=436060801.0 tmax=436320001.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.84
user 5.46
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242653/ft1_filtered_4FGL_J1200.2+0201_daily_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/242653/ft2_4FGL_J1200.2+0201_daily_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/242653/ltcube_436060801_436320001_4FGL_J1200.2+0201_daily_bin759.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/242653/ft2_4FGL_J1200.2+0201_daily_bin759.fits
.....................!
real 12.12
user 11.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242653/ft1_filtered_4FGL_J1200.2+0201_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/242653/ft2_4FGL_J1200.2+0201_daily_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/242653/ltcube_436060801_436320001_4FGL_J1200.2+0201_daily_bin759.fits outfile=/scratch/kocevski/242653/expmap_436060801_436320001_4FGL_J1200.2+0201_daily_bin759.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/242653/ltcube_436060801_436320001_4FGL_J1200.2+0201_daily_bin759.fits
.....................!
real 191.27
user 185.49
sys 5.21

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/242653/ft1_filtered_4FGL_J1200.2+0201_daily_bin759.fits scfile=/scratch/kocevski/242653/ft2_4FGL_J1200.2+0201_daily_bin759.fits outfile=/scratch/kocevski/242653/cmap_436060801_436320001_4FGL_J1200.2+0201_daily_bin759.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242653/ft1_filtered_4FGL_J1200.2+0201_daily_bin759.fits scfile=/scratch/kocevski/242653/ft2_4FGL_J1200.2+0201_daily_bin759.fits outfile=/scratch/kocevski/242653/cmap_HighResolution_436060801_436320001_4FGL_J1200.2+0201_daily_bin759.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69530E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.012       1.0000         .10000E-03   10000.    
     5 'norm      '    5.1812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.761       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.933       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .60104E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.907       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11576E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.017       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0486       1.0000         .10000E-03   10000.    
    21 'norm      '    6.9412       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10961E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11253E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.6308       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.1777       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.1182       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1023       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82352       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=   5041.060     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4158 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1767       -.73248E-07** at limit **
   2  norm          .10000E-03    10.853        .12991E-06** at limit **
   3  Prefactor     .72371E-01    1.2444       -.37593E-07   -.38133E-03
   4  Prefactor     19.014        16.752        .28161E-06    .16609E-04
   5  norm          5.1802        5.8245        .18314E-05   -.35810E-05
   6  Prefactor     .10000E-03    2.2956       -.45446E-07** at limit **
   7  Prefactor     .10000E-03    6.3177        .49745E-06** at limit **
   8  Prefactor     .10000E-03    104.65        .29251E-04** at limit **
   9  Prefactor     .10000E-03    2.8816       -.28198E-07** at limit **
  10  Prefactor     .10000E-03    16.240        .20227E-06** at limit **
  11  Prefactor     10.764        8.3786       -.11728E-05   -.92965E-04
  12  Prefactor     28.942        22.053       -.60449E-06   -.13192E-03
  13  Prefactor     .10000E-03    5.7983       -.34247E-05** at limit **
  14  Prefactor     .10000E-03    131.88        .37792E-04** at limit **
  15  Prefactor     .10016E-03    248.67       -.15229E-03** at limit **
  16  Prefactor     .10000E-03    36.467        .10048E-04** at limit **
  17  Prefactor     33.896        28.478       -.73904E-07    .62831E-04
  18  Prefactor     .10000E-03    122.97        .41186E-04** at limit **
  19  Prefactor     17.043        14.567        .88057E-06    .43617E-04
  20  norm          1.0446        2.9064       -.79186E-06   -.84237E-03
  21  norm          6.9426        4.5897       -.33014E-06   -.80562E-03
  22  Prefactor     .10000E-03    38.326       -.31563E-05** at limit **
  23  norm          .10000E-03    28.614       -.30533E-05** at limit **
  24  Prefactor     .10000E-03    78.382       -.44199E-04** at limit **
  25  norm          2.6309        .75940        .32933E-08   -.36476E-03
  26  Prefactor     .10000E-03    5.6391        .29724E-05** at limit **
  27  norm          6.1782        2.3882       -.26890E-07   -.10770E-03
  28  Prefactor     .10000E-03    4.1922       -.80754E-07** at limit **
  29  Prefactor     8.1275        47.229        .67340E-05   -.93531E-05
  30  Normalizat    1.1022        .22043       -.16977E-06    .19195E-03
  31  Prefactor     .82341        .17219        .15363E-06    .33474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0723714
  Prefactor  = 19.0137
  norm       = 5.18016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.764
  Prefactor  = 28.9425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100157
  Prefactor  = 0.0001
  Prefactor  = 33.8956
  Prefactor  = 0.000100001
  Prefactor  = 17.0432
  norm       = 1.04465
  norm       = 6.94258
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63094
  Prefactor  = 0.0001
  norm       = 6.17823
  Prefactor  = 0.0001
  Prefactor  = 8.12751
  Normalizat = 1.10218
  Prefactor  = 0.823408
 **********
 **   18 **HESSE 
 **********

 FCN=   5041.060     FROM HESSE     STATUS=OK           616 CALLS     4774 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2527        .24697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72371E-01    11.483        .15028E-02   -1.5654    
   4  Prefactor     19.014        16.748        .91857E-04   -1.4836    
   5  norm          5.1802        5.8034        .17391E-03   -1.5253    
   6  Prefactor     .10000E-03    2.3821        .20945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3187        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    104.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8826        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.764        8.3923        .12214E-03   -1.5052    
  12  Prefactor     28.942        22.081        .74483E-04   -1.4631    
  13  Prefactor     .10000E-03    5.8128        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    132.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10016E-03    248.56        .37875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.896        28.457        .68818E-04   -1.4543    
  18  Prefactor     .10000E-03    125.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.043        14.168        .97091E-04   -1.4882    
  20  norm          1.0446        2.7566        .16748E-03   -1.5504    
  21  norm          6.9426        4.5956        .11424E-03   -1.5181    
  22  Prefactor     .10000E-03    38.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    28.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    78.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.6309        .75935        .30778E-04   -1.5384    
  26  Prefactor     .10000E-03    5.7737        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.1782        2.3872        .65217E-04   -1.5211    
  28  Prefactor     .10000E-03    4.2062        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.1275        47.150        .14071E-03   -1.5138    
  30  Normalizat    1.1022        .25795        .27035E-03   -.89682    
  31  Prefactor     .82341        .20079        .24820E-03   -.98871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29364e-09
Minuit parameter uncertainties:
  1  4.33458e-06
  2  3.77932e-06
  3  1.82234
  4  16.7526
  5  5.80402
  6  1.77881e-05
  7  1.74803e-06
  8  3.66197e-05
  9  1.5161e-07
  10  6.24911e-05
  11  8.39323
  12  22.0874
  13  2.95699e-05
  14  1.38215e-05
  15  0.0125655
  16  1.67334e-05
  17  28.4688
  18  0.000580404
  19  14.171
  20  2.75689
  21  4.59585
  22  4.16191e-06
  23  1.48833e-05
  24  7.21333e-06
  25  0.759354
  26  1.90842e-05
  27  2.38723
  28  3.00295e-06
  29  39.1984
  30  0.258245
  31  0.200969
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.076e+01  8.393e+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:  8.234e-01  2.010e-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.102e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.29
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.70e-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) = 5040.96822146
delta logL = 0.0914148036918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5040.96191715
delta logL = 0.0977191190623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.654       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7610       1.0000          .0000       10.000    
     3 'Normalizat'    1.1228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81541       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=   5040.962     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      263 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.656        10.377        .11735E-03    .36814E-04
   2  Index         1.7618        .83445        .10553E-01    .35172E-05
   3  Normalizat    1.1227        .24967        .26825E-03    .69124E-04
   4  Prefactor     .81544        .19934        .24936E-03   -.59680E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6565
  Index      = 1.76176
  Normalizat = 1.12273
  Prefactor  = 0.815442
 **********
 **   18 **HESSE 
 **********

 FCN=   5040.962     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.656        10.467        .46940E-05   -1.5025    
   2  Index         1.7618        .84113        .42214E-03   -.70449    
   3  Normalizat    1.1227        .24980        .10730E-04   -.89025    
   4  Prefactor     .81544        .19951        .99742E-05   -.99162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98337e-11
Minuit parameter uncertainties:
  1  10.4689
  2  0.848123
  3  0.250064
  4  0.199685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242653': 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) = 5040.96191676
delta logL = 0.0977195029909

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.166e+01  1.047e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.762e+00  8.481e-01  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.154e-01  1.997e-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.123e+00  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.47
Ra Dec: 180.055 2.017
Photon Index (Free Index): 1.76 +/- 0.85
Photon Flux (Free Index): 2.35e-08 +/- 4.15e-08
Energy Flux (Free Index): 3.16e-05 +/- 4.42e-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/242653/cmap_HighResolution_436060801_436320001_4FGL_J1200.2+0201_daily_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='3.16e-05', photon_flux_error='3.16e-08', dlogl='9.77e-02', energy_flux='2.18e-05', photon_flux2='2.35e-08', job_status='DONE', time_completed='2021-09-04 19:59:42.381825', photon_index_error2='0.85', photon_index2='1.76', ts='5.29', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='4.42e-05', EG='1.10', time_epoch_completed='1630810782.38', return_code='0', job_id='242653', GAL2='0.82', EG2='1.12', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='4.15e-08', ts2='5.47', photon_index='2.11' WHERE bin_id='759' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:59:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 242653: <4FGL_J1200.2+0201_daily_bin759> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin759> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:41 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:43 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:43 2021
Terminated at Sat Sep  4 19:59:43 2021
Results reported at Sat Sep  4 19:59:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin759 180.055 2.0172 436060801 436320001 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 :                                   721.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            842 sec.

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

