/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 230 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin184
RA = 180.055, Dec = 2.0172
tmin = 287020801, tmax = 287280001
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='239811', job_status='RUN', time_executed='2021-09-04 19:39:49.936254', time_epoch_executed='1630809589.94' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/239811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/239811/ft1_4FGL_J1200.2+0201_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/239811/ft2_4FGL_J1200.2+0201_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/239811/ft1_4FGL_J1200.2+0201_daily_bin184.fits outfile=/scratch/kocevski/239811/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin184.fits ra=180.055 dec=2.0172 rad=12.0 tmin=287020801.0 tmax=287280001.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.59
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/239811/ft1_filtered_4FGL_J1200.2+0201_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/239811/ft2_4FGL_J1200.2+0201_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/239811/ltcube_287020801_287280001_4FGL_J1200.2+0201_daily_bin184.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/239811/ft2_4FGL_J1200.2+0201_daily_bin184.fits
.....................!
real 9.04
user 8.74
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/239811/ft1_filtered_4FGL_J1200.2+0201_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/239811/ft2_4FGL_J1200.2+0201_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/239811/ltcube_287020801_287280001_4FGL_J1200.2+0201_daily_bin184.fits outfile=/scratch/kocevski/239811/expmap_287020801_287280001_4FGL_J1200.2+0201_daily_bin184.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/239811/ltcube_287020801_287280001_4FGL_J1200.2+0201_daily_bin184.fits
.....................!
real 145.31
user 140.96
sys 4.12

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/239811/ft1_filtered_4FGL_J1200.2+0201_daily_bin184.fits scfile=/scratch/kocevski/239811/ft2_4FGL_J1200.2+0201_daily_bin184.fits outfile=/scratch/kocevski/239811/cmap_287020801_287280001_4FGL_J1200.2+0201_daily_bin184.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/239811/ft1_filtered_4FGL_J1200.2+0201_daily_bin184.fits scfile=/scratch/kocevski/239811/ft2_4FGL_J1200.2+0201_daily_bin184.fits outfile=/scratch/kocevski/239811/cmap_HighResolution_287020801_287280001_4FGL_J1200.2+0201_daily_bin184.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.46
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58101       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5273       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.818       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.949       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.199       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68462       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4325       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4134       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2130       1.0000         .10000E-03   10000.    
    21 'norm      '    6.9667       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.075       1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    177.92       1.0000         .10000E-03   10000.    
    25 'norm      '    5.1198       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.3352       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.369       1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.533       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89652       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .90270       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=   5242.549     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4137 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57041        3.7326        .14362E-05   -.46001E-03
   2  norm          .10000E-03    10.673        .12654E-06** at limit **
   3  Prefactor     1.5264        2.4139        .16510E-06   -.25369E-04
   4  Prefactor     .10000E-03    18.441       -.12046E-05** at limit **
   5  norm          14.013        10.001       -.16543E-05   -.49670E-04
   6  Prefactor     2.3118        5.3469        .51324E-05    .13628E-04
   7  Prefactor     14.810        29.880       -.51465E-06   -.17884E-05
   8  Prefactor     .10000E-03    30.939        .42537E-06** at limit **
   9  Prefactor     5.9282        9.0047       -.13823E-06   -.86510E-06
  10  Prefactor     31.914        48.053       -.30635E-06    .67288E-05
  11  Prefactor     .10000E-03    5.6299        .21248E-06** at limit **
  12  Prefactor     .10000E-03    13.011       -.11278E-05** at limit **
  13  Prefactor     5.1802        11.858        .18912E-06    .49979E-05
  14  Prefactor     98.173        84.694        .34772E-05    .27690E-04
  15  Prefactor     .10000E-03    15.690        .43359E-06** at limit **
  16  Prefactor     .38234        40.843       -.13363E-05    .82637E-04
  17  Prefactor     4.4249        30.466       -.32148E-05   -.25708E-05
  18  Prefactor     .10000E-03    16.016        .22885E-06** at limit **
  19  Prefactor     7.4030        25.679       -.46442E-05   -.58677E-05
  20  norm          4.2136        4.4200        .84458E-06    .29990E-04
  21  norm          6.9670        5.4393       -.10176E-06    .48531E-04
  22  Prefactor     34.075        32.750       -.15220E-06    .64845E-05
  23  norm          .10000E-03    16.475        .47789E-07** at limit **
  24  Prefactor     177.79        167.45        .12697E-04    .28490E-04
  25  norm          5.1197        1.0992        .66012E-07    .75114E-05
  26  Prefactor     .10000E-03    15.996        .35978E-06** at limit **
  27  norm          3.3349        2.1321       -.17815E-07   -.85135E-05
  28  Prefactor     12.368        13.087        .12616E-06    .44776E-06
  29  Prefactor     21.530        34.310        .82604E-06    .62850E-05
  30  Normalizat    .89684        .24160       -.11761E-05   -.20676E-04
  31  Prefactor     .90263        .18109        .27214E-06    .30536E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.57041
  norm       = 0.0001
  Prefactor  = 1.52637
  Prefactor  = 0.0001
  norm       = 14.0134
  Prefactor  = 2.31183
  Prefactor  = 14.8101
  Prefactor  = 0.0001
  Prefactor  = 5.92816
  Prefactor  = 31.9143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.18018
  Prefactor  = 98.1728
  Prefactor  = 0.0001
  Prefactor  = 0.382343
  Prefactor  = 4.42489
  Prefactor  = 0.0001
  Prefactor  = 7.403
  norm       = 4.21364
  norm       = 6.96698
  Prefactor  = 34.0751
  norm       = 0.0001
  Prefactor  = 177.787
  norm       = 5.1197
  Prefactor  = 0.0001
  norm       = 3.3349
  Prefactor  = 12.3685
  Prefactor  = 21.53
  Normalizat = 0.896841
  Prefactor  = 0.902631
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.549     FROM HESSE     STATUS=OK           640 CALLS     4777 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57041        14.829        .25636E-02   -1.5557    
   2  norm          .10000E-03    10.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5264        2.3899        .13407E-03   -1.5461    
   4  Prefactor     .10000E-03    18.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.013        10.012        .10700E-03   -1.4959    
   6  Prefactor     2.3118        5.3837        .10811E-02   -1.5404    
   7  Prefactor     14.810        29.881        .10405E-03   -1.4938    
   8  Prefactor     .10000E-03    30.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9282        8.9969        .16491E-03   -1.5221    
  10  Prefactor     31.914        48.100        .70889E-04   -1.4578    
  11  Prefactor     .10000E-03    5.6694        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1802        11.837        .17657E-03   -1.5253    
  14  Prefactor     98.173        84.892        .20283E-03   -1.3723    
  15  Prefactor     .10000E-03    15.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .38234        50.430        .12765       -1.5584    
  17  Prefactor     4.4249        30.075        .19127E-03   -1.5287    
  18  Prefactor     .10000E-03    16.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4030        25.663        .14730E-03   -1.5164    
  20  norm          4.2136        4.4315        .11145E-03   -1.5297    
  21  norm          6.9670        5.4477        .13055E-03   -1.5180    
  22  Prefactor     34.075        32.752        .68649E-04   -1.4540    
  23  norm          .10000E-03    16.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     177.79        167.47        .15129E-03   -1.3033    
  25  norm          5.1197        1.1029        .30193E-04   -1.5255    
  26  Prefactor     .10000E-03    16.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.3349        2.1269        .80015E-04   -1.5343    
  28  Prefactor     12.368        13.079        .11390E-03   -1.5004    
  29  Prefactor     21.530        34.314        .86317E-04   -1.4780    
  30  Normalizat    .89684        .28334        .31171E-03   -.96571    
  31  Prefactor     .90263        .21282        .24806E-03   -.96049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56827e-09
Minuit parameter uncertainties:
  1  5.81787
  2  7.39643e-06
  3  2.39001
  4  4.37144e-05
  5  10.0137
  6  5.38486
  7  29.9112
  8  5.11148e-06
  9  8.99895
  10  48.1588
  11  2.25035e-05
  12  9.92856e-05
  13  11.8419
  14  84.9975
  15  1.28591e-05
  16  8.78861
  17  23.0883
  18  1.32957e-05
  19  25.7017
  20  4.43185
  21  5.44805
  22  32.7691
  23  3.12977e-06
  24  167.921
  25  1.10286
  26  3.44485e-05
  27  2.12696
  28  13.0819
  29  34.3457
  30  0.283817
  31  0.213017
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.250e-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.026e-01  2.130e-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:  8.968e-01  2.838e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/239811/likelihoodResults_287020801_287280001_4FGL_J1200.2+0201_daily_bin184.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) = 5242.55027732
delta logL = -0.000839898275444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5242.54943782
delta logL = -3.92266883864e-07

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 'Index     '    2.1191       1.0000          .0000       10.000    
     3 'Normalizat'    .89662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90282       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=   5242.549     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.34        .90712E-02** at limit **
   2  Index         2.1291        8.5778        .50000       -.14840E-04
   3  Normalizat    .89684        .26560E-01    .70451E-01    .34517E-04
   4  Prefactor     .90263        .21322E-01    .45041E-01    .27489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12912
  Normalizat = 0.896841
  Prefactor  = 0.90263
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.549     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.837        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1291        5.7800        .50000       -.61160    
   3  Normalizat    .89684        .25535        .31171E-03   -.96571    
   4  Prefactor     .90263        .20537        .24806E-03   -.96049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03069e-10
Minuit parameter uncertainties:
  1  2.18108e-05
  2  5.89879
  3  0.255693
  4  0.205543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/239811': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5242.54943736
delta logL = 7.08660081727e-08

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.181e-05  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.129e+00  5.899e+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:  9.026e-01  2.055e-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:  8.968e-01  2.557e-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/239811/cmap_HighResolution_287020801_287280001_4FGL_J1200.2+0201_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-04 19:50:23.549345', job_id='239811', GAL2='0.90', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630810223.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='7.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='184' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:50:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 239811: <4FGL_J1200.2+0201_daily_bin184> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin184> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:35:52 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:35:53 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:35:53 2021
Terminated at Sat Sep  4 19:50:24 2021
Results reported at Sat Sep  4 19:50:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin184 180.055 2.0172 287020801 287280001 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 :                                   631.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

