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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1591
RA = 180.187, Dec = 20.1354
tmin = 651715201, tmax = 651974401
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='264170', job_status='RUN', time_executed='2021-09-04 20:53:52.984206', time_epoch_executed='1630814032.98' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264170/ft1_4FGL_J1200.7+2008_daily_bin1591.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264170/ft2_4FGL_J1200.7+2008_daily_bin1591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264170/ft1_4FGL_J1200.7+2008_daily_bin1591.fits outfile=/scratch/kocevski/264170/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1591.fits ra=180.187 dec=20.1354 rad=12.0 tmin=651715201.0 tmax=651974401.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.53
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264170/ft2_4FGL_J1200.7+2008_daily_bin1591.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/264170/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1591.fits evtable="EVENTS" outfile="/scratch/kocevski/264170/ft1_filtered_4FGL_J1200.7+2008_daily_bin1591.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264170/ft1_filtered_4FGL_J1200.7+2008_daily_bin1591.fits" evtable="EVENTS" scfile=/scratch/kocevski/264170/ft2_4FGL_J1200.7+2008_daily_bin1591.fits sctable="SC_DATA" outfile=/scratch/kocevski/264170/ltcube_651715201_651974401_4FGL_J1200.7+2008_daily_bin1591.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/264170/ft2_4FGL_J1200.7+2008_daily_bin1591.fits
.....................!
real 11.73
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264170/ft1_filtered_4FGL_J1200.7+2008_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/264170/ft2_4FGL_J1200.7+2008_daily_bin1591.fits sctable="SC_DATA" expcube=/scratch/kocevski/264170/ltcube_651715201_651974401_4FGL_J1200.7+2008_daily_bin1591.fits outfile=/scratch/kocevski/264170/expmap_651715201_651974401_4FGL_J1200.7+2008_daily_bin1591.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/264170/ltcube_651715201_651974401_4FGL_J1200.7+2008_daily_bin1591.fits
.....................!
real 189.80
user 185.03
sys 4.40

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/264170/ft1_filtered_4FGL_J1200.7+2008_daily_bin1591.fits scfile=/scratch/kocevski/264170/ft2_4FGL_J1200.7+2008_daily_bin1591.fits outfile=/scratch/kocevski/264170/cmap_651715201_651974401_4FGL_J1200.7+2008_daily_bin1591.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264170/ft1_filtered_4FGL_J1200.7+2008_daily_bin1591.fits scfile=/scratch/kocevski/264170/ft2_4FGL_J1200.7+2008_daily_bin1591.fits outfile=/scratch/kocevski/264170/cmap_HighResolution_651715201_651974401_4FGL_J1200.7+2008_daily_bin1591.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264170/ft1_filtered_4FGL_J1200.7+2008_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/264170/ft2_4FGL_J1200.7+2008_daily_bin1591.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264170/Model_4FGL_J1200.7+2008_daily_bin1591.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/264170/ft1_filtered_4FGL_J1200.7+2008_daily_bin1591.fits.....................!
real 57.05
user 55.11
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0041       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.499       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14917E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0968       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3955       1.0000         .10000E-03   10000.    
    10 'norm      '    9.7233       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.597       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5725       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .97476       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2474       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0617       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7120       1.0000         .10000E-03   10000.    
    20 'norm      '    .15287       1.0000         .10000E-03   10000.    
    21 'norm      '    .11240E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6166       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6182       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.340       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69244       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3707       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=   6194.313     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3194 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0036        7.2009        .34800E-06    .18909E-03
   2  norm          .10000E-03    4.9120       -.27456E-07** at limit **
   3  Prefactor     25.497        14.110        .18736E-06    .18304E-04
   4  Prefactor     .10000E-03    22.023       -.49259E-07** at limit **
   5  Prefactor     8.4407        10.056        .66738E-07   -.91014E-05
   6  Prefactor     .10000E-03    63.297       -.24854E-05** at limit **
   7  Prefactor     3.1133        12.813        .10838E-05   -.18691E-04
   8  Prefactor     1.0967        2.2236        .43073E-06    .64538E-04
   9  Prefactor     8.3958        13.385        .38054E-06   -.68042E-05
  10  norm          9.7230        1.9923        .11159E-07   -.27520E-03
  11  Prefactor     14.596        15.361        .14471E-06   -.31006E-04
  12  Prefactor     6.5717        4.2358       -.39965E-07   -.17964E-03
  13  Prefactor     .10000E-03    58.979        .38616E-07** at limit **
  14  Prefactor     .97480        2.1207        .74844E-06    .41498E-03
  15  Prefactor     .10000E-03    1.1796       -.65562E-07** at limit **
  16  norm          5.2474        2.8607        .12026E-07   -.10395E-03
  17  Prefactor     4.0617        2.3567        .29194E-10   -.11572E-03
  18  Prefactor     .10000E-03    1.0438        .77991E-07** at limit **
  19  Prefactor     4.7229        8.0751       -.83202E-06   -.58213E-03
  20  norm          .15281        .16190        .33995E-07   -.62671E-03
  21  norm          .10115E-03    3.8767        .15740E-05** at limit **
  22  Prefactor     5.5981        14.876        .59179E-06   -.31261E-04
  23  Prefactor     9.6192        10.447        .67587E-07   -.12185E-03
  24  Prefactor     35.351        32.256        .15633E-06    .62658E-04
  25  Normalizat    .69262        .20416       -.26915E-05   -.31029E-03
  26  Prefactor     1.3705        .19807        .54955E-06   -.39628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.00362
  norm       = 0.0001
  Prefactor  = 25.4971
  Prefactor  = 0.0001
  Prefactor  = 8.44072
  Prefactor  = 0.000100001
  Prefactor  = 3.11331
  Prefactor  = 1.09673
  Prefactor  = 8.39578
  norm       = 9.72299
  Prefactor  = 14.5958
  Prefactor  = 6.57168
  Prefactor  = 0.0001
  Prefactor  = 0.974801
  Prefactor  = 0.0001
  norm       = 5.24741
  Prefactor  = 4.06165
  Prefactor  = 0.0001
  Prefactor  = 4.72291
  norm       = 0.152813
  norm       = 0.000101147
  Prefactor  = 5.59806
  Prefactor  = 9.61915
  Prefactor  = 35.3509
  Normalizat = 0.692625
  Prefactor  = 1.37052
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.313     FROM HESSE     STATUS=OK           476 CALLS     3670 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0036        7.1911        .16387E-03   -1.5218    
   2  norm          .10000E-03    4.9267        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.497        14.105        .79330E-04   -1.4698    
   4  Prefactor     .10000E-03    22.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4407        10.054        .13798E-03   -1.5127    
   6  Prefactor     .10000E-03    64.559        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1133        12.603        .22976E-03   -1.5355    
   8  Prefactor     1.0967        2.2137        .15527E-03   -1.5499    
   9  Prefactor     8.3958        13.393        .13836E-03   -1.5128    
  10  norm          9.7230        1.9932        .47925E-04   -1.5084    
  11  Prefactor     14.596        15.345        .10483E-03   -1.4944    
  12  Prefactor     6.5717        4.2138        .12196E-03   -1.5195    
  13  Prefactor     .10000E-03    59.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .97480        2.0275        .16549E-02   -1.5511    
  15  Prefactor     .10000E-03    1.1921        .83366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2474        2.8622        .93777E-04   -1.5250    
  17  Prefactor     4.0617        2.3588        .87872E-04   -1.5305    
  18  Prefactor     .10000E-03    1.0639        .78510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7229        8.3361        .18537E-03   -1.5273    
  20  norm          .15281        .15431        .30921E-03   -1.5630    
  21  norm          .10115E-03    4.9076        .41980E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.5981        14.807        .16951E-03   -1.5235    
  23  Prefactor     9.6192        10.430        .12922E-03   -1.5088    
  24  Prefactor     35.351        32.119        .67412E-04   -1.4518    
  25  Normalizat    .69262        .22732        .31715E-03   -1.0418    
  26  Prefactor     1.3705        .22939        .24767E-03   -.81234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84597e-09
Minuit parameter uncertainties:
  1  7.19218
  2  4.97802e-06
  3  14.1072
  4  1.19787e-05
  5  10.0564
  6  0.000561672
  7  12.5323
  8  2.21388
  9  13.3977
  10  1.9932
  11  15.3496
  12  4.21397
  13  8.79369e-05
  14  2.02766
  15  2.86597e-06
  16  2.86225
  17  2.35888
  18  2.6228e-06
  19  8.33817
  20  0.154313
  21  0.00474499
  22  14.8169
  23  10.4317
  24  32.1347
  25  0.227634
  26  0.229561
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  6.572e+00  4.214e+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

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.371e+00  2.296e-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.926e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.90
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.40e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.17e-05

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): 0
logL (Free Index) = 6193.90124943
delta logL = 0.411548652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6193.88730612
delta logL = 0.425491962586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3227       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9874       1.0000          .0000       10.000    
     3 'Normalizat'    .72487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3508       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=   6193.887     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      219 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3247        8.1916        .37055E-02    .46071E-04
   2  Index         1.9872        .72483        .22697       -.27058E-04
   3  Normalizat    .72489        .18704        .70146E-01    .15047E-04
   4  Prefactor     1.3508        .19607        .56345E-01   -.12691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.32468
  Index      = 1.98724
  Normalizat = 0.724891
  Prefactor  = 1.35076
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.887     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3247        4.9832        .13767E-03   -1.5167    
   2  Index         1.9872        .53596        .81624E-02   -.64669    
   3  Normalizat    .72489        .21456        .31043E-03   -1.0292    
   4  Prefactor     1.3508        .22733        .24913E-03   -.81810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04774e-12
Minuit parameter uncertainties:
  1  4.98349
  2  0.537581
  3  0.214804
  4  0.227501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264170': 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) = 6193.88730598
delta logL = 0.425492100183

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  7.325e+00  4.983e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.987e+00  5.376e-01  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.351e+00  2.275e-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:  7.249e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.73
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.99 +/- 0.54
Photon Flux (Free Index): 3.81e-08 +/- 3.57e-08
Energy Flux (Free Index): 2.72e-05 +/- 2.61e-05

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/264170/cmap_HighResolution_651715201_651974401_4FGL_J1200.7+2008_daily_bin1591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.40e-08', energy_flux2='2.72e-05', photon_flux_error='4.10e-08', dlogl='4.25e-01', energy_flux='1.82e-05', photon_flux2='3.81e-08', job_status='DONE', time_completed='2021-09-04 21:05:22.660952', photon_index_error2='0.54', photon_index2='1.99', ts='5.90', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='0.69', time_epoch_completed='1630814722.66', return_code='0', job_id='264170', GAL2='1.35', EG2='0.72', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.57e-08', ts2='6.73', photon_index='2.52' WHERE bin_id='1591' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:05:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 264170: <4FGL_J1200.7+2008_daily_bin1591> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1591> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:50 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:51 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:50:51 2021
Terminated at Sat Sep  4 21:05:23 2021
Results reported at Sat Sep  4 21:05:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1591 180.187 20.1354 651715201 651974401 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 :                                   680.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

