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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin122
RA = 180.187, Dec = 20.1354
tmin = 270950401, tmax = 271209601
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='257003', job_status='RUN', time_executed='2021-09-04 20:30:46.605688', time_epoch_executed='1630812646.61' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257003

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257003/ft1_4FGL_J1200.7+2008_daily_bin122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257003/ft2_4FGL_J1200.7+2008_daily_bin122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257003/ft1_4FGL_J1200.7+2008_daily_bin122.fits outfile=/scratch/kocevski/257003/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin122.fits ra=180.187 dec=20.1354 rad=12.0 tmin=270950401.0 tmax=271209601.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 1.84
user 1.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257003/ft2_4FGL_J1200.7+2008_daily_bin122.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/257003/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin122.fits evtable="EVENTS" outfile="/scratch/kocevski/257003/ft1_filtered_4FGL_J1200.7+2008_daily_bin122.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.53
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257003/ft1_filtered_4FGL_J1200.7+2008_daily_bin122.fits" evtable="EVENTS" scfile=/scratch/kocevski/257003/ft2_4FGL_J1200.7+2008_daily_bin122.fits sctable="SC_DATA" outfile=/scratch/kocevski/257003/ltcube_270950401_271209601_4FGL_J1200.7+2008_daily_bin122.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/257003/ft2_4FGL_J1200.7+2008_daily_bin122.fits
.....................!
real 12.40
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257003/ft1_filtered_4FGL_J1200.7+2008_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/257003/ft2_4FGL_J1200.7+2008_daily_bin122.fits sctable="SC_DATA" expcube=/scratch/kocevski/257003/ltcube_270950401_271209601_4FGL_J1200.7+2008_daily_bin122.fits outfile=/scratch/kocevski/257003/expmap_270950401_271209601_4FGL_J1200.7+2008_daily_bin122.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/257003/ltcube_270950401_271209601_4FGL_J1200.7+2008_daily_bin122.fits
.....................!
real 190.01
user 184.58
sys 5.07

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/257003/ft1_filtered_4FGL_J1200.7+2008_daily_bin122.fits scfile=/scratch/kocevski/257003/ft2_4FGL_J1200.7+2008_daily_bin122.fits outfile=/scratch/kocevski/257003/cmap_270950401_271209601_4FGL_J1200.7+2008_daily_bin122.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257003/ft1_filtered_4FGL_J1200.7+2008_daily_bin122.fits scfile=/scratch/kocevski/257003/ft2_4FGL_J1200.7+2008_daily_bin122.fits outfile=/scratch/kocevski/257003/cmap_HighResolution_270950401_271209601_4FGL_J1200.7+2008_daily_bin122.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/257003/ft1_filtered_4FGL_J1200.7+2008_daily_bin122.fits evtable="EVENTS" scfile=/scratch/kocevski/257003/ft2_4FGL_J1200.7+2008_daily_bin122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257003/Model_4FGL_J1200.7+2008_daily_bin122.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/257003/ft1_filtered_4FGL_J1200.7+2008_daily_bin122.fits.....................!
real 67.80
user 66.30
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4245       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9942       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7207       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19305E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0375       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.4135       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1557       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .47546       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1952       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.555       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.872       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11148E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2423       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73730       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=   7530.956     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     2763 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4242        5.1233        .24861E-06   -.15561E-03
   2  norm          .10000E-03    2.7029        .14772E-07** at limit **
   3  Prefactor     .10000E-03    18.457        .14131E-06** at limit **
   4  Prefactor     .10000E-03    17.674       -.44666E-07** at limit **
   5  Prefactor     .10000E-03    2.7314        .52768E-08** at limit **
   6  Prefactor     .10000E-03    8.1179        .36141E-07** at limit **
   7  Prefactor     9.9986        11.160        .91187E-07    .18771E-04
   8  Prefactor     .89101        .79600       -.63159E-08    .11690E-03
   9  Prefactor     .10000E-03    8.8564       -.27667E-06** at limit **
  10  norm          1.9942        .95394        .45543E-08   -.28178E-05
  11  Prefactor     5.7168        13.172       -.16920E-06   -.52435E-04
  12  Prefactor     .10000E-03    1.8029       -.36012E-06** at limit **
  13  Prefactor     .10001E-03    310.93       -.53212E-05** at limit **
  14  Prefactor     1.0351        2.3554        .11323E-05    .11005E-03
  15  Prefactor     .10000E-03    1.7644       -.70504E-06** at limit **
  16  norm          6.4134        2.8404       -.44010E-08    .27075E-05
  17  Prefactor     .10000E-03    .78481        .35393E-07** at limit **
  18  Prefactor     3.1556        1.9456        .81581E-08   -.34508E-04
  19  Prefactor     .10000E-03    1.9136        .98990E-08** at limit **
  20  norm          .47547        .21271       -.23822E-08    .11047E-03
  21  norm          5.1952        3.8447        .49863E-07   -.65631E-04
  22  Prefactor     17.561        10.402        .66751E-07    .19867E-04
  23  Prefactor     40.877        13.218        .85308E-07    .22106E-03
  24  Prefactor     .10000E-03    104.94        .11964E-05** at limit **
  25  Normalizat    1.2422        .16121       -.32770E-08    .15763E-03
  26  Prefactor     .73735        .15935       -.17961E-06    .12902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42422
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.99864
  Prefactor  = 0.891009
  Prefactor  = 0.0001
  norm       = 1.9942
  Prefactor  = 5.71683
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 1.03513
  Prefactor  = 0.0001
  norm       = 6.41344
  Prefactor  = 0.0001
  Prefactor  = 3.15564
  Prefactor  = 0.0001
  norm       = 0.475468
  norm       = 5.19522
  Prefactor  = 17.5606
  Prefactor  = 40.8772
  Prefactor  = 0.000100001
  Normalizat = 1.24225
  Prefactor  = 0.737352
 **********
 **   18 **HESSE 
 **********

 FCN=   7530.956     FROM HESSE     STATUS=OK           460 CALLS     3223 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4242        5.0892        .21859E-03   -1.5338    
   2  norm          .10000E-03    2.7070        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7320        .14007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9986        11.029        .12670E-03   -1.5075    
   8  Prefactor     .89101        .83428        .71103E-03   -1.5519    
   9  Prefactor     .10000E-03    8.9554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9942        .95305        .56669E-04   -1.5426    
  11  Prefactor     5.7168        13.184        .16794E-03   -1.5230    
  12  Prefactor     .10000E-03    6.2903        .21549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    305.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0351        2.4545        .19555E-03   -1.5504    
  15  Prefactor     .10000E-03    3.7412        .21428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.4134        2.8355        .93583E-04   -1.5201    
  17  Prefactor     .10000E-03    .78937        .74943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1556        1.9439        .90470E-04   -1.5353    
  19  Prefactor     .10000E-03    1.9185        .11716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .47547        .21036        .25461E-04   -1.5570    
  21  norm          5.1952        3.8368        .14088E-03   -1.5252    
  22  Prefactor     17.561        10.362        .95592E-04   -1.4870    
  23  Prefactor     40.877        13.250        .62700E-04   -1.4428    
  24  Prefactor     .10000E-03    108.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2422        .19072        .22815E-03   -.85307    
  26  Prefactor     .73735        .18802        .29073E-03   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3394e-10
Minuit parameter uncertainties:
  1  5.08985
  2  9.37591e-07
  3  3.27954e-06
  4  2.28257e-05
  5  4.6945e-07
  6  5.97688e-06
  7  11.0314
  8  0.834292
  9  4.37452e-05
  10  0.953057
  11  13.1911
  12  3.30358e-05
  13  0.00312558
  14  2.45479
  15  1.33901e-05
  16  2.83553
  17  1.317e-06
  18  1.94392
  19  1.26721e-06
  20  0.210356
  21  3.83694
  22  10.363
  23  13.2513
  24  0.00047065
  25  0.190827
  26  0.188183
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.304e-05  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:  7.374e-01  1.882e-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.242e+00  1.908e-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: 7.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257003/likelihoodResults_270950401_271209601_4FGL_J1200.7+2008_daily_bin122.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) = 7530.9566773
delta logL = -0.000757413386054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7530.9559223
delta logL = -2.41336329054e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13287E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5852       1.0000          .0000       10.000    
     3 'Normalizat'    1.2426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73705       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7530.936     FROM MIGRAD    STATUS=FAILED       181 CALLS      359 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18426        15.956        .19500E-02   -.19063E-01
   2  Index         3.6245        1.5341        .50000        .73976E-05
   3  Normalizat    1.2318        .15469E-01    .22815E-03    .59795E-05
   4  Prefactor     .74266        .15667E-01    .29072E-03    .23854E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7530.936     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      429 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18426        15.956        .22858E-03   -.19063E-01
   2  Index         3.6245        1.5341        .31074E-02    .73976E-05
   3  Normalizat    1.2318        .15469E-01    .89902E-04    .59795E-05
   4  Prefactor     .74266        .15667E-01    .48287E-04    .23854E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7530.936     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      460 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18426        2.3816        .39000E-03   -.76210E-03
   2  Index         3.6245        3.0822        .71382E-02    .12709E-05
   3  Normalizat    1.2318        .19232        .91261E-05    .59795E-05
   4  Prefactor     .74266        .18942        .11629E-04    .23463E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.184256
  Index      = 3.62454
  Normalizat = 1.23178
  Prefactor  = 0.742664
 **********
 **   18 **HESSE 
 **********

 FCN=   7530.936     FROM HESSE     STATUS=OK            27 CALLS      487 TOTAL
                     EDM=   .74E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18426        2.3409        .78000E-04   -1.5794    
   2  Index         3.6245        3.0513        .28553E-03   -.27869    
   3  Normalizat    1.2318        .19248        .18252E-05   -.85626    
   4  Prefactor     .74266        .18942        .23258E-05   -1.0188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42433e-13
Minuit parameter uncertainties:
  1  1.31322
  2  3.30576
  3  0.192593
  4  0.189584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257003': 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) = 7530.93644957
delta logL = 0.0194703159705

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.843e-01  1.313e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  3.625e+00  3.306e+00  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:  7.427e-01  1.896e-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.232e+00  1.926e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/257003/cmap_HighResolution_270950401_271209601_4FGL_J1200.7+2008_daily_bin122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2021-09-04 20:44:39.330731', job_id='257003', GAL2='0.74', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1630813479.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.95e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='122' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:44:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 257003: <4FGL_J1200.7+2008_daily_bin122> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin122> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:30:35 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:30:37 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:30:37 2021
Terminated at Sat Sep  4 20:44:40 2021
Results reported at Sat Sep  4 20:44:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin122 180.187 20.1354 270950401 271209601 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 :                                   831.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

