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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1013
RA = 180.187, Dec = 20.1354
tmin = 501897601, tmax = 502156801
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='262027', job_status='RUN', time_executed='2021-09-04 20:45:33.302142', time_epoch_executed='1630813533.3' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262027/ft1_4FGL_J1200.7+2008_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262027/ft1_4FGL_J1200.7+2008_daily_bin1013.fits outfile=/scratch/kocevski/262027/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1013.fits ra=180.187 dec=20.1354 rad=12.0 tmin=501897601.0 tmax=502156801.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.51
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.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/262027/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.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.56
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/262027/ltcube_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.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/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits
.....................!
real 11.90
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/262027/ltcube_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.fits outfile=/scratch/kocevski/262027/expmap_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.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/262027/ltcube_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.fits
.....................!
real 190.63
user 185.98
sys 4.22

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/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.fits scfile=/scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits outfile=/scratch/kocevski/262027/cmap_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.fits scfile=/scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits outfile=/scratch/kocevski/262027/cmap_HighResolution_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262027/Model_4FGL_J1200.7+2008_daily_bin1013.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/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.fits.....................!
real 59.35
user 58.01
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.fits', '/scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits', expMap='/scratch/kocevski/262027/expmap_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.fits', expCube='/scratch/kocevski/262027/ltcube_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/262027/Model_4FGL_J1200.7+2008_daily_bin1013.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/262027/ft1_filtered_4FGL_J1200.7+2008_daily_bin1013.fits
Spacecraft file(s): /scratch/kocevski/262027/ft2_4FGL_J1200.7+2008_daily_bin1013.fits
Exposure map: /scratch/kocevski/262027/expmap_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.fits
Exposure cube: /scratch/kocevski/262027/ltcube_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/262027/Model_4FGL_J1200.7+2008_daily_bin1013.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) = 6699.61755423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .14190E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.115       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.756       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1717       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.4643       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.258       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.239       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5257       1.0000         .10000E-03   10000.    
    16 'norm      '    12.579       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6050       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .36019       1.0000         .10000E-03   10000.    
    21 'norm      '    8.1892       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.455       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.798       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1698       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97698       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=   6699.607     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3104 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7390        .90712E-02** at limit **
   2  norm          .10000E-03    38.374        .90712E-02** at limit **
   3  Prefactor     .10000E-03    18.854        .90712E-02** at limit **
   4  Prefactor     5.1813        78.053        .43694E-02    .16314E-04
   5  Prefactor     10.112        14.593        .31498E-02    .11081E-03
   6  Prefactor     23.754        21.210        .20546E-02    .13014E-02
   7  Prefactor     .10000E-03    4.7466        .90712E-02** at limit **
   8  Prefactor     2.1715        1.8000        .69857E-02    .29214E-03
   9  Prefactor     .10000E-03    5.9490        .90712E-02** at limit **
  10  norm          9.4643        1.8672        .32566E-02   -.35900E-04
  11  Prefactor     10.258        10.650        .31276E-02   -.29174E-03
  12  Prefactor     .10000E-03    1.1055        .90712E-02** at limit **
  13  Prefactor     17.245        52.429        .24116E-02   -.87463E-04
  14  Prefactor     .10000E-03    .68969        .90712E-02** at limit **
  15  Prefactor     3.5258        2.5831        .53822E-02    .25672E-03
  16  norm          12.579        3.9150        .28236E-02   -.18839E-04
  17  Prefactor     .10000E-03    1.0640        .90712E-02** at limit **
  18  Prefactor     4.6051        2.4478        .46892E-02    .83772E-04
  19  Prefactor     .10000E-03    1.8595        .90712E-02** at limit **
  20  norm          .36017        .20321        .59137E-02    .64504E-03
  21  norm          8.1894        4.9320        .35025E-02    .43616E-03
  22  Prefactor     15.455        11.825        .25470E-02   -.32794E-03
  23  Prefactor     .10000E-03    5.2539        .90712E-02** at limit **
  24  Prefactor     25.792        25.272        .19717E-02   -.67184E-03
  25  Normalizat    1.1697        .18562        .58123E-01    .15478E-04
  26  Prefactor     .97716        .18600        .45979E-01    .17769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.18134
  Prefactor  = 10.1121
  Prefactor  = 23.7541
  Prefactor  = 0.0001
  Prefactor  = 2.17153
  Prefactor  = 0.0001
  norm       = 9.4643
  Prefactor  = 10.2583
  Prefactor  = 0.0001
  Prefactor  = 17.245
  Prefactor  = 0.0001
  Prefactor  = 3.52585
  norm       = 12.5792
  Prefactor  = 0.0001
  Prefactor  = 4.6051
  Prefactor  = 0.0001
  norm       = 0.360174
  norm       = 8.18939
  Prefactor  = 15.4551
  Prefactor  = 0.0001
  Prefactor  = 25.7923
  Normalizat = 1.1697
  Prefactor  = 0.977159
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.607     FROM HESSE     STATUS=OK           452 CALLS     3556 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7473        .13228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    40.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1813        78.125        .17478E-03   -1.5253    
   5  Prefactor     10.112        14.593        .12599E-03   -1.5072    
   6  Prefactor     23.754        21.233        .82184E-04   -1.4733    
   7  Prefactor     .10000E-03    4.7685        .17413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1715        1.7851        .93755E-04   -1.5413    
   9  Prefactor     .10000E-03    6.0462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.4643        1.8685        .47565E-04   -1.5093    
  11  Prefactor     10.258        10.642        .12511E-03   -1.5067    
  12  Prefactor     .10000E-03    1.1107        .84021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.245        52.377        .96462E-04   -1.4877    
  14  Prefactor     .10000E-03    .69532        .66334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5258        2.5779        .10810E-03   -1.5332    
  16  norm          12.579        3.9074        .86634E-04   -1.4998    
  17  Prefactor     .10000E-03    1.0730        .82278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6051        2.4474        .88900E-04   -1.5279    
  19  Prefactor     .10000E-03    1.8629        .10897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36017        .19966        .26567E-04   -1.5588    
  21  norm          8.1894        4.9311        .13562E-03   -1.5136    
  22  Prefactor     15.455        11.822        .10188E-03   -1.4922    
  23  Prefactor     .10000E-03    5.2946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.792        25.266        .78870E-04   -1.4692    
  25  Normalizat    1.1697        .21540        .25704E-03   -.87544    
  26  Prefactor     .97716        .21485        .28887E-03   -.93495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32923e-09
Minuit parameter uncertainties:
  1  9.50692e-08
  2  1.15974e-05
  3  6.252e-06
  4  40.3016
  5  14.5979
  6  21.2402
  7  2.19491e-07
  8  1.7851
  9  5.59271e-07
  10  1.86851
  11  10.6438
  12  6.05317e-08
  13  52.5171
  14  2.50603e-08
  15  2.57803
  16  3.90745
  17  1.36941e-07
  18  2.44748
  19  1.25268e-08
  20  0.199659
  21  4.93136
  22  11.8234
  23  1.22137e-07
  24  25.2761
  25  0.215566
  26  0.215038
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  6.053e-08  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:  9.772e-01  2.150e-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:  1.170e+00  2.156e-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: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/262027/likelihoodResults_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.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) = 6699.61084085
delta logL = -0.00420184337509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6699.6066389
delta logL = 1.09650500235e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5094       1.0000          .0000       10.000    
     3 'Normalizat'    1.1697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97720       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6699.607     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      252 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.471        .84448E-02** at limit **
   2  Index         2.0618        5.6590        .50000       -.76079E-07
   3  Normalizat    1.1697        .16398E-01    .25704E-03    .91554E-04
   4  Prefactor     .97716        .17105E-01    .28887E-03    .99493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06179
  Normalizat = 1.1697
  Prefactor  = 0.977159
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.607     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    184.03        .89234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0618        7.4885        .50000       -.62814    
   3  Normalizat    1.1697        .71580E-01    .10282E-04   -.87544    
   4  Prefactor     .97716        .74652E-01    .11555E-04   -.93495    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85935e-09
Minuit parameter uncertainties:
  1  6.10614e-05
  2  987.112
  3  0.0715859
  4  0.0746594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262027': 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) = 6699.60663405
delta logL = 4.96598113386e-06

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  6.106e-05  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.062e+00  9.871e+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:  9.772e-01  7.466e-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:  1.170e+00  7.159e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/262027/cmap_HighResolution_501897601_502156801_4FGL_J1200.7+2008_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-04 20:59:08.360774', job_id='262027', GAL2='0.98', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630814348.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1013' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 262027: <4FGL_J1200.7+2008_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1013> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:21 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:23 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:23 2021
Terminated at Sat Sep  4 20:59:09 2021
Results reported at Sat Sep  4 20:59:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1013 180.187 20.1354 501897601 502156801 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 :                                   812.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

