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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin576
RA = 180.055, Dec = 2.0172
tmin = 388627201, tmax = 388886401
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='241380', job_status='RUN', time_executed='2021-09-04 19:41:06.859441', time_epoch_executed='1630809666.86' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241380

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241380/ft1_4FGL_J1200.2+0201_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241380/ft2_4FGL_J1200.2+0201_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241380/ft1_4FGL_J1200.2+0201_daily_bin576.fits outfile=/scratch/kocevski/241380/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin576.fits ra=180.055 dec=2.0172 rad=12.0 tmin=388627201.0 tmax=388886401.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.99
user 3.75
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241380/ft1_filtered_4FGL_J1200.2+0201_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/241380/ft2_4FGL_J1200.2+0201_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/241380/ltcube_388627201_388886401_4FGL_J1200.2+0201_daily_bin576.fits outfile=/scratch/kocevski/241380/expmap_388627201_388886401_4FGL_J1200.2+0201_daily_bin576.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/241380/ltcube_388627201_388886401_4FGL_J1200.2+0201_daily_bin576.fits
.....................!
real 190.93
user 185.64
sys 4.81

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/241380/ft1_filtered_4FGL_J1200.2+0201_daily_bin576.fits scfile=/scratch/kocevski/241380/ft2_4FGL_J1200.2+0201_daily_bin576.fits outfile=/scratch/kocevski/241380/cmap_388627201_388886401_4FGL_J1200.2+0201_daily_bin576.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/241380/ft1_filtered_4FGL_J1200.2+0201_daily_bin576.fits scfile=/scratch/kocevski/241380/ft2_4FGL_J1200.2+0201_daily_bin576.fits outfile=/scratch/kocevski/241380/cmap_HighResolution_388627201_388886401_4FGL_J1200.2+0201_daily_bin576.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.204       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.228       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9098       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4521       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .69104       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.219       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1584       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.059       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1642       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.5189       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .33287E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .81035       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1514       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=   4768.484     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     4687 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9852        .20882E-05** at limit **
   2  norm          12.197        28.090       -.49626E-05   -.88070E-04
   3  Prefactor     1.2900        2.3096        .44818E-07   -.44356E-03
   4  Prefactor     33.223        41.159       -.40097E-05   -.35207E-04
   5  norm          1.9100        6.3834       -.65947E-06   -.59102E-03
   6  Prefactor     2.4520        4.8999       -.12892E-05   -.53895E-03
   7  Prefactor     .72027        12.855       -.55225E-06   -.64462E-04
   8  Prefactor     .10000E-03    32.408        .79718E-05** at limit **
   9  Prefactor     .10000E-03    6.0833        .92484E-06** at limit **
  10  Prefactor     30.226        53.367        .10634E-04    .17177E-04
  11  Prefactor     .10000E-03    3.2472        .11794E-06** at limit **
  12  Prefactor     .10000E-03    7.0618        .11711E-05** at limit **
  13  Prefactor     .10000E-03    26.449       -.46266E-05** at limit **
  14  Prefactor     .10000E-03    40.605       -.94312E-05** at limit **
  15  Prefactor     77.401        58.996        .68155E-05    .32724E-04
  16  Prefactor     53.657        51.811       -.90120E-05    .15379E-04
  17  Prefactor     .10000E-03    6.8178       -.32232E-05** at limit **
  18  Prefactor     .10000E-03    16.922       -.38011E-05** at limit **
  19  Prefactor     .10000E-03    4.6042       -.38803E-08** at limit **
  20  norm          .10000E-03    .67646        .76337E-08** at limit **
  21  norm          2.1579        3.3164       -.15691E-05   -.58517E-03
  22  Prefactor     .10000E-03    34.847        .66798E-05** at limit **
  23  norm          .10000E-03    16.309        .36097E-05** at limit **
  24  Prefactor     39.155        179.28        .15087E-03    .34142E-05
  25  norm          1.1640        .63780        .37513E-08   -.59258E-03
  26  Prefactor     .10000E-03    3.8618        .30307E-07** at limit **
  27  norm          4.5188        2.0119       -.24910E-06   -.13674E-03
  28  Prefactor     .10000E-03    9.8588        .54081E-06** at limit **
  29  Prefactor     .10000E-03    27.546       -.19369E-05** at limit **
  30  Normalizat    .81066        .24566        .19701E-05   -.80083E-04
  31  Prefactor     1.1511        .19251       -.26033E-05    .11771E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 12.1968
  Prefactor  = 1.29004
  Prefactor  = 33.2233
  norm       = 1.91003
  Prefactor  = 2.45203
  Prefactor  = 0.720272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.2262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 77.4013
  Prefactor  = 53.657
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.15792
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 39.1546
  norm       = 1.16403
  Prefactor  = 0.0001
  norm       = 4.51877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.810656
  Prefactor  = 1.1511
 **********
 **   18 **HESSE 
 **********

 FCN=   4768.484     FROM HESSE     STATUS=OK           618 CALLS     5305 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0799        .35300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.197        27.906        .11467E-03   -1.5009    
   3  Prefactor     1.2900        2.2695        .13333E-03   -1.5481    
   4  Prefactor     33.223        41.080        .69515E-04   -1.4555    
   5  norm          1.9100        6.3123        .29534E-03   -1.5432    
   6  Prefactor     2.4520        4.8309        .19424E-03   -1.5395    
   7  Prefactor     .72027        65.482        .48073E-02   -1.5538    
   8  Prefactor     .10000E-03    32.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1045        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.226        53.273        .72885E-04   -1.4608    
  11  Prefactor     .10000E-03    3.2529        .12150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0683        .17922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     77.401        58.958        .45646E-04   -1.3946    
  16  Prefactor     53.657        51.907        .54752E-04   -1.4242    
  17  Prefactor     .10000E-03    6.8191        .17608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6142        .14469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .67795        .55460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1579        3.2837        .14391E-03   -1.5414    
  22  Prefactor     .10000E-03    34.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    16.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     39.155        177.33        .64134E-04   -1.4456    
  25  norm          1.1640        .62673        .37512E-04   -1.5492    
  26  Prefactor     .10000E-03    3.8673        .13251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5188        2.0091        .62607E-04   -1.5283    
  28  Prefactor     .10000E-03    41.293        .41784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    27.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .81066        .28283        .31631E-03   -.99675    
  31  Prefactor     1.1511        .22296        .22099E-03   -.87850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28072e-08
Minuit parameter uncertainties:
  1  0.000218586
  2  27.9361
  3  2.26965
  4  41.1145
  5  6.31446
  6  4.83166
  7  13.75
  8  2.74602e-05
  9  6.39121e-06
  10  53.3574
  11  2.06287e-05
  12  1.72766e-06
  13  0.000229244
  14  3.92586e-06
  15  59.0024
  16  51.9507
  17  8.84766e-06
  18  7.44556e-06
  19  1.00337e-05
  20  1.1863e-06
  21  3.28396
  22  0.000339059
  23  2.50692e-05
  24  167.481
  25  0.62673
  26  2.27977e-06
  27  2.00917
  28  0.00016177
  29  1.01881e-05
  30  0.283344
  31  0.223144
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.151e+00  2.231e-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:  8.107e-01  2.833e-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: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241380/likelihoodResults_388627201_388886401_4FGL_J1200.2+0201_daily_bin576.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) = 4768.48501943
delta logL = -0.00144173112858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4768.48357753
delta logL = 1.61467141879e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0907       1.0000          .0000       10.000    
     3 'Normalizat'    .81070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1511       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=   4768.484     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      235 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10111E-03    45.559        .12317E-02** at limit **
   2  Index         2.0368        5.0260        .50000        .38578E-04
   3  Normalizat    .81066        .20999E-01    .31631E-03   -.34540E-04
   4  Prefactor     1.1511        .17292E-01    .22099E-03    .67671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101112
  Index      = 2.03683
  Normalizat = 0.810658
  Prefactor  = 1.1511
 **********
 **   18 **HESSE 
 **********

 FCN=   4768.484     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10111E-03    186.65        .24634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0368        5.3963        .50000       -.63432    
   3  Normalizat    .81066        .44798E-01    .12652E-04   -.99675    
   4  Prefactor     1.1511        .36886E-01    .44198E-04   -.87850    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.42606e-08
Minuit parameter uncertainties:
  1  0.0289049
  2  462.159
  3  0.0447997
  4  0.0368864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241380': 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) = 4768.48357709
delta logL = 6.02465661359e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.011e-04  2.890e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.037e+00  4.622e+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:  1.151e+00  3.689e-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:  8.107e-01  4.480e-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/241380/cmap_HighResolution_388627201_388886401_4FGL_J1200.2+0201_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-09-04 19:54:26.027682', job_id='241380', GAL2='1.15', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630810466.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='6.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='576' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:54:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 241380: <4FGL_J1200.2+0201_daily_bin576> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin576> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:57 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:58 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:40:58 2021
Terminated at Sat Sep  4 19:54:27 2021
Results reported at Sat Sep  4 19:54:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin576 180.055 2.0172 388627201 388886401 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 :                                   793.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            810 sec.

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

