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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin976
RA = 180.055, Dec = 2.0172
tmin = 492307201, tmax = 492566401
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='245507', job_status='RUN', time_executed='2021-09-04 19:58:14.877861', time_epoch_executed='1630810694.88' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245507

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245507/ft1_4FGL_J1200.2+0201_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245507/ft2_4FGL_J1200.2+0201_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245507/ft1_4FGL_J1200.2+0201_daily_bin976.fits outfile=/scratch/kocevski/245507/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin976.fits ra=180.055 dec=2.0172 rad=12.0 tmin=492307201.0 tmax=492566401.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.69
user 3.44
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245507/ft1_filtered_4FGL_J1200.2+0201_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/245507/ft2_4FGL_J1200.2+0201_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/245507/ltcube_492307201_492566401_4FGL_J1200.2+0201_daily_bin976.fits outfile=/scratch/kocevski/245507/expmap_492307201_492566401_4FGL_J1200.2+0201_daily_bin976.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/245507/ltcube_492307201_492566401_4FGL_J1200.2+0201_daily_bin976.fits
.....................!
real 192.65
user 187.32
sys 4.92

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/245507/ft1_filtered_4FGL_J1200.2+0201_daily_bin976.fits scfile=/scratch/kocevski/245507/ft2_4FGL_J1200.2+0201_daily_bin976.fits outfile=/scratch/kocevski/245507/cmap_492307201_492566401_4FGL_J1200.2+0201_daily_bin976.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245507/ft1_filtered_4FGL_J1200.2+0201_daily_bin976.fits scfile=/scratch/kocevski/245507/ft2_4FGL_J1200.2+0201_daily_bin976.fits outfile=/scratch/kocevski/245507/cmap_HighResolution_492307201_492566401_4FGL_J1200.2+0201_daily_bin976.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3024       1.0000         .10000E-03   10000.    
     2 'norm      '    26.794       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80042E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2783       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8660       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .39223E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    84.865       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.126       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50296E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25554E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.768       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27104E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18891E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47124E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44758E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30661E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14659E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52011E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8812       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6409       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21314E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    45.271       1.0000         .10000E-03   10000.    
    24 'Prefactor '    152.13       1.0000         .10000E-03   10000.    
    25 'norm      '    .19007       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.0109       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .21349E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2878       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85186       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=   4389.878     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     3696 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2430        7.4152       -.17572E-06   -.16988E-03
   2  norm          26.244        28.721        .42323E-07   -.18497E-06
   3  Prefactor     .10000E-03    1.2184        .52081E-08** at limit **
   4  Prefactor     .10000E-03    62.200       -.35141E-07** at limit **
   5  norm          2.3177        5.3471       -.39683E-06   -.37445E-03
   6  Prefactor     6.8480        5.0506       -.34427E-08   -.28009E-04
   7  Prefactor     .10000E-03    24.264        .11150E-05** at limit **
   8  Prefactor     90.666        143.13       -.83610E-06    .36969E-05
   9  Prefactor     10.240        11.420       -.35735E-06   -.20498E-04
  10  Prefactor     .10000E-03    33.104       -.52814E-05** at limit **
  11  Prefactor     .10000E-03    6.5322        .65232E-08** at limit **
  12  Prefactor     20.967        18.106       -.96881E-07    .21308E-06
  13  Prefactor     .10000E-03    14.922        .10444E-06** at limit **
  14  Prefactor     .10000E-03    37.509        .23262E-06** at limit **
  15  Prefactor     .10000E-03    15.725       -.11206E-06** at limit **
  16  Prefactor     .10000E-03    14.602        .50073E-07** at limit **
  17  Prefactor     .10000E-03    19.133       -.25646E-06** at limit **
  18  Prefactor     .10000E-03    24.545       -.16970E-05** at limit **
  19  Prefactor     .10000E-03    35.694       -.32979E-06** at limit **
  20  norm          2.8826        3.0952       -.18903E-07   -.17498E-03
  21  norm          3.5678        6.4463       -.98550E-06   -.25494E-03
  22  Prefactor     .10000E-03    18.074       -.32409E-07** at limit **
  23  norm          46.708        83.808        .31247E-05    .27836E-04
  24  Prefactor     152.34        146.25        .23212E-04    .58007E-05
  25  norm          .18835        .59390       -.23953E-06   -.10348E-02
  26  Prefactor     .10000E-03    5.4256        .17574E-07** at limit **
  27  norm          4.0137        2.4119       -.36244E-07    .19109E-04
  28  Prefactor     .10000E-03    5.2477        .26015E-07** at limit **
  29  Prefactor     .10000E-03    17.281        .29233E-06** at limit **
  30  Normalizat    1.2854        .25719        .56165E-06    .56842E-04
  31  Prefactor     .85290        .19454       -.33501E-06    .74386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24303
  norm       = 26.2438
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31766
  Prefactor  = 6.84805
  Prefactor  = 0.0001
  Prefactor  = 90.6656
  Prefactor  = 10.2396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88262
  norm       = 3.56776
  Prefactor  = 0.0001
  norm       = 46.7077
  Prefactor  = 152.344
  norm       = 0.188346
  Prefactor  = 0.0001
  norm       = 4.01374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28539
  Prefactor  = 0.852898
 **********
 **   18 **HESSE 
 **********

 FCN=   4389.878     FROM HESSE     STATUS=OK           618 CALLS     4314 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2430        7.4205        .14843E-03   -1.5170    
   2  norm          26.244        28.730        .77392E-04   -1.4683    
   3  Prefactor     .10000E-03    1.2404        .71382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    62.694        .20902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3177        5.3351        .22182E-03   -1.5403    
   6  Prefactor     6.8480        5.0369        .12029E-03   -1.5185    
   7  Prefactor     .10000E-03    24.352        .19519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     90.666        144.41        .43607E-04   -1.3801    
   9  Prefactor     10.240        11.418        .12592E-03   -1.5068    
  10  Prefactor     .10000E-03    33.098        .21155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6582        .16534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.967        18.123        .87889E-04   -1.4792    
  13  Prefactor     .10000E-03    15.062        .19936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.514        .18234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.728        .21186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.606        .19351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.199        .19805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.611        .20489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.441        .38295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8826        3.0639        .11500E-03   -1.5368    
  21  norm          3.5678        6.4196        .15460E-03   -1.5330    
  22  Prefactor     .10000E-03    18.094        .20171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          46.708        85.546        .59589E-04   -1.4340    
  24  Prefactor     152.34        144.74        .16340E-03   -1.3233    
  25  norm          .18835        .65971        .73745E-03   -1.5621    
  26  Prefactor     .10000E-03    5.4500        .15071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.0137        2.3913        .75126E-04   -1.5307    
  28  Prefactor     .10000E-03    5.2687        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    17.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2854        .30552        .26817E-03   -.84003    
  31  Prefactor     .85290        .23031        .25435E-03   -.97807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56216e-10
Minuit parameter uncertainties:
  1  7.4214
  2  28.7455
  3  1.73475e-07
  4  4.73978e-05
  5  5.3362
  6  5.03719
  7  2.59617e-06
  8  144.973
  9  11.4208
  10  9.36411e-06
  11  1.25271e-06
  12  18.1276
  13  4.16321e-06
  14  1.7993e-06
  15  1.05795e-06
  16  3.86617e-06
  17  5.38272e-06
  18  6.22252e-06
  19  8.14425e-05
  20  3.06406
  21  6.42088
  22  3.34833e-05
  23  85.7718
  24  145.083
  25  0.659733
  26  2.34169e-06
  27  2.3914
  28  9.42744e-07
  29  2.49011e-06
  30  0.305945
  31  0.23057
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.253e-06  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.529e-01  2.306e-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.285e+00  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245507/likelihoodResults_492307201_492566401_4FGL_J1200.2+0201_daily_bin976.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4389.87902407
delta logL = -0.000714887966751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4389.87830926
delta logL = -7.71633494878e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0871       1.0000          .0000       10.000    
     3 'Normalizat'    1.2854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85290       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=   4389.878     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10040E-03    38.460        .16889E-02** at limit **
   2  Index         2.0530        8.8795        .50000        .21028E-04
   3  Normalizat    1.2854        .14577E-01    .26817E-03   -.21034E-03
   4  Prefactor     .85290        .11587E-01    .25435E-03    .32182E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100398
  Index      = 2.05305
  Normalizat = 1.28539
  Prefactor  = 0.852901
 **********
 **   18 **HESSE 
 **********

 FCN=   4389.878     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10040E-03    174.72        .33777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0530        7.4271        .50000       -.63030    
   3  Normalizat    1.2854        .31804E-01    .53633E-04   -.84004    
   4  Prefactor     .85290        .25281E-01    .10174E-04   -.97807    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33041e-08
Minuit parameter uncertainties:
  1  0.0167342
  2  249.666
  3  0.0318046
  4  0.025281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245507': 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): 102
logL (Free Index) = 4389.87830887
delta logL = 3.06479705614e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.004e-04  1.673e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.053e+00  2.497e+02  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.529e-01  2.528e-02  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.285e+00  3.180e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.055 2.017

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/245507/cmap_HighResolution_492307201_492566401_4FGL_J1200.2+0201_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2021-09-04 20:10:13.681347', job_id='245507', GAL2='0.85', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630811413.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='976' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:10:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 245507: <4FGL_J1200.2+0201_daily_bin976> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin976> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 19:55:28 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:55:29 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:55:29 2021
Terminated at Sat Sep  4 20:10:14 2021
Results reported at Sat Sep  4 20:10:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin976 180.055 2.0172 492307201 492566401 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

