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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin695
RA = 180.055, Dec = 2.0172
tmin = 419472001, tmax = 419731201
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='242557', job_status='RUN', time_executed='2021-09-04 19:48:13.498534', time_epoch_executed='1630810093.5' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242557/ft1_4FGL_J1200.2+0201_daily_bin695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242557/ft2_4FGL_J1200.2+0201_daily_bin695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242557/ft1_4FGL_J1200.2+0201_daily_bin695.fits outfile=/scratch/kocevski/242557/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin695.fits ra=180.055 dec=2.0172 rad=12.0 tmin=419472001.0 tmax=419731201.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.70
user 5.44
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242557/ft1_filtered_4FGL_J1200.2+0201_daily_bin695.fits" evtable="EVENTS" scfile=/scratch/kocevski/242557/ft2_4FGL_J1200.2+0201_daily_bin695.fits sctable="SC_DATA" outfile=/scratch/kocevski/242557/ltcube_419472001_419731201_4FGL_J1200.2+0201_daily_bin695.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/242557/ft2_4FGL_J1200.2+0201_daily_bin695.fits
.....................!
real 12.06
user 11.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242557/ft1_filtered_4FGL_J1200.2+0201_daily_bin695.fits evtable="EVENTS" scfile=/scratch/kocevski/242557/ft2_4FGL_J1200.2+0201_daily_bin695.fits sctable="SC_DATA" expcube=/scratch/kocevski/242557/ltcube_419472001_419731201_4FGL_J1200.2+0201_daily_bin695.fits outfile=/scratch/kocevski/242557/expmap_419472001_419731201_4FGL_J1200.2+0201_daily_bin695.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/242557/ltcube_419472001_419731201_4FGL_J1200.2+0201_daily_bin695.fits
.....................!
real 190.72
user 185.83
sys 4.51

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/242557/ft1_filtered_4FGL_J1200.2+0201_daily_bin695.fits scfile=/scratch/kocevski/242557/ft2_4FGL_J1200.2+0201_daily_bin695.fits outfile=/scratch/kocevski/242557/cmap_419472001_419731201_4FGL_J1200.2+0201_daily_bin695.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242557/ft1_filtered_4FGL_J1200.2+0201_daily_bin695.fits scfile=/scratch/kocevski/242557/ft2_4FGL_J1200.2+0201_daily_bin695.fits outfile=/scratch/kocevski/242557/cmap_HighResolution_419472001_419731201_4FGL_J1200.2+0201_daily_bin695.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1280       1.0000         .10000E-03   10000.    
     8 'Prefactor '    132.83       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77585E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8828       1.0000         .10000E-03   10000.    
    14 'Prefactor '    69.073       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.478       1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.843       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36275       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8685       1.0000         .10000E-03   10000.    
    20 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11063E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.2603       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.983       1.0000         .10000E-03   10000.    
    27 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    47.550       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0556       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96336       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=   4053.360     FROM MIGRAD    STATUS=CONVERGED    854 CALLS     4260 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5204       -.34641E-06** at limit **
   2  norm          .10000E-03    14.204       -.16095E-06** at limit **
   3  Prefactor     .10000E-03    2.4288       -.12345E-05** at limit **
   4  Prefactor     .10000E-03    12.385       -.18738E-06** at limit **
   5  norm          .10000E-03    4.1305       -.48751E-07** at limit **
   6  Prefactor     .10000E-03    3.1034        .73986E-07** at limit **
   7  Prefactor     7.1215        24.947        .44869E-06    .26560E-04
   8  Prefactor     133.02        138.69        .10855E-05    .60024E-04
   9  Prefactor     .10001E-03    9.0536       -.74086E-06** at limit **
  10  Prefactor     .10000E-03    83.565        .27240E-05** at limit **
  11  Prefactor     .10000E-03    4.3963        .47377E-06** at limit **
  12  Prefactor     21.983        19.046        .39903E-07    .90778E-05
  13  Prefactor     4.9263        37.300        .24188E-05    .44125E-04
  14  Prefactor     69.159        91.402       -.36189E-06    .10029E-04
  15  Prefactor     37.430        68.250       -.10814E-05    .24671E-04
  16  Prefactor     50.430        53.460        .36319E-06    .72863E-04
  17  Prefactor     69.823        40.163        .29548E-06    .88281E-04
  18  Prefactor     .59371E-03    46.390       -.21779E-05** at limit **
  19  Prefactor     8.8586        16.422       -.92788E-06   -.10108E-03
  20  norm          .10000E-03    1.9312        .20185E-05** at limit **
  21  norm          .10000E-03    1.9812       -.20378E-07** at limit **
  22  Prefactor     .10000E-03    18.886       -.20825E-06** at limit **
  23  norm          .10000E-03    15.596       -.16485E-07** at limit **
  24  Prefactor     .10000E-03    114.43       -.16980E-06** at limit **
  25  norm          1.2604        .75660        .16510E-06    .10287E-02
  26  Prefactor     16.980        12.569       -.51020E-07    .29740E-04
  27  norm          .10000E-03    .92393       -.50695E-06** at limit **
  28  Prefactor     .10000E-03    8.3106       -.10049E-06** at limit **
  29  Prefactor     47.544        44.135        .65289E-08    .20007E-04
  30  Normalizat    1.0556        .27182       -.30750E-05    .34681E-03
  31  Prefactor     .96347        .20672        .30795E-05    .25948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.12151
  Prefactor  = 133.023
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9831
  Prefactor  = 4.92634
  Prefactor  = 69.1594
  Prefactor  = 37.4299
  Prefactor  = 50.4302
  Prefactor  = 69.8234
  Prefactor  = 0.000593711
  Prefactor  = 8.8586
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26043
  Prefactor  = 16.9796
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.5441
  Normalizat = 1.05562
  Prefactor  = 0.963474
 **********
 **   18 **HESSE 
 **********

 FCN=   4053.360     FROM HESSE     STATUS=OK           618 CALLS     4878 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5875        .11668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6050        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1486        .12636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1375        .10945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1215        24.932        .15025E-03   -1.5174    
   8  Prefactor     133.02        138.76        .17470E-03   -1.3396    
   9  Prefactor     .10001E-03    31.642        .36392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    83.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4057        .13036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.983        19.044        .85433E-04   -1.4770    
  13  Prefactor     4.9263        35.969        .18203E-03   -1.5264    
  14  Prefactor     69.159        90.754        .48297E-04   -1.4043    
  15  Prefactor     37.430        67.648        .65468E-04   -1.4484    
  16  Prefactor     50.430        53.458        .56499E-04   -1.4286    
  17  Prefactor     69.823        40.063        .24016E-03   -1.4035    
  18  Prefactor     .59371E-03    54.472        .11625       -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.8586        16.537        .13459E-03   -1.5113    
  20  norm          .10000E-03    2.0234        .87540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0004        .87324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    15.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    114.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.2604        .74440        .39322E-04   -1.5483    
  26  Prefactor     16.980        12.557        .97188E-04   -1.4884    
  27  norm          .10000E-03    1.5135        .11658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.3490        .17923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     47.544        44.103        .58149E-04   -1.4328    
  30  Normalizat    1.0556        .29839        .28656E-03   -.91190    
  31  Prefactor     .96347        .23030        .24133E-03   -.93957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05146e-09
Minuit parameter uncertainties:
  1  7.4487e-06
  2  8.19964e-06
  3  0.000102967
  4  9.65478e-06
  5  5.46218e-06
  6  2.9905e-06
  7  24.9688
  8  139.098
  9  0.000943474
  10  0.00022035
  11  1.25706e-05
  12  19.0494
  13  26.6451
  14  90.9364
  15  67.7868
  16  53.5091
  17  40.0786
  18  0.328282
  19  16.5457
  20  3.65257e-05
  21  5.82191e-07
  22  6.08059e-06
  23  8.05749e-06
  24  0.000103184
  25  0.744407
  26  12.5588
  27  1.9885e-05
  28  8.99326e-06
  29  44.1335
  30  0.298861
  31  0.230533
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.257e-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:  9.635e-01  2.305e-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.056e+00  2.989e-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: 7.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242557/likelihoodResults_419472001_419731201_4FGL_J1200.2+0201_daily_bin695.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) = 4053.36103424
delta logL = -0.00107261014409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4053.35996157
delta logL = 5.74664227315e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0975       1.0000          .0000       10.000    
     3 'Normalizat'    1.0556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96346       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4053.360     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    126.62        .13109E-02** at limit **
   2  Index         1.9994        5.9438        .50000        .16815E-04
   3  Normalizat    1.0556        .33985E-01    .28657E-03   -.16305E-04
   4  Prefactor     .96348        .27631E-01    .24132E-03    .16912E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4053.360     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      370 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10147E-03    126.62        .29111E-03** at limit **
   2  Index         1.9983        5.9438        .37889E-03    .16815E-04
   3  Normalizat    1.0556        .33985E-01    .66790E-05   -.16305E-04
   4  Prefactor     .96347        .27631E-01    .41573E-05    .16912E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4053.360     FROM MIGRAD    STATUS=FAILED        87 CALLS      457 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    612.17        .52436E-03** at limit **
   2  Index         1.6900        9.0277        .50000       -.72775E-06
   3  Normalizat    1.0556        .85837E-01    .22926E-05   -.55044E-04
   4  Prefactor     .96348        .69732E-01    .19306E-05   -.18255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.69002
  Normalizat = 1.05561
  Prefactor  = 0.963476
 **********
 **   18 **HESSE 
 **********

 FCN=   4053.360     FROM HESSE     STATUS=OK            27 CALLS      484 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4418        .10487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6900        5.2567        .50000       -.72348    
   3  Normalizat    1.0556        .27781        .45851E-06   -.91190    
   4  Prefactor     .96348        .22581        .38612E-06   -.93957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59468e-09
Minuit parameter uncertainties:
  1  2.57853e-05
  2  212.469
  3  0.278198
  4  0.226033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242557': 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): 1
logL (Free Index) = 4053.35996044
delta logL = 1.1922320482e-06

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.579e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.690e+00  2.125e+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:  9.635e-01  2.260e-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.056e+00  2.782e-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/242557/cmap_HighResolution_419472001_419731201_4FGL_J1200.2+0201_daily_bin695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-04 20:00:19.327385', job_id='242557', GAL2='0.96', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630810819.33', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='695' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:00:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 242557: <4FGL_J1200.2+0201_daily_bin695> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:45:33 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 19:45:34 2021
Terminated at Sat Sep  4 20:00:20 2021
Results reported at Sat Sep  4 20:00:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin695 180.055 2.0172 419472001 419731201 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 :                                   721.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

