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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin677
RA = 180.055, Dec = 2.0172
tmin = 414806401, tmax = 415065601
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='242529', job_status='RUN', time_executed='2021-09-04 19:48:37.151164', time_epoch_executed='1630810117.15' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242529

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242529/ft1_4FGL_J1200.2+0201_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242529/ft2_4FGL_J1200.2+0201_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242529/ft1_4FGL_J1200.2+0201_daily_bin677.fits outfile=/scratch/kocevski/242529/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin677.fits ra=180.055 dec=2.0172 rad=12.0 tmin=414806401.0 tmax=415065601.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.89
user 5.63
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242529/ft2_4FGL_J1200.2+0201_daily_bin677.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/242529/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/242529/ft1_filtered_4FGL_J1200.2+0201_daily_bin677.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242529/ft1_filtered_4FGL_J1200.2+0201_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/242529/ft2_4FGL_J1200.2+0201_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/242529/ltcube_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.fits outfile=/scratch/kocevski/242529/expmap_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.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/242529/ltcube_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.fits
.....................!
real 190.56
user 185.52
sys 4.66

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/242529/ft1_filtered_4FGL_J1200.2+0201_daily_bin677.fits scfile=/scratch/kocevski/242529/ft2_4FGL_J1200.2+0201_daily_bin677.fits outfile=/scratch/kocevski/242529/cmap_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242529/ft1_filtered_4FGL_J1200.2+0201_daily_bin677.fits scfile=/scratch/kocevski/242529/ft2_4FGL_J1200.2+0201_daily_bin677.fits outfile=/scratch/kocevski/242529/cmap_HighResolution_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.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.54
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/242529/ft1_filtered_4FGL_J1200.2+0201_daily_bin677.fits', '/scratch/kocevski/242529/ft2_4FGL_J1200.2+0201_daily_bin677.fits', expMap='/scratch/kocevski/242529/expmap_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.fits', expCube='/scratch/kocevski/242529/ltcube_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/242529/Model_4FGL_J1200.2+0201_daily_bin677.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/242529/ft1_filtered_4FGL_J1200.2+0201_daily_bin677.fits
Spacecraft file(s): /scratch/kocevski/242529/ft2_4FGL_J1200.2+0201_daily_bin677.fits
Exposure map: /scratch/kocevski/242529/expmap_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.fits
Exposure cube: /scratch/kocevski/242529/ltcube_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/242529/Model_4FGL_J1200.2+0201_daily_bin677.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3809.43088215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8528       1.0000         .10000E-03   10000.    
     2 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.491       1.0000         .10000E-03   10000.    
     5 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9768       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46308E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2678       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44756E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.158       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12711E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13119E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12840E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6942       1.0000         .10000E-03   10000.    
    20 'norm      '    .21011E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12317E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11324E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.6027       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.998       1.0000         .10000E-03   10000.    
    27 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .14715E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2360       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79810       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=   3809.415     FROM MIGRAD    STATUS=CONVERGED   1506 CALLS     5467 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8514        5.3391        .22585E-03    .44523E-04
   2  norm          .10000E-03    60.852        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.5421        .18851E-03** at limit **
   4  Prefactor     22.502        34.544        .84461E-04    .55187E-05
   5  norm          .10000E-03    6.0924        .14827E-02** at limit **
   6  Prefactor     8.9632        6.8535        .13043E-03   -.17477E-04
   7  Prefactor     .10000E-03    47.175        .18142E-02** at limit **
   8  Prefactor     .10000E-03    151.21        .21195E-02** at limit **
   9  Prefactor     3.2690        6.8200        .11201E-02    .16321E-04
  10  Prefactor     .41704        67.950        .14434        .69821E-04
  11  Prefactor     13.162        13.570        .11042E-03    .57140E-05
  12  Prefactor     .10000E-03    9.4711        .18142E-02** at limit **
  13  Prefactor     .10000E-03    34.085        .18142E-02** at limit **
  14  Prefactor     .10000E-03    65.059        .18142E-02** at limit **
  15  Prefactor     .10000E-03    56.689        .18142E-02** at limit **
  16  Prefactor     .10000E-03    55.134        .18142E-02** at limit **
  17  Prefactor     .10000E-03    57.031        .18142E-02** at limit **
  18  Prefactor     .10000E-03    24.871        .18142E-02** at limit **
  19  Prefactor     5.7428        30.805        .16833E-03    .76655E-05
  20  norm          .10002E-03    16.219        .28200E-01** at limit **
  21  norm          .10000E-03    35.266        .19169E-02** at limit **
  22  Prefactor     .10000E-03    13.091        .18142E-02** at limit **
  23  norm          .10000E-03    56.459        .18142E-02** at limit **
  24  Prefactor     .10000E-03    66.271        .18142E-02** at limit **
  25  norm          3.6038        1.0030        .29881E-04    .35592E-03
  26  Prefactor     28.998        15.295        .74400E-04    .43779E-04
  27  norm          .10000E-03    1.2836        .13448E-03** at limit **
  28  Prefactor     .10000E-03    4.4869        .12761E-02** at limit **
  29  Prefactor     .10000E-03    217.41        .18142E-02** at limit **
  30  Normalizat    1.2364        .30540        .26335E-03    .35981E-04
  31  Prefactor     .79758        .23821        .25522E-03    .46170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85139
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5016
  norm       = 0.0001
  Prefactor  = 8.96322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.26901
  Prefactor  = 0.41704
  Prefactor  = 13.1615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.74283
  norm       = 0.000100018
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.60382
  Prefactor  = 28.9977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23643
  Prefactor  = 0.797583
 **********
 **   18 **HESSE 
 **********

 FCN=   3809.415     FROM HESSE     STATUS=OK           612 CALLS     6079 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8514        5.3372        .90342E-05   -1.5436    
   2  norm          .10000E-03    60.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5422        .37701E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.502        34.534        .33784E-05   -1.4759    
   5  norm          .10000E-03    6.0933        .29654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9632        6.8534        .52170E-05   -1.5109    
   7  Prefactor     .10000E-03    47.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    151.21        .42390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2690        6.8190        .44803E-04   -1.5346    
  10  Prefactor     .41704        67.687        .14475       -1.5579    
  11  Prefactor     13.162        13.567        .44170E-05   -1.4982    
  12  Prefactor     .10000E-03    9.4719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    65.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    56.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    55.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    57.043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7428        25.263        .67332E-05   -1.5229    
  20  norm          .10002E-03    8.6056        .36718E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    35.717        .38338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    56.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    66.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.6038        1.0008        .11952E-05   -1.5328    
  26  Prefactor     28.998        15.296        .29760E-05   -1.4630    
  27  norm          .10000E-03    1.2836        .26895E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    4.4870        .25521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    217.59        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2364        .30550        .10534E-04   -.85484    
  31  Prefactor     .79758        .23833        .10209E-04   -.99817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52476e-10
Minuit parameter uncertainties:
  1  5.33853
  2  4.41376e-06
  3  1.16396e-06
  4  34.5644
  5  2.50423e-05
  6  6.85402
  7  6.58668e-05
  8  0.000271851
  9  6.82059
  10  10.637
  11  13.5704
  12  4.79328e-06
  13  2.39312e-05
  14  8.23366e-05
  15  4.16174e-05
  16  6.10697e-05
  17  7.75863e-05
  18  2.54801e-06
  19  24.1066
  20  0.000777652
  21  8.32337e-05
  22  2.42644e-06
  23  1.66696e-05
  24  5.56513e-05
  25  1.0008
  26  15.2978
  27  3.22965e-06
  28  7.21325e-06
  29  0.000332682
  30  0.305947
  31  0.238639
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.316e+01  1.357e+01  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.976e-01  2.386e-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.236e+00  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.40
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 4.95e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 2.75e-05

TS (Fixed Index): 1.40
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242529/likelihoodResults_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3809.41457178
delta logL = 2.1494338398e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3809.41456959
delta logL = 4.34307867181e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.199       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1067       1.0000          .0000       10.000    
     3 'Normalizat'    1.2365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79760       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=   3809.415     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      254 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.201        20.541        .11025E-03   -.26171E-03
   2  Index         2.1068        .87924        .69015E-02   -.99390E-04
   3  Normalizat    1.2366        .29849        .26332E-03    .20782E-03
   4  Prefactor     .79749        .23687        .25528E-03    .31337E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2009
  Index      = 2.10679
  Normalizat = 1.23658
  Prefactor  = 0.79749
 **********
 **   18 **HESSE 
 **********

 FCN=   3809.415     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.201        18.908        .44101E-05   -1.4981    
   2  Index         2.1068        .80946        .27606E-03   -.61706    
   3  Normalizat    1.2366        .29794        .52664E-04   -.85480    
   4  Prefactor     .79749        .23647        .51056E-04   -.99821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89075e-10
Minuit parameter uncertainties:
  1  18.9165
  2  0.814867
  3  0.298351
  4  0.236776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242529': 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) = 3809.41456944
delta logL = 4.49658000434e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.320e+01  1.892e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.107e+00  8.149e-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:  7.975e-01  2.368e-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.237e+00  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.11 +/- 0.81
Photon Flux (Free Index): 4.94e-08 +/- 5.89e-08
Energy Flux (Free Index): 2.67e-05 +/- 4.10e-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/242529/cmap_HighResolution_414806401_415065601_4FGL_J1200.2+0201_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='4.95e-08', energy_flux2='2.67e-05', photon_flux_error='5.10e-08', dlogl='4.50e-06', energy_flux='2.66e-05', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-09-04 20:01:24.528937', photon_index_error2='0.81', photon_index2='2.11', ts='1.40', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='4.10e-05', EG='1.24', time_epoch_completed='1630810884.53', return_code='0', job_id='242529', GAL2='0.80', EG2='1.24', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='5.89e-08', ts2='1.40', photon_index='2.11' WHERE bin_id='677' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 242529: <4FGL_J1200.2+0201_daily_bin677> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin677> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:30 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45: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:45:32 2021
Terminated at Sat Sep  4 20:01:25 2021
Results reported at Sat Sep  4 20:01:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin677 180.055 2.0172 414806401 415065601 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            955 sec.

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

