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


Performing analysis on: 4FGL_J1200.2+0201_daily_bin693
RA = 180.055, Dec = 2.0172
tmin = 418953601, tmax = 419212801
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='242554', job_status='RUN', time_executed='2021-09-04 19:48:55.924592', time_epoch_executed='1630810135.92' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242554

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242554/ft1_4FGL_J1200.2+0201_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242554/ft2_4FGL_J1200.2+0201_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242554/ft1_4FGL_J1200.2+0201_daily_bin693.fits outfile=/scratch/kocevski/242554/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin693.fits ra=180.055 dec=2.0172 rad=12.0 tmin=418953601.0 tmax=419212801.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.58
user 5.24
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242554/ft1_filtered_4FGL_J1200.2+0201_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/242554/ft2_4FGL_J1200.2+0201_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/242554/ltcube_418953601_419212801_4FGL_J1200.2+0201_daily_bin693.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/242554/ft2_4FGL_J1200.2+0201_daily_bin693.fits
.....................!
real 12.21
user 11.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242554/ft1_filtered_4FGL_J1200.2+0201_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/242554/ft2_4FGL_J1200.2+0201_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/242554/ltcube_418953601_419212801_4FGL_J1200.2+0201_daily_bin693.fits outfile=/scratch/kocevski/242554/expmap_418953601_419212801_4FGL_J1200.2+0201_daily_bin693.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/242554/ltcube_418953601_419212801_4FGL_J1200.2+0201_daily_bin693.fits
.....................!
real 190.19
user 185.16
sys 4.65

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/242554/ft1_filtered_4FGL_J1200.2+0201_daily_bin693.fits scfile=/scratch/kocevski/242554/ft2_4FGL_J1200.2+0201_daily_bin693.fits outfile=/scratch/kocevski/242554/cmap_418953601_419212801_4FGL_J1200.2+0201_daily_bin693.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2215       1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.354       1.0000         .10000E-03   10000.    
     5 'norm      '    10.067       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25928E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.864       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.567       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.605       1.0000         .10000E-03   10000.    
    27 'norm      '    .14163E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.019       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2408       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .70986       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=   4176.537     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4149 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5093       -.14486E-06** at limit **
   2  norm          .10000E-03    12.107       -.99373E-06** at limit **
   3  Prefactor     5.2224        3.5792        .28789E-06   -.23545E-03
   4  Prefactor     58.359        39.742        .30177E-05   -.15418E-04
   5  norm          10.068        8.1216       -.19139E-06   -.56123E-04
   6  Prefactor     .10000E-03    1.5530       -.42139E-07** at limit **
   7  Prefactor     .10000E-03    30.263        .56424E-05** at limit **
   8  Prefactor     .10000E-03    34.794       -.81481E-05** at limit **
   9  Prefactor     6.1074        9.0686        .17774E-06   -.87224E-04
  10  Prefactor     .10000E-03    17.438        .35177E-05** at limit **
  11  Prefactor     .10000E-03    9.9022        .71442E-06** at limit **
  12  Prefactor     .10000E-03    13.322        .56466E-05** at limit **
  13  Prefactor     58.162        28.914        .32884E-06   -.19777E-04
  14  Prefactor     .10000E-03    53.123        .12478E-04** at limit **
  15  Prefactor     22.434        39.239        .10563E-04   -.46437E-05
  16  Prefactor     .10000E-03    82.480       -.14440E-04** at limit **
  17  Prefactor     57.869        33.500        .23899E-05    .15037E-04
  18  Prefactor     .10000E-03    42.839       -.67429E-05** at limit **
  19  Prefactor     .10000E-03    30.621        .14163E-05** at limit **
  20  norm          .10000E-03    1.4358       -.71143E-07** at limit **
  21  norm          13.556        5.9676        .21726E-05    .95698E-03
  22  Prefactor     .10000E-03    40.579       -.94799E-05** at limit **
  23  norm          .10000E-03    53.511        .12583E-04** at limit **
  24  Prefactor     .10000E-03    74.851        .71613E-05** at limit **
  25  norm          .10000E-03    .49752       -.70742E-06** at limit **
  26  Prefactor     16.601        13.287       -.24451E-06    .21388E-03
  27  norm          .10000E-03    1.4015       -.35026E-06** at limit **
  28  Prefactor     .10000E-03    14.370       -.76254E-05** at limit **
  29  Prefactor     16.052        37.964        .37461E-04    .55709E-04
  30  Normalizat    1.2407        .26857       -.47538E-05    .36270E-03
  31  Prefactor     .70978        .19624       -.40446E-06    .12061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.22242
  Prefactor  = 58.3586
  norm       = 10.0683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10741
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 58.1616
  Prefactor  = 0.0001
  Prefactor  = 22.4341
  Prefactor  = 0.0001
  Prefactor  = 57.8692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.5563
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 16.601
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0516
  Normalizat = 1.24071
  Prefactor  = 0.709779
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.537     FROM HESSE     STATUS=OK           618 CALLS     4767 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6693        .32140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2224        3.5828        .95608E-04   -1.5251    
   4  Prefactor     58.359        39.729        .52518E-04   -1.4179    
   5  norm          10.068        8.1169        .12629E-03   -1.5073    
   6  Prefactor     .10000E-03    1.5551        .78626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1074        9.0660        .16248E-03   -1.5214    
  10  Prefactor     .10000E-03    17.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.907        .38927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.162        29.005        .52607E-04   -1.4181    
  14  Prefactor     .10000E-03    53.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.434        39.224        .84589E-04   -1.4760    
  16  Prefactor     .10000E-03    82.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.869        33.442        .52739E-04   -1.4185    
  18  Prefactor     .10000E-03    42.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4512        .75577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.556        5.8942        .94131E-04   -1.4971    
  22  Prefactor     .10000E-03    40.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    53.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    74.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .85193        .84579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     16.601        13.248        .98289E-04   -1.4893    
  27  norm          .10000E-03    3.2201        .14736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    14.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.052        37.903        .10007E-03   -1.4906    
  30  Normalizat    1.2407        .31652        .26700E-03   -.85354    
  31  Prefactor     .70978        .23052        .26675E-03   -1.0314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49677e-09
Minuit parameter uncertainties:
  1  6.66587e-06
  2  1.79982e-06
  3  3.58298
  4  39.7468
  5  8.11775
  6  4.34851e-07
  7  1.35481e-05
  8  1.46405e-05
  9  9.06799
  10  1.67152e-05
  11  0.000556094
  12  2.44218e-05
  13  29.0116
  14  3.18362e-05
  15  39.2689
  16  5.22459e-05
  17  33.4527
  18  0.000167475
  19  7.58082e-05
  20  2.56768e-07
  21  5.89444
  22  2.47018e-05
  23  0.00035816
  24  2.7945e-05
  25  6.58998e-05
  26  13.2499
  27  7.03064e-05
  28  2.1435e-05
  29  37.9599
  30  0.31701
  31  0.230829
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  5.561e-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:  7.098e-01  2.308e-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.241e+00  3.170e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242554/likelihoodResults_418953601_419212801_4FGL_J1200.2+0201_daily_bin693.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) = 4176.53682402
delta logL = -0.000118128258691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4176.53682398
delta logL = -0.000118088167255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96338E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1093       1.0000          .0000       10.000    
     3 'Normalizat'    1.2407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70978       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=   4176.354     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      284 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78520        34.757        .90715E-02    .82274E-03
   2  Index         3.3413        3.5005        .11745        .99230E-04
   3  Normalizat    1.1859        .54419E-01    .61545E-01   -.22709E-04
   4  Prefactor     .73249        .42432E-01    .42531E-01   -.36386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.785197
  Index      = 3.34132
  Normalizat = 1.18594
  Prefactor  = 0.732488
 **********
 **   18 **HESSE 
 **********

 FCN=   4176.354     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      317 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78520        107.92        .92441E-04   -1.5531    
   2  Index         3.3413        5.8694        .65509E-02   -.33814    
   3  Normalizat    1.1859        .29270        .27222E-03   -.87038    
   4  Prefactor     .73249        .22844        .26295E-03   -1.0227    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.19338e-07
Minuit parameter uncertainties:
  1  18.4434
  2  9.69967
  3  0.293103
  4  0.228731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242554': 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) = 4176.35395141
delta logL = 0.182754480418

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  7.852e-01  1.844e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  3.341e+00  9.700e+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:  7.325e-01  2.287e-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.186e+00  2.931e-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/242554/cmap_HighResolution_418953601_419212801_4FGL_J1200.2+0201_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 20:00:59.837185', job_id='242554', GAL2='0.73', fit_tolerance='1e-08', EG2='1.19', EG='1.24', time_epoch_completed='1630810859.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.83e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='693' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:00:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 242554: <4FGL_J1200.2+0201_daily_bin693> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin693> 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) <bullet0102>, 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:01:00 2021
Results reported at Sat Sep  4 20:01:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin693 180.055 2.0172 418953601 419212801 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 :                                   722.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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

