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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin696
RA = 180.055, Dec = 2.0172
tmin = 419731201, tmax = 419990401
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='242558', job_status='RUN', time_executed='2021-09-04 19:49:18.706300', time_epoch_executed='1630810158.71' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='696'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242558

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242558/ft1_4FGL_J1200.2+0201_daily_bin696.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242558/ft2_4FGL_J1200.2+0201_daily_bin696.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242558/ft1_4FGL_J1200.2+0201_daily_bin696.fits outfile=/scratch/kocevski/242558/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin696.fits ra=180.055 dec=2.0172 rad=12.0 tmin=419731201.0 tmax=419990401.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.93
user 5.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242558/ft2_4FGL_J1200.2+0201_daily_bin696.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/242558/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin696.fits evtable="EVENTS" outfile="/scratch/kocevski/242558/ft1_filtered_4FGL_J1200.2+0201_daily_bin696.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.48
user 0.30
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242558/ft1_filtered_4FGL_J1200.2+0201_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/242558/ft2_4FGL_J1200.2+0201_daily_bin696.fits sctable="SC_DATA" expcube=/scratch/kocevski/242558/ltcube_419731201_419990401_4FGL_J1200.2+0201_daily_bin696.fits outfile=/scratch/kocevski/242558/expmap_419731201_419990401_4FGL_J1200.2+0201_daily_bin696.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/242558/ltcube_419731201_419990401_4FGL_J1200.2+0201_daily_bin696.fits
.....................!
real 190.28
user 184.90
sys 5.06

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/242558/ft1_filtered_4FGL_J1200.2+0201_daily_bin696.fits scfile=/scratch/kocevski/242558/ft2_4FGL_J1200.2+0201_daily_bin696.fits outfile=/scratch/kocevski/242558/cmap_419731201_419990401_4FGL_J1200.2+0201_daily_bin696.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242558/ft1_filtered_4FGL_J1200.2+0201_daily_bin696.fits scfile=/scratch/kocevski/242558/ft2_4FGL_J1200.2+0201_daily_bin696.fits outfile=/scratch/kocevski/242558/cmap_HighResolution_419731201_419990401_4FGL_J1200.2+0201_daily_bin696.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/242558/ft1_filtered_4FGL_J1200.2+0201_daily_bin696.fits evtable="EVENTS" scfile=/scratch/kocevski/242558/ft2_4FGL_J1200.2+0201_daily_bin696.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242558/Model_4FGL_J1200.2+0201_daily_bin696.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/242558/ft1_filtered_4FGL_J1200.2+0201_daily_bin696.fits.....................!
real 43.73
user 42.39
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2615       1.0000         .10000E-03   10000.    
     2 'norm      '    13.698       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.677       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7226       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.800       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.159       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18747E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6256       1.0000         .10000E-03   10000.    
    21 'norm      '    8.4438       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.363       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8643       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.6920       1.0000         .10000E-03   10000.    
    27 'norm      '    .28922       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.586       1.0000         .10000E-03   10000.    
    29 'Prefactor '    23.515       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3151       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .57420       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=   4162.875     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     4117 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2613        9.8445        .90283E-05   -.40456E-03
   2  norm          13.692        44.822       -.12100E-04   -.13475E-03
   3  Prefactor     .10000E-03    1.1453       -.63006E-07** at limit **
   4  Prefactor     .10000E-03    30.639       -.64686E-06** at limit **
   5  norm          13.677        11.543       -.16486E-06    .95716E-04
   6  Prefactor     2.7225        6.3565       -.29355E-06   -.59821E-04
   7  Prefactor     16.801        16.894       -.10018E-06    .53737E-05
   8  Prefactor     .10000E-03    28.432        .55278E-06** at limit **
   9  Prefactor     19.157        14.623        .17020E-06    .81011E-04
  10  Prefactor     .10000E-03    33.870        .67553E-06** at limit **
  11  Prefactor     .10000E-03    10.737       -.57880E-08** at limit **
  12  Prefactor     .10000E-03    50.462       -.22631E-06** at limit **
  13  Prefactor     11.359        16.356        .30587E-06    .15539E-03
  14  Prefactor     .10000E-03    66.995        .21617E-05** at limit **
  15  Prefactor     .10000E-03    23.793       -.42937E-06** at limit **
  16  Prefactor     11.608        40.319       -.80386E-07    .98922E-05
  17  Prefactor     .10000E-03    10.321       -.26269E-07** at limit **
  18  Prefactor     .10000E-03    25.353        .57764E-07** at limit **
  19  Prefactor     .10000E-03    52.569       -.16489E-06** at limit **
  20  norm          2.6232        2.1332        .36328E-06    .17253E-02
  21  norm          8.4438        4.7294        .13544E-06    .53108E-03
  22  Prefactor     .10000E-03    44.768       -.74681E-06** at limit **
  23  norm          23.364        31.817       -.87722E-07    .41578E-04
  24  Prefactor     .10000E-03    48.276       -.83011E-06** at limit **
  25  norm          1.8641        .73272        .58430E-07    .22307E-02
  26  Prefactor     6.6906        10.546        .11410E-06    .11602E-03
  27  norm          .28923        1.2893        .16483E-06    .15060E-04
  28  Prefactor     17.586        11.755        .13378E-07    .68594E-04
  29  Prefactor     23.515        32.547       -.86824E-07    .22551E-04
  30  Normalizat    1.3149        .25059       -.19457E-05    .44822E-03
  31  Prefactor     .57429        .19183        .20650E-05    .39134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26132
  norm       = 13.6923
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 13.6773
  Prefactor  = 2.72253
  Prefactor  = 16.8006
  Prefactor  = 0.0001
  Prefactor  = 19.1565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62318
  norm       = 8.44376
  Prefactor  = 0.0001
  norm       = 23.3639
  Prefactor  = 0.0001
  norm       = 1.86408
  Prefactor  = 6.69064
  norm       = 0.289235
  Prefactor  = 17.586
  Prefactor  = 23.5153
  Normalizat = 1.3149
  Prefactor  = 0.57429
 **********
 **   18 **HESSE 
 **********

 FCN=   4162.875     FROM HESSE     STATUS=OK           620 CALLS     4737 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2613        10.087        .13658E-02   -1.5407    
   2  norm          13.692        45.232        .10822E-03   -1.4968    
   3  Prefactor     .10000E-03    1.1522        .67423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.677        11.424        .10831E-03   -1.4968    
   6  Prefactor     2.7225        6.2752        .21240E-03   -1.5378    
   7  Prefactor     16.801        16.899        .48859E-03   -1.4888    
   8  Prefactor     .10000E-03    28.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.157        14.640        .91505E-04   -1.4832    
  10  Prefactor     .10000E-03    33.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.359        16.333        .11887E-03   -1.5034    
  14  Prefactor     .10000E-03    67.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.608        40.338        .11759E-03   -1.5026    
  17  Prefactor     .10000E-03    10.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.061        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6232        2.1437        .82720E-04   -1.5384    
  21  norm          8.4438        4.7356        .95057E-04   -1.5127    
  22  Prefactor     .10000E-03    44.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.364        31.854        .82871E-04   -1.4741    
  24  Prefactor     .10000E-03    48.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8641        .72967        .31371E-04   -1.5435    
  26  Prefactor     6.6906        10.523        .15511E-03   -1.5191    
  27  norm          .28923        2.1122        .13514E-02   -1.5600    
  28  Prefactor     17.586        11.746        .95507E-04   -1.4869    
  29  Prefactor     23.515        32.562        .82603E-04   -1.4738    
  30  Normalizat    1.3149        .29467        .25107E-03   -.83123    
  31  Prefactor     .57429        .22511        .28387E-03   -1.0868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48086e-09
Minuit parameter uncertainties:
  1  9.55432
  2  45.3456
  3  5.40438e-06
  4  0.000506206
  5  11.4258
  6  6.27669
  7  16.9042
  8  2.48116e-05
  9  14.6429
  10  0.000188139
  11  1.78229e-05
  12  0.000205657
  13  16.3399
  14  0.000167216
  15  3.14193e-05
  16  40.433
  17  5.38691e-07
  18  1.01513e-05
  19  6.20604e-06
  20  2.14379
  21  4.73581
  22  1.6128e-05
  23  31.8774
  24  4.95452e-05
  25  0.729674
  26  10.5261
  27  1.56302
  28  11.7471
  29  32.5862
  30  0.295051
  31  0.225465
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.782e-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:  5.743e-01  2.255e-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.315e+00  2.951e-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: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242558/likelihoodResults_419731201_419990401_4FGL_J1200.2+0201_daily_bin696.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) = 4162.87577158
delta logL = -0.000435096761976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4162.87533645
delta logL = 3.16395016853e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0906       1.0000          .0000       10.000    
     3 'Normalizat'    1.3149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57429       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=   4162.875     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10040E-03    69.123        .18142E-02** at limit **
   2  Index         2.0589        6.1388        .50000        .10466E-04
   3  Normalizat    1.3149        .14903E-01    .25107E-03   -.37117E-03
   4  Prefactor     .57429        .11631E-01    .28386E-03   -.34707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100401
  Index      = 2.05893
  Normalizat = 1.3149
  Prefactor  = 0.574288
 **********
 **   18 **HESSE 
 **********

 FCN=   4162.875     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10040E-03    323.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0589        5.2704        .50000       -.62885    
   3  Normalizat    1.3149        .33179E-01    .50214E-04   -.83123    
   4  Prefactor     .57429        .25891E-01    .11355E-04   -1.0868    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.26087e-09
Minuit parameter uncertainties:
  1  0.0228863
  2  407.072
  3  0.033179
  4  0.0258919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242558': 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) = 4162.87533635
delta logL = 1.33186404128e-07

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.004e-04  2.289e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.059e+00  4.071e+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:  5.743e-01  2.589e-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.315e+00  3.318e-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/242558/cmap_HighResolution_419731201_419990401_4FGL_J1200.2+0201_daily_bin696.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2021-09-04 20:01:14.439393', job_id='242558', GAL2='0.57', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630810874.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='696' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:01:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 242558: <4FGL_J1200.2+0201_daily_bin696> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin696 180.055 2.0172 419731201 419990401 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             204.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

