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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1005
RA = 180.187, Dec = 20.1354
tmin = 499824001, tmax = 500083201
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='262015', job_status='RUN', time_executed='2021-09-04 20:48:45.141404', time_epoch_executed='1630813725.14' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262015/ft1_4FGL_J1200.7+2008_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262015/ft1_4FGL_J1200.7+2008_daily_bin1005.fits outfile=/scratch/kocevski/262015/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1005.fits ra=180.187 dec=20.1354 rad=12.0 tmin=499824001.0 tmax=500083201.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.17
user 4.89
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262015/ft1_filtered_4FGL_J1200.7+2008_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/262015/ltcube_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.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/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits
.....................!
real 12.28
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262015/ft1_filtered_4FGL_J1200.7+2008_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/262015/ltcube_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.fits outfile=/scratch/kocevski/262015/expmap_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.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/262015/ltcube_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.fits
.....................!
real 190.92
user 185.56
sys 4.86

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.7+2008 @ 180.187 20.1354

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/262015/ft1_filtered_4FGL_J1200.7+2008_daily_bin1005.fits scfile=/scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits outfile=/scratch/kocevski/262015/cmap_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.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.187 yref=20.1354 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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262015/ft1_filtered_4FGL_J1200.7+2008_daily_bin1005.fits scfile=/scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits outfile=/scratch/kocevski/262015/cmap_HighResolution_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.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.187 yref=20.1354 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262015/ft1_filtered_4FGL_J1200.7+2008_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262015/Model_4FGL_J1200.7+2008_daily_bin1005.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/262015/ft1_filtered_4FGL_J1200.7+2008_daily_bin1005.fits.....................!
real 46.65
user 45.14
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/262015/ft1_filtered_4FGL_J1200.7+2008_daily_bin1005.fits', '/scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits', expMap='/scratch/kocevski/262015/expmap_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.fits', expCube='/scratch/kocevski/262015/ltcube_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/262015/Model_4FGL_J1200.7+2008_daily_bin1005.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.7+2008'

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.085e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/262015/ft1_filtered_4FGL_J1200.7+2008_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/262015/ft2_4FGL_J1200.7+2008_daily_bin1005.fits
Exposure map: /scratch/kocevski/262015/expmap_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.fits
Exposure cube: /scratch/kocevski/262015/ltcube_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/262015/Model_4FGL_J1200.7+2008_daily_bin1005.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) = 4779.51914461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.096       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19132       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.3802       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.616       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9619       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6702       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9845       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .18263       1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.403       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .64436       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4779.506     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3098 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1747       -.60790E-07** at limit **
   2  norm          .10000E-03    4.9496        .13285E-05** at limit **
   3  Prefactor     7.3117        12.540       -.65402E-06   -.36700E-04
   4  Prefactor     .10000E-03    17.850        .78280E-06** at limit **
   5  Prefactor     .10000E-03    9.5610       -.15861E-05** at limit **
   6  Prefactor     14.096        31.327       -.17597E-05    .14092E-03
   7  Prefactor     .10000E-03    9.2217        .72791E-06** at limit **
   8  Prefactor     .19217        2.2457       -.87639E-06   -.23745E-03
   9  Prefactor     .10000E-03    5.7495       -.26158E-05** at limit **
  10  norm          8.3803        2.2071        .22542E-07    .19142E-03
  11  Prefactor     6.0575        45.525       -.33515E-04    .53712E-04
  12  Prefactor     .10000E-03    3.3418        .84644E-06** at limit **
  13  Prefactor     79.648        160.96        .35914E-04    .49279E-04
  14  Prefactor     8.3742        4.2615        .16530E-06   -.41365E-03
  15  Prefactor     1.9619        3.7046        .62609E-06   -.66292E-03
  16  norm          7.2902        3.9986       -.35513E-07   -.84035E-05
  17  Prefactor     4.6702        3.0583       -.74017E-07    .82576E-04
  18  Prefactor     5.9844        2.9415        .10384E-06   -.73880E-04
  19  Prefactor     .10000E-03    2.3823        .82324E-10** at limit **
  20  norm          .18263        .15951       -.31496E-07    .98777E-04
  21  norm          .10000E-03    5.0129        .79926E-07** at limit **
  22  Prefactor     10.403        8.9674       -.15291E-06    .31608E-04
  23  Prefactor     .10000E-03    4.4681       -.66505E-06** at limit **
  24  Prefactor     .10000E-03    32.427       -.33344E-06** at limit **
  25  Normalizat    .64426        .20729        .16548E-05    .67906E-04
  26  Prefactor     1.2116        .20129        .11739E-06    .10681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.31174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0956
  Prefactor  = 0.0001
  Prefactor  = 0.192171
  Prefactor  = 0.0001
  norm       = 8.38026
  Prefactor  = 6.0575
  Prefactor  = 0.000100003
  Prefactor  = 79.648
  Prefactor  = 8.3742
  Prefactor  = 1.96187
  norm       = 7.2902
  Prefactor  = 4.6702
  Prefactor  = 5.98442
  Prefactor  = 0.0001
  norm       = 0.182629
  norm       = 0.0001
  Prefactor  = 10.4026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.644259
  Prefactor  = 1.21164
 **********
 **   18 **HESSE 
 **********

 FCN=   4779.506     FROM HESSE     STATUS=OK           460 CALLS     3558 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1880        .12027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.9513        .15012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3117        12.542        .14833E-03   -1.5167    
   4  Prefactor     .10000E-03    17.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.096        29.843        .10668E-03   -1.4957    
   7  Prefactor     .10000E-03    9.2885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .19217        4.2517        .17467E-02   -1.5620    
   9  Prefactor     .10000E-03    5.7566        .16168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.3803        2.2057        .49608E-04   -1.5129    
  11  Prefactor     6.0575        46.266        .16297E-03   -1.5216    
  12  Prefactor     .10000E-03    6.6928        .23974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     79.648        161.87        .45009E-04   -1.3921    
  14  Prefactor     8.3742        4.1903        .90110E-04   -1.5129    
  15  Prefactor     1.9619        3.6414        .16287E-03   -1.5428    
  16  norm          7.2902        4.0090        .94699E-04   -1.5168    
  17  Prefactor     4.6702        3.0688        .90836E-04   -1.5276    
  18  Prefactor     5.9844        2.9404        .79581E-04   -1.5219    
  19  Prefactor     .10000E-03    2.3856        .10420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .18263        .16506        .24924E-03   -1.5623    
  21  norm          .10000E-03    5.1443        .30206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.403        8.9663        .12422E-03   -1.5063    
  23  Prefactor     .10000E-03    4.4713        .14271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .64426        .24119        .30407E-03   -1.0614    
  26  Prefactor     1.2116        .23716        .23648E-03   -.85974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74964e-08
Minuit parameter uncertainties:
  1  8.66294e-07
  2  2.93292e-05
  3  12.5469
  4  3.17702e-05
  5  4.72025e-05
  6  29.8747
  7  2.00176e-05
  8  1.80749
  9  5.04897e-05
  10  2.20571
  11  33.5174
  12  0.000302153
  13  162.774
  14  4.19049
  15  3.64184
  16  4.0091
  17  3.06886
  18  2.94049
  19  2.25075e-06
  20  0.165065
  21  1.66888e-05
  22  8.96745
  23  1.12544e-05
  24  1.65468e-05
  25  0.241588
  26  0.237374
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.022e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.212e+00  2.374e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  6.443e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 9.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262015/likelihoodResults_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.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) = 4779.50654894
delta logL = -0.000710968968633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4779.50583878
delta logL = -8.08598088042e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5106       1.0000          .0000       10.000    
     3 'Normalizat'    .64412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2118       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4779.506     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      234 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .38305        .40794E-01** at limit **
   2  Index         2.5016        8.6294        .50000        .11172E-04
   3  Normalizat    .64426        .17012E-02    .68706E-01    .11577E-03
   4  Prefactor     1.2116        .17723E-02    .53487E-01    .12088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.50157
  Normalizat = 0.644259
  Prefactor  = 1.21164
 **********
 **   18 **HESSE 
 **********

 FCN=   4779.506     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    132.47        .24087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5016        5.2732        .50000       -.52324    
   3  Normalizat    .64426        .22193E-01    .30407E-03   -1.0614    
   4  Prefactor     1.2116        .23158E-01    .23648E-03   -.85974    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25623e-06
Minuit parameter uncertainties:
  1  0.000553572
  2  598.15
  3  0.0221935
  4  0.0231578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262015': 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) = 4779.50583792
delta logL = 5.14683051733e-08

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  5.536e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.502e+00  5.981e+02  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  7.262e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.212e+00  2.316e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  6.443e-01  2.219e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

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/262015/cmap_HighResolution_499824001_500083201_4FGL_J1200.7+2008_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-09-04 20:59:47.051702', job_id='262015', GAL2='1.21', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630814387.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='5.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1005' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:59:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 262015: <4FGL_J1200.7+2008_daily_bin1005> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1005> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:20 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:45:21 2021
Terminated at Sat Sep  4 20:59:47 2021
Results reported at Sat Sep  4 20:59:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1005 180.187 20.1354 499824001 500083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.7+2008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   656.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            867 sec.

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

