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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin667
RA = 180.055, Dec = 2.0172
tmin = 412214401, tmax = 412473601
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='242515', job_status='RUN', time_executed='2021-09-04 19:48:35.202911', time_epoch_executed='1630810115.2' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242515

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242515/ft1_4FGL_J1200.2+0201_daily_bin667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242515/ft2_4FGL_J1200.2+0201_daily_bin667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242515/ft1_4FGL_J1200.2+0201_daily_bin667.fits outfile=/scratch/kocevski/242515/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin667.fits ra=180.055 dec=2.0172 rad=12.0 tmin=412214401.0 tmax=412473601.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.40
user 3.18
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242515/ft2_4FGL_J1200.2+0201_daily_bin667.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/242515/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin667.fits evtable="EVENTS" outfile="/scratch/kocevski/242515/ft1_filtered_4FGL_J1200.2+0201_daily_bin667.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242515/ft1_filtered_4FGL_J1200.2+0201_daily_bin667.fits" evtable="EVENTS" scfile=/scratch/kocevski/242515/ft2_4FGL_J1200.2+0201_daily_bin667.fits sctable="SC_DATA" outfile=/scratch/kocevski/242515/ltcube_412214401_412473601_4FGL_J1200.2+0201_daily_bin667.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/242515/ft2_4FGL_J1200.2+0201_daily_bin667.fits
.....................!
real 11.69
user 11.36
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242515/ft1_filtered_4FGL_J1200.2+0201_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/242515/ft2_4FGL_J1200.2+0201_daily_bin667.fits sctable="SC_DATA" expcube=/scratch/kocevski/242515/ltcube_412214401_412473601_4FGL_J1200.2+0201_daily_bin667.fits outfile=/scratch/kocevski/242515/expmap_412214401_412473601_4FGL_J1200.2+0201_daily_bin667.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/242515/ltcube_412214401_412473601_4FGL_J1200.2+0201_daily_bin667.fits
.....................!
real 190.73
user 185.13
sys 5.19

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/242515/ft1_filtered_4FGL_J1200.2+0201_daily_bin667.fits scfile=/scratch/kocevski/242515/ft2_4FGL_J1200.2+0201_daily_bin667.fits outfile=/scratch/kocevski/242515/cmap_412214401_412473601_4FGL_J1200.2+0201_daily_bin667.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242515/ft1_filtered_4FGL_J1200.2+0201_daily_bin667.fits scfile=/scratch/kocevski/242515/ft2_4FGL_J1200.2+0201_daily_bin667.fits outfile=/scratch/kocevski/242515/cmap_HighResolution_412214401_412473601_4FGL_J1200.2+0201_daily_bin667.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/242515/ft1_filtered_4FGL_J1200.2+0201_daily_bin667.fits evtable="EVENTS" scfile=/scratch/kocevski/242515/ft2_4FGL_J1200.2+0201_daily_bin667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242515/Model_4FGL_J1200.2+0201_daily_bin667.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/242515/ft1_filtered_4FGL_J1200.2+0201_daily_bin667.fits....................!
real 31.78
user 30.42
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.870       1.0000         .10000E-03   10000.    
     2 'norm      '    .97738E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7503       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.153       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10699E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.275       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.312       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17944E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4652       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6376       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.2086       1.0000         .10000E-03   10000.    
    28 'Prefactor '    51.134       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .65436       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1590       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=   2436.295     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     4061 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.785        19.301        .28047E-05    .29415E-03
   2  norm          .10000E-03    211.78       -.66276E-04** at limit **
   3  Prefactor     4.7498        4.7244        .79359E-07    .12958E-04
   4  Prefactor     .10000E-03    27.338        .14723E-04** at limit **
   5  norm          .10000E-03    12.112       -.79403E-05** at limit **
   6  Prefactor     11.155        16.413       -.15658E-06    .15314E-04
   7  Prefactor     .10000E-03    41.161       -.16809E-04** at limit **
   8  Prefactor     .10000E-03    86.644        .32584E-04** at limit **
   9  Prefactor     24.275        15.152        .44337E-06   -.19336E-04
  10  Prefactor     .10000E-03    100.72        .81911E-05** at limit **
  11  Prefactor     .10000E-03    8.1834        .13812E-05** at limit **
  12  Prefactor     .10000E-03    26.143        .13818E-04** at limit **
  13  Prefactor     .10000E-03    20.643       -.52647E-05** at limit **
  14  Prefactor     .10000E-03    46.437       -.16222E-04** at limit **
  15  Prefactor     .10000E-03    80.086        .34457E-04** at limit **
  16  Prefactor     31.185        75.249       -.17900E-03    .20856E-04
  17  Prefactor     .10002E-03    129.81       -.84905E-04** at limit **
  18  Prefactor     .10000E-03    13.529        .61195E-05** at limit **
  19  Prefactor     .10000E-03    10.751        .24144E-05** at limit **
  20  norm          .10000E-03    2.0318        .34991E-07** at limit **
  21  norm          1.4625        5.6308        .72011E-05    .37569E-03
  22  Prefactor     .10000E-03    19.173       -.11967E-04** at limit **
  23  norm          .10000E-03    45.497       -.17175E-04** at limit **
  24  Prefactor     .10000E-03    92.599        .23951E-04** at limit **
  25  norm          1.6370        1.4298        .16258E-06    .58612E-03
  26  Prefactor     .10000E-03    14.300        .50653E-05** at limit **
  27  norm          8.2091        4.7896        .30016E-06   -.16173E-03
  28  Prefactor     51.138        55.778        .25361E-05   -.21558E-04
  29  Prefactor     .10000E-03    97.586        .14760E-04** at limit **
  30  Normalizat    .65488        .33046        .31968E-04   -.14347E-03
  31  Prefactor     1.1585        .27454       -.36761E-05    .36349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.785
  norm       = 0.000100004
  Prefactor  = 4.7498
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1553
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 24.2745
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.1854
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.46247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63704
  Prefactor  = 0.0001
  norm       = 8.20907
  Prefactor  = 51.1376
  Prefactor  = 0.0001
  Normalizat = 0.65488
  Prefactor  = 1.15854
 **********
 **   18 **HESSE 
 **********

 FCN=   2436.295     FROM HESSE     STATUS=OK           606 CALLS     4667 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.785        19.302        .10387E-03   -1.4939    
   2  norm          .10000E-03    212.32        .20777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7498        4.7185        .10111E-03   -1.5272    
   4  Prefactor     .10000E-03    27.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.114        .16780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.155        16.424        .11996E-03   -1.5040    
   7  Prefactor     .10000E-03    41.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    86.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.275        15.156        .81302E-04   -1.4722    
  10  Prefactor     .10000E-03    100.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1980        .13792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    80.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.185        75.288        .71604E-04   -1.4591    
  17  Prefactor     .10002E-03    130.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.535        .17738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.758        .15810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0328        .68714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4625        5.5026        .20238E-03   -1.5466    
  22  Prefactor     .10000E-03    19.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    45.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    92.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6370        1.3973        .48559E-04   -1.5452    
  26  Prefactor     .10000E-03    14.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.2091        4.7804        .76863E-04   -1.5135    
  28  Prefactor     51.138        55.771        .56084E-04   -1.4277    
  29  Prefactor     .10000E-03    97.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .65488        .37346        .33844E-03   -1.0570    
  31  Prefactor     1.1585        .31412        .22230E-03   -.87617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62648e-09
Minuit parameter uncertainties:
  1  19.3102
  2  0.00189256
  3  4.7189
  4  4.15193e-05
  5  4.08098e-06
  6  16.4306
  7  0.000211456
  8  0.0012874
  9  15.1582
  10  4.23031e-06
  11  0.000385863
  12  0.000624884
  13  1.53763e-05
  14  0.00010966
  15  1.65218e-06
  16  75.519
  17  0.00317699
  18  0.000126008
  19  0.000100814
  20  1.57869e-05
  21  5.5045
  22  3.03291e-05
  23  0.000187413
  24  5.66745e-05
  25  1.39735
  26  1.30093e-05
  27  4.78064
  28  55.828
  29  0.000202345
  30  0.37492
  31  0.31463
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.859e-04  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.159e+00  3.146e-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:  6.549e-01  3.749e-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.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242515/likelihoodResults_412214401_412473601_4FGL_J1200.2+0201_daily_bin667.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) = 2436.29538666
delta logL = -0.000576481970256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2436.29481016
delta logL = 1.70794010046e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0993       1.0000          .0000       10.000    
     3 'Normalizat'    .65490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1585       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=   2436.295     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    87.727        .13848E-02** at limit **
   2  Index         2.0747        6.9886        .50000        .87335E-05
   3  Normalizat    .65490        .25268E-01    .33841E-03    .38129E-05
   4  Prefactor     1.1585        .21690E-01    .22230E-03    .60858E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100263
  Index      = 2.07471
  Normalizat = 0.654898
  Prefactor  = 1.15852
 **********
 **   18 **HESSE 
 **********

 FCN=   2436.295     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    381.57        .27697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0747        8.2234        .50000       -.62495    
   3  Normalizat    .65490        .55226E-01    .13537E-04   -1.0570    
   4  Prefactor     1.1585        .47406E-01    .88920E-05   -.87617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.74362e-09
Minuit parameter uncertainties:
  1  0.0201465
  2  580.292
  3  0.055231
  4  0.0474079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242515': 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) = 2436.29481011
delta logL = 6.56336851534e-08

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.003e-04  2.015e-02  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.075e+00  5.803e+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.159e+00  4.741e-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:  6.549e-01  5.523e-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/242515/cmap_HighResolution_412214401_412473601_4FGL_J1200.2+0201_daily_bin667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-04 19:57:22.081580', job_id='242515', GAL2='1.16', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630810642.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='6.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='667' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:57:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 242515: <4FGL_J1200.2+0201_daily_bin667> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:29 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:31 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:31 2021
Terminated at Sat Sep  4 19:57:22 2021
Results reported at Sat Sep  4 19:57:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin667 180.055 2.0172 412214401 412473601 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 :                                   522.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

