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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin999
RA = 180.055, Dec = 2.0172
tmin = 498268801, tmax = 498528001
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='245544', job_status='RUN', time_executed='2021-09-04 19:59:05.825245', time_epoch_executed='1630810745.83' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='999'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245544

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245544/ft1_4FGL_J1200.2+0201_daily_bin999.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245544/ft2_4FGL_J1200.2+0201_daily_bin999.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245544/ft1_4FGL_J1200.2+0201_daily_bin999.fits outfile=/scratch/kocevski/245544/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin999.fits ra=180.055 dec=2.0172 rad=12.0 tmin=498268801.0 tmax=498528001.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 4.75
user 4.53
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245544/ft1_filtered_4FGL_J1200.2+0201_daily_bin999.fits" evtable="EVENTS" scfile=/scratch/kocevski/245544/ft2_4FGL_J1200.2+0201_daily_bin999.fits sctable="SC_DATA" outfile=/scratch/kocevski/245544/ltcube_498268801_498528001_4FGL_J1200.2+0201_daily_bin999.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/245544/ft2_4FGL_J1200.2+0201_daily_bin999.fits
.....................!
real 12.38
user 11.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245544/ft1_filtered_4FGL_J1200.2+0201_daily_bin999.fits evtable="EVENTS" scfile=/scratch/kocevski/245544/ft2_4FGL_J1200.2+0201_daily_bin999.fits sctable="SC_DATA" expcube=/scratch/kocevski/245544/ltcube_498268801_498528001_4FGL_J1200.2+0201_daily_bin999.fits outfile=/scratch/kocevski/245544/expmap_498268801_498528001_4FGL_J1200.2+0201_daily_bin999.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/245544/ltcube_498268801_498528001_4FGL_J1200.2+0201_daily_bin999.fits
.....................!
real 189.78
user 184.91
sys 4.49

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/245544/ft1_filtered_4FGL_J1200.2+0201_daily_bin999.fits scfile=/scratch/kocevski/245544/ft2_4FGL_J1200.2+0201_daily_bin999.fits outfile=/scratch/kocevski/245544/cmap_498268801_498528001_4FGL_J1200.2+0201_daily_bin999.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.64
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/245544/ft1_filtered_4FGL_J1200.2+0201_daily_bin999.fits scfile=/scratch/kocevski/245544/ft2_4FGL_J1200.2+0201_daily_bin999.fits outfile=/scratch/kocevski/245544/cmap_HighResolution_498268801_498528001_4FGL_J1200.2+0201_daily_bin999.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.81
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.957       1.0000         .10000E-03   10000.    
     2 'norm      '    .27907E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .46016E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    3.8604       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.088       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30813E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.609       1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.7873       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.5484       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .70389E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.127       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90750       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0174       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=   4293.136     FROM MIGRAD    STATUS=CONVERGED   1475 CALLS     4835 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.957        10.915        .94517E-04   -.40848E-03
   2  norm          .10000E-03    117.41        .42840E-03** at limit **
   3  Prefactor     5.4088        3.6473        .97632E-04   -.16058E-03
   4  Prefactor     .10050E-03    76.134        .11667    ** at limit **
   5  norm          3.8607        5.6747        .18368E-03   -.19843E-03
   6  Prefactor     .10000E-03    3.5685        .11995E-02** at limit **
   7  Prefactor     .10000E-03    15.878        .18142E-02** at limit **
   8  Prefactor     68.891        92.084        .24146E-03    .14278E-03
   9  Prefactor     .10000E-03    4.5277        .13582E-02** at limit **
  10  Prefactor     .10000E-03    16.815        .18142E-02** at limit **
  11  Prefactor     .10000E-03    6.6406        .16433E-02** at limit **
  12  Prefactor     .10000E-03    15.514        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.7932        .16662E-02** at limit **
  14  Prefactor     .10000E-03    28.089        .18142E-02** at limit **
  15  Prefactor     .10000E-03    16.420        .18142E-02** at limit **
  16  Prefactor     .10001E-03    41.479        .18142E-02** at limit **
  17  Prefactor     .10000E-03    10.815        .18142E-02** at limit **
  18  Prefactor     .10213E-03    417.03        .87958E-02** at limit **
  19  Prefactor     11.596        18.941        .11758E-03   -.21137E-03
  20  norm          .10001E-03    7.5208        .18651E-02** at limit **
  21  norm          8.7785        5.7454        .11082E-03   -.20005E-03
  22  Prefactor     .10000E-03    21.155        .18142E-02** at limit **
  23  norm          .10000E-03    31.382        .18142E-02** at limit **
  24  Prefactor     .10000E-03    83.017        .18142E-02** at limit **
  25  norm          3.5490        1.0393        .30859E-04    .13484E-02
  26  Prefactor     .10185E-03    179.11        .37643E-02** at limit **
  27  norm          .10000E-03    .99328        .10173E-02** at limit **
  28  Prefactor     .10000E-03    9.8006        .18142E-02** at limit **
  29  Prefactor     15.116        37.102        .10298E-03    .32237E-04
  30  Normalizat    .90744        .30511        .30503E-03    .56428E-04
  31  Prefactor     1.0174        .23653        .23573E-03   -.71136E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9569
  norm       = 0.0001
  Prefactor  = 5.40878
  Prefactor  = 0.000100504
  norm       = 3.86066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.8908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000102134
  Prefactor  = 11.5959
  norm       = 0.000100014
  norm       = 8.7785
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54901
  Prefactor  = 0.000101847
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.116
  Normalizat = 0.907436
  Prefactor  = 1.01735
 **********
 **   18 **HESSE 
 **********

 FCN=   4293.136     FROM HESSE     STATUS=OK           602 CALLS     5437 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.957        10.905        .37807E-05   -1.4860    
   2  norm          .10000E-03    117.41        .85680E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4088        3.6473        .39053E-05   -1.5243    
   4  Prefactor     .10050E-03    73.766        .11891       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.8607        5.6746        .73474E-05   -1.5315    
   6  Prefactor     .10000E-03    3.5694        .23989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     68.891        92.083        .48292E-04   -1.4046    
   9  Prefactor     .10000E-03    4.5282        .27163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.6420        .32867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7937        .33323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    41.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10213E-03    430.89        .35183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.596        18.910        .47031E-05   -1.5027    
  20  norm          .10001E-03    7.5295        .37303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.7785        5.7301        .44327E-05   -1.5115    
  22  Prefactor     .10000E-03    21.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    31.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    83.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.5490        1.0388        .12344E-05   -1.5331    
  26  Prefactor     .10185E-03    186.53        .15057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .99453        .20346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.8026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.116        37.110        .41191E-05   -1.4930    
  30  Normalizat    .90744        .30542        .12201E-04   -.96199    
  31  Prefactor     1.0174        .23679        .94291E-05   -.92153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76688e-08
Minuit parameter uncertainties:
  1  10.906
  2  0.000162212
  3  3.64741
  4  0.0122122
  5  5.67543
  6  2.87248e-05
  7  2.52354e-05
  8  92.2739
  9  8.85957e-05
  10  1.90606e-05
  11  7.14207e-05
  12  4.55616e-06
  13  2.03757e-05
  14  0.000102142
  15  2.38103e-05
  16  0.00102377
  17  1.83948e-05
  18  0.0610933
  19  18.9196
  20  0.000651116
  21  5.73042
  22  5.10314e-05
  23  5.17152e-05
  24  6.2214e-05
  25  1.0388
  26  0.037243
  27  9.3957e-06
  28  6.97635e-05
  29  37.1665
  30  0.306004
  31  0.237029
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.017e+00  2.370e-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:  9.074e-01  3.060e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245544/likelihoodResults_498268801_498528001_4FGL_J1200.2+0201_daily_bin999.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) = 4293.13702265
delta logL = -0.000716943609405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4293.13630583
delta logL = -1.21527591546e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1163       1.0000          .0000       10.000    
     3 'Normalizat'    .90738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0174       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=   4293.136     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    157.97        .90712E-02** at limit **
   2  Index         2.1234        8.1706        .50000       -.92411E-05
   3  Normalizat    .90743        .30587E-01    .68945E-01    .39870E-04
   4  Prefactor     1.0174        .25025E-01    .42407E-01    .32575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12337
  Normalizat = 0.907433
  Prefactor  = 1.01736
 **********
 **   18 **HESSE 
 **********

 FCN=   4293.136     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    645.89        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1234        8.7222        .50000       -.61300    
   3  Normalizat    .90743        .69167E-01    .30502E-03   -.96199    
   4  Prefactor     1.0174        .56661E-01    .23573E-03   -.92153    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.43136e-09
Minuit parameter uncertainties:
  1  7.87575e-05
  2  40.7477
  3  0.0691738
  4  0.0566647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245544': 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) = 4293.13630568
delta logL = 3.06881702272e-08

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.876e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.123e+00  4.075e+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.017e+00  5.666e-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:  9.074e-01  6.917e-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/245544/cmap_HighResolution_498268801_498528001_4FGL_J1200.2+0201_daily_bin999.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.41e-08', time_completed='2021-09-04 20:12:00.277674', job_id='245544', GAL2='1.02', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630811520.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.07e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='999' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:12:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 245544: <4FGL_J1200.2+0201_daily_bin999> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin999> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 19:55:31 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:55:32 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:55:32 2021
Terminated at Sat Sep  4 20:12:01 2021
Results reported at Sat Sep  4 20:12:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin999 180.055 2.0172 498268801 498528001 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 :                                   768.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

