/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 118 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin461
RA = 180.055, Dec = 2.0172
tmin = 358819201, tmax = 359078401
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='241217', job_status='RUN', time_executed='2021-09-04 19:42:50.982652', time_epoch_executed='1630809770.98' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/241217

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/241217/ft1_4FGL_J1200.2+0201_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/241217/ft2_4FGL_J1200.2+0201_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/241217/ft1_4FGL_J1200.2+0201_daily_bin461.fits outfile=/scratch/kocevski/241217/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin461.fits ra=180.055 dec=2.0172 rad=12.0 tmin=358819201.0 tmax=359078401.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.31
user 5.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/241217/ft1_filtered_4FGL_J1200.2+0201_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/241217/ft2_4FGL_J1200.2+0201_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/241217/ltcube_358819201_359078401_4FGL_J1200.2+0201_daily_bin461.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/241217/ft2_4FGL_J1200.2+0201_daily_bin461.fits
.....................!
real 11.32
user 10.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/241217/ft1_filtered_4FGL_J1200.2+0201_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/241217/ft2_4FGL_J1200.2+0201_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/241217/ltcube_358819201_359078401_4FGL_J1200.2+0201_daily_bin461.fits outfile=/scratch/kocevski/241217/expmap_358819201_359078401_4FGL_J1200.2+0201_daily_bin461.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/241217/ltcube_358819201_359078401_4FGL_J1200.2+0201_daily_bin461.fits
.....................!
real 189.98
user 185.63
sys 3.89

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/241217/ft1_filtered_4FGL_J1200.2+0201_daily_bin461.fits scfile=/scratch/kocevski/241217/ft2_4FGL_J1200.2+0201_daily_bin461.fits outfile=/scratch/kocevski/241217/cmap_358819201_359078401_4FGL_J1200.2+0201_daily_bin461.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/241217/ft1_filtered_4FGL_J1200.2+0201_daily_bin461.fits scfile=/scratch/kocevski/241217/ft2_4FGL_J1200.2+0201_daily_bin461.fits outfile=/scratch/kocevski/241217/cmap_HighResolution_358819201_359078401_4FGL_J1200.2+0201_daily_bin461.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5070       1.0000         .10000E-03   10000.    
     2 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25329E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10886E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .49182E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4110       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1490       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1016       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .74667E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3934       1.0000         .10000E-03   10000.    
    21 'norm      '    8.9381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.996       1.0000         .10000E-03   10000.    
    23 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1029       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.9361       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.099       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0329       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0296       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=   5850.118     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     3601 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5121        4.6782       -.68001E-06   -.53803E-03
   2  norm          .10000E-03    27.726       -.20448E-04** at limit **
   3  Prefactor     .10000E-03    1.4446        .96043E-07** at limit **
   4  Prefactor     .10000E-03    11.723       -.62936E-06** at limit **
   5  norm          .11111E-03    6.1807        .87735E-07** at limit **
   6  Prefactor     1.4172        2.9763       -.41507E-06   -.69796E-03
   7  Prefactor     .10000E-03    6.9182       -.99418E-06** at limit **
   8  Prefactor     .10000E-03    69.048       -.56687E-04** at limit **
   9  Prefactor     .10000E-03    4.7981       -.71018E-07** at limit **
  10  Prefactor     10.034        27.222        .30669E-05   -.35164E-04
  11  Prefactor     8.1393        8.3584        .12751E-05    .95646E-04
  12  Prefactor     8.0998        20.437        .30205E-05   -.83890E-04
  13  Prefactor     .10000E-03    8.2273       -.94063E-07** at limit **
  14  Prefactor     .10000E-03    52.996        .35373E-04** at limit **
  15  Prefactor     .10000E-03    21.606        .12440E-04** at limit **
  16  Prefactor     .10363E-03    33.905       -.24306E-05** at limit **
  17  Prefactor     .10000E-03    6.9314        .87104E-06** at limit **
  18  Prefactor     .10000E-03    15.425        .23743E-05** at limit **
  19  Prefactor     .10000E-03    9.2200        .27673E-06** at limit **
  20  norm          2.3924        2.0284       -.18850E-08   -.83380E-04
  21  norm          8.9355        4.6420        .21993E-07    .11687E-03
  22  Prefactor     19.989        24.854        .28667E-05   -.56112E-05
  23  norm          .10000E-03    19.934       -.16568E-04** at limit **
  24  Prefactor     .10000E-03    107.67        .39497E-04** at limit **
  25  norm          1.1027        .71847       -.23339E-07   -.39434E-03
  26  Prefactor     .10000E-03    3.0890        .44948E-07** at limit **
  27  norm          2.9355        2.0591       -.53171E-07   -.45341E-03
  28  Prefactor     18.097        11.075       -.24690E-07   -.23372E-04
  29  Prefactor     .10000E-03    23.990        .17738E-04** at limit **
  30  Normalizat    1.0331        .21623       -.30266E-06    .11933E-03
  31  Prefactor     1.0296        .16836       -.22017E-06    .11358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51213
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000111114
  Prefactor  = 1.4172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0344
  Prefactor  = 8.1393
  Prefactor  = 8.09982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.39245
  norm       = 8.93547
  Prefactor  = 19.9888
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10274
  Prefactor  = 0.0001
  norm       = 2.9355
  Prefactor  = 18.0973
  Prefactor  = 0.0001
  Normalizat = 1.03309
  Prefactor  = 1.02958
 **********
 **   18 **HESSE 
 **********

 FCN=   5850.118     FROM HESSE     STATUS=OK           638 CALLS     4239 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5121        4.6609        .27614E-03   -1.5462    
   2  norm          .10000E-03    27.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.6317        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11111E-03    7.7233        .51538E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4172        2.9248        .17901E-03   -1.5470    
   7  Prefactor     .10000E-03    6.9228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    69.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8142        .16360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.034        27.188        .12644E-03   -1.5074    
  11  Prefactor     8.1393        8.3504        .14045E-03   -1.5137    
  12  Prefactor     8.0998        20.429        .14086E-03   -1.5139    
  13  Prefactor     .10000E-03    8.2681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10363E-03    35.816        .12742       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3924        2.0227        .96998E-04   -1.5399    
  21  norm          8.9355        4.6275        .10456E-03   -1.5110    
  22  Prefactor     19.989        24.846        .89569E-04   -1.4813    
  23  norm          .10000E-03    19.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    107.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1027        .69771        .45307E-04   -1.5498    
  26  Prefactor     .10000E-03    3.0930        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.9355        2.0461        .86655E-04   -1.5365    
  28  Prefactor     18.097        11.072        .94145E-04   -1.4857    
  29  Prefactor     .10000E-03    24.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0331        .25143        .29029E-03   -.91930    
  31  Prefactor     1.0296        .19746        .23445E-03   -.91750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19702e-09
Minuit parameter uncertainties:
  1  4.66199
  2  0.000176507
  3  2.42362e-05
  4  2.16939e-05
  5  0.0185323
  6  2.92508
  7  1.4704e-06
  8  2.15372e-05
  9  5.30563e-06
  10  27.2218
  11  8.35159
  12  20.4467
  13  5.52748e-06
  14  0.000101457
  15  2.78303e-05
  16  0.0228302
  17  4.74796e-07
  18  2.91814e-06
  19  3.7861e-06
  20  2.02279
  21  4.62767
  22  24.8588
  23  4.31888e-06
  24  3.32597e-05
  25  0.697719
  26  7.88246e-07
  27  2.04616
  28  11.0731
  29  3.6082e-06
  30  0.251724
  31  0.197597
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.030e+00  1.976e-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.033e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 180.055 2.017
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.69e-05

TS (Fixed Index): 1.58
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/241217/likelihoodResults_358819201_359078401_4FGL_J1200.2+0201_daily_bin461.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) = 5850.08748658
delta logL = 0.0301878623359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5850.07571832
delta logL = 0.0419561255112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8398       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3052       1.0000          .0000       10.000    
     3 'Normalizat'    1.0248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0330       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.

 FCN=   5850.076     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      217 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8363        217.89        .38353E-02    .16558E-03
   2  Index         2.3058        6.0945        .13053        .11021E-03
   3  Normalizat    1.0247        .10479        .65863E-01    .15214E-04
   4  Prefactor     1.0331        .66009E-01    .41032E-01   -.23466E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83625
  Index      = 2.30585
  Normalizat = 1.02466
  Prefactor  = 1.03311
 **********
 **   18 **HESSE 
 **********

 FCN=   5850.076     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8363        9.1700        .15341E-03   -1.5185    
   2  Index         2.3058        .73751        .75811E-02   -.56905    
   3  Normalizat    1.0247        .24234        .29134E-03   -.92209    
   4  Prefactor     1.0331        .19466        .23409E-03   -.91634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18186e-11
Minuit parameter uncertainties:
  1  9.1719
  2  0.741332
  3  0.242598
  4  0.194793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/241217': 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) = 5850.07571762
delta logL = 0.0419568291636

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  6.836e+00  9.172e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.306e+00  7.413e-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:  1.033e+00  1.948e-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.025e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 180.055 2.017
Photon Index (Free Index): 2.31 +/- 0.74
Photon Flux (Free Index): 3.84e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.59e-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/241217/cmap_HighResolution_358819201_359078401_4FGL_J1200.2+0201_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='1.44e-05', photon_flux_error='3.14e-08', dlogl='4.20e-02', energy_flux='1.65e-05', photon_flux2='3.84e-08', job_status='DONE', time_completed='2021-09-04 19:56:25.931989', photon_index_error2='0.74', photon_index2='2.31', ts='1.58', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.59e-05', EG='1.03', time_epoch_completed='1630810585.93', return_code='0', job_id='241217', GAL2='1.03', EG2='1.02', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='4.41e-08', ts2='1.66', photon_index='2.11' WHERE bin_id='461' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 241217: <4FGL_J1200.2+0201_daily_bin461> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin461> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 19:40:43 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:40:44 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:44 2021
Terminated at Sat Sep  4 19:56:26 2021
Results reported at Sat Sep  4 19:56:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin461 180.055 2.0172 358819201 359078401 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 :                                   810.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

