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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin732
RA = 180.055, Dec = 2.0172
tmin = 429062401, tmax = 429321601
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='242611', job_status='RUN', time_executed='2021-09-04 19:48:37.429192', time_epoch_executed='1630810117.43' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242611/ft1_4FGL_J1200.2+0201_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242611/ft2_4FGL_J1200.2+0201_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242611/ft1_4FGL_J1200.2+0201_daily_bin732.fits outfile=/scratch/kocevski/242611/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin732.fits ra=180.055 dec=2.0172 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.42
user 6.09
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242611/ft2_4FGL_J1200.2+0201_daily_bin732.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/242611/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/242611/ft1_filtered_4FGL_J1200.2+0201_daily_bin732.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242611/ft1_filtered_4FGL_J1200.2+0201_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/242611/ft2_4FGL_J1200.2+0201_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/242611/ltcube_429062401_429321601_4FGL_J1200.2+0201_daily_bin732.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/242611/ft2_4FGL_J1200.2+0201_daily_bin732.fits
.....................!
real 12.90
user 12.42
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242611/ft1_filtered_4FGL_J1200.2+0201_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/242611/ft2_4FGL_J1200.2+0201_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/242611/ltcube_429062401_429321601_4FGL_J1200.2+0201_daily_bin732.fits outfile=/scratch/kocevski/242611/expmap_429062401_429321601_4FGL_J1200.2+0201_daily_bin732.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/242611/ltcube_429062401_429321601_4FGL_J1200.2+0201_daily_bin732.fits
.....................!
real 192.59
user 185.34
sys 6.63

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/242611/ft1_filtered_4FGL_J1200.2+0201_daily_bin732.fits scfile=/scratch/kocevski/242611/ft2_4FGL_J1200.2+0201_daily_bin732.fits outfile=/scratch/kocevski/242611/cmap_429062401_429321601_4FGL_J1200.2+0201_daily_bin732.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242611/ft1_filtered_4FGL_J1200.2+0201_daily_bin732.fits scfile=/scratch/kocevski/242611/ft2_4FGL_J1200.2+0201_daily_bin732.fits outfile=/scratch/kocevski/242611/cmap_HighResolution_429062401_429321601_4FGL_J1200.2+0201_daily_bin732.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16506E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3130       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0778       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    118.64       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11553E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13061E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.309       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1399       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    123.32       1.0000         .10000E-03   10000.    
    25 'norm      '    1.3035       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.1473       1.0000         .10000E-03   10000.    
    28 'Prefactor '    28.795       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.398       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3395       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83180       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=   4685.805     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4122 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    8.6341        .30581E-05** at limit **
   2  norm          4.3380        49.199       -.10868E-04   -.21191E-03
   3  Prefactor     2.0776        2.4704       -.51155E-07   -.13376E-03
   4  Prefactor     .10000E-03    31.565        .27070E-06** at limit **
   5  norm          .10000E-03    4.3402        .53089E-07** at limit **
   6  Prefactor     3.2388        3.4023       -.63973E-07   -.27900E-04
   7  Prefactor     .10000E-03    10.444       -.69790E-09** at limit **
   8  Prefactor     118.60        162.96       -.33958E-05   -.31076E-04
   9  Prefactor     .10000E-03    6.7011       -.10674E-06** at limit **
  10  Prefactor     .10000E-03    18.870       -.15126E-06** at limit **
  11  Prefactor     .10090E-03    11.458        .90771E-06** at limit **
  12  Prefactor     .10000E-03    22.819       -.31107E-06** at limit **
  13  Prefactor     20.322        24.453       -.65355E-06   -.11415E-04
  14  Prefactor     .10000E-03    45.530       -.80648E-06** at limit **
  15  Prefactor     .10000E-03    154.93       -.14678E-05** at limit **
  16  Prefactor     14.478        60.338       -.15613E-05   -.11398E-03
  17  Prefactor     .10000E-03    30.296        .21740E-06** at limit **
  18  Prefactor     28.305        40.077       -.49190E-06   -.16746E-04
  19  Prefactor     .10000E-03    9.3115       -.60382E-07** at limit **
  20  norm          3.1399        2.5202        .87191E-09   -.93221E-04
  21  norm          .10000E-03    1.6257       -.15132E-06** at limit **
  22  Prefactor     .10000E-03    24.842        .24301E-06** at limit **
  23  norm          .10000E-03    18.435        .18301E-06** at limit **
  24  Prefactor     123.32        143.40        .87421E-07    .32131E-05
  25  norm          1.3034        .60703       -.33955E-07   -.12448E-03
  26  Prefactor     .10000E-03    4.5725        .23631E-07** at limit **
  27  norm          3.1471        1.6692       -.42922E-07   -.67243E-05
  28  Prefactor     28.791        15.302       -.19578E-06    .69709E-05
  29  Prefactor     13.395        28.087       -.25192E-06   -.61860E-06
  30  Normalizat    1.3398        .28857        .34666E-05   -.46861E-03
  31  Prefactor     .83167        .20185       -.16639E-05   -.21407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100123
  norm       = 4.33802
  Prefactor  = 2.07762
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.23876
  Prefactor  = 0.0001
  Prefactor  = 118.604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100899
  Prefactor  = 0.0001
  Prefactor  = 20.3215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4782
  Prefactor  = 0.0001
  Prefactor  = 28.3046
  Prefactor  = 0.0001
  norm       = 3.13992
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 123.323
  norm       = 1.30338
  Prefactor  = 0.0001
  norm       = 3.14713
  Prefactor  = 28.7914
  Prefactor  = 13.3945
  Normalizat = 1.33984
  Prefactor  = 0.831667
 **********
 **   18 **HESSE 
 **********

 FCN=   4685.805     FROM HESSE     STATUS=OK           622 CALLS     4744 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    50.413        .31726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3380        55.455        .19398E-03   -1.5291    
   3  Prefactor     2.0776        2.4610        .11360E-03   -1.5420    
   4  Prefactor     .10000E-03    31.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.3575        .13924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2388        3.4026        .12557E-03   -1.5348    
   7  Prefactor     .10000E-03    10.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     118.60        161.43        .18472E-03   -1.3526    
   9  Prefactor     .10000E-03    6.7122        .17304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10090E-03    138.49        .42009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.322        24.419        .88816E-04   -1.4806    
  14  Prefactor     .10000E-03    45.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    155.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.478        60.448        .10507E-03   -1.4947    
  17  Prefactor     .10000E-03    30.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.305        40.074        .75297E-04   -1.4643    
  19  Prefactor     .10000E-03    9.3594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1399        2.5176        .93782E-04   -1.5354    
  21  norm          .10000E-03    1.6355        .85050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    18.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     123.32        143.38        .36245E-04   -1.3482    
  25  norm          1.3034        .60171        .33973E-04   -1.5480    
  26  Prefactor     .10000E-03    4.5864        .14291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.1471        1.6642        .61244E-04   -1.5353    
  28  Prefactor     28.791        15.274        .74661E-04   -1.4634    
  29  Prefactor     13.395        28.067        .10943E-03   -1.4976    
  30  Normalizat    1.3398        .31359        .27954E-03   -.82385    
  31  Prefactor     .83167        .22832        .26855E-03   -.98571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56168e-09
Minuit parameter uncertainties:
  1  0.00497771
  2  31.0554
  3  2.46111
  4  4.54537e-05
  5  5.15264e-06
  6  3.40283
  7  6.70207e-06
  8  162.039
  9  2.88307e-06
  10  8.69709e-06
  11  0.0223631
  12  5.96638e-05
  13  24.4306
  14  7.03015e-05
  15  0.00015026
  16  59.2698
  17  4.34564e-05
  18  40.1122
  19  1.16316e-05
  20  2.51768
  21  1.2037e-06
  22  1.49512e-05
  23  8.4624e-06
  24  143.789
  25  0.601715
  26  4.33634e-06
  27  1.66423
  28  15.2765
  29  28.0944
  30  0.314037
  31  0.228579
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.009e-04  2.236e-02  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.317e-01  2.286e-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.340e+00  3.140e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242611/likelihoodResults_429062401_429321601_4FGL_J1200.2+0201_daily_bin732.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) = 4685.80551117
delta logL = -3.33673597197e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4685.80551115
delta logL = -3.33480966219e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96345E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1093       1.0000          .0000       10.000    
     3 'Normalizat'    1.3398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83167       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=   4685.780     FROM MIGRAD    STATUS=CONVERGED    147 CALLS      303 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81975        35.622        .25386E-03   -.15889E-03
   2  Index         2.9265        6.4570        .86454E-02   -.80452E-05
   3  Normalizat    1.3221        .29991        .28119E-03   -.95254E-04
   4  Prefactor     .83704        .22833        .26781E-03   -.10681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.81975
  Index      = 2.92646
  Normalizat = 1.32208
  Prefactor  = 0.837039
 **********
 **   18 **HESSE 
 **********

 FCN=   4685.780     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81975        10.882        .10154E-04   -1.5527    
   2  Index         2.9265        2.8196        .34582E-03   -.42762    
   3  Normalizat    1.3221        .29900        .11248E-04   -.82910    
   4  Prefactor     .83704        .22628        .10712E-04   -.98377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76015e-11
Minuit parameter uncertainties:
  1  5.97431
  2  3.04101
  3  0.299395
  4  0.226534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242611': 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) = 4685.78002846
delta logL = 0.0254493398779

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  8.197e-01  5.974e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.926e+00  3.041e+00  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.370e-01  2.265e-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.322e+00  2.994e-01  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/242611/cmap_HighResolution_429062401_429321601_4FGL_J1200.2+0201_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-04 20:01:35.176623', job_id='242611', GAL2='0.84', fit_tolerance='1e-08', EG2='1.32', EG='1.34', time_epoch_completed='1630810895.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.54e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='732' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:01:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 242611: <4FGL_J1200.2+0201_daily_bin732> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin732 180.055 2.0172 429062401 429321601 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 :                                   774.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            958 sec.

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

