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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin290
RA = 180.187, Dec = 20.1354
tmin = 314496001, tmax = 314755201
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='257250', job_status='RUN', time_executed='2021-09-04 20:31:14.342690', time_epoch_executed='1630812674.34' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257250/ft1_4FGL_J1200.7+2008_daily_bin290.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257250/ft2_4FGL_J1200.7+2008_daily_bin290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257250/ft1_4FGL_J1200.7+2008_daily_bin290.fits outfile=/scratch/kocevski/257250/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin290.fits ra=180.187 dec=20.1354 rad=12.0 tmin=314496001.0 tmax=314755201.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.38
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257250/ft1_filtered_4FGL_J1200.7+2008_daily_bin290.fits" evtable="EVENTS" scfile=/scratch/kocevski/257250/ft2_4FGL_J1200.7+2008_daily_bin290.fits sctable="SC_DATA" outfile=/scratch/kocevski/257250/ltcube_314496001_314755201_4FGL_J1200.7+2008_daily_bin290.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/257250/ft2_4FGL_J1200.7+2008_daily_bin290.fits
.....................!
real 11.56
user 11.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257250/ft1_filtered_4FGL_J1200.7+2008_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/257250/ft2_4FGL_J1200.7+2008_daily_bin290.fits sctable="SC_DATA" expcube=/scratch/kocevski/257250/ltcube_314496001_314755201_4FGL_J1200.7+2008_daily_bin290.fits outfile=/scratch/kocevski/257250/expmap_314496001_314755201_4FGL_J1200.7+2008_daily_bin290.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/257250/ltcube_314496001_314755201_4FGL_J1200.7+2008_daily_bin290.fits
.....................!
real 190.91
user 186.57
sys 3.95

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/257250/ft1_filtered_4FGL_J1200.7+2008_daily_bin290.fits scfile=/scratch/kocevski/257250/ft2_4FGL_J1200.7+2008_daily_bin290.fits outfile=/scratch/kocevski/257250/cmap_314496001_314755201_4FGL_J1200.7+2008_daily_bin290.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257250/ft1_filtered_4FGL_J1200.7+2008_daily_bin290.fits scfile=/scratch/kocevski/257250/ft2_4FGL_J1200.7+2008_daily_bin290.fits outfile=/scratch/kocevski/257250/cmap_HighResolution_314496001_314755201_4FGL_J1200.7+2008_daily_bin290.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257250/ft1_filtered_4FGL_J1200.7+2008_daily_bin290.fits evtable="EVENTS" scfile=/scratch/kocevski/257250/ft2_4FGL_J1200.7+2008_daily_bin290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257250/Model_4FGL_J1200.7+2008_daily_bin290.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/257250/ft1_filtered_4FGL_J1200.7+2008_daily_bin290.fits.....................!
real 65.53
user 64.12
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10881E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2358       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9768       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.7776       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.622       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.488       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1522       1.0000         .10000E-03   10000.    
    21 'norm      '    2.7642       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.295       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.600       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0190       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0166       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=   7104.201     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3032 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.443       -.38801E-06** at limit **
   2  norm          5.2347        10.232       -.61019E-06   -.11844E-03
   3  Prefactor     20.895        13.090       -.42746E-06    .16067E-04
   4  Prefactor     .10000E-03    10.767        .25903E-06** at limit **
   5  Prefactor     .10000E-03    7.5912        .77022E-06** at limit **
   6  Prefactor     .10000E-03    20.180       -.26416E-06** at limit **
   7  Prefactor     .10000E-03    2.9606       -.59529E-07** at limit **
   8  Prefactor     3.9766        1.9498        .89139E-08   -.10151E-04
   9  Prefactor     .10000E-03    4.2128        .10058E-06** at limit **
  10  norm          9.7775        1.8016       -.41691E-08    .78080E-04
  11  Prefactor     .10000E-03    7.9375       -.55352E-06** at limit **
  12  Prefactor     6.1413        4.4387       -.20117E-06   -.31051E-03
  13  Prefactor     45.607        75.903       -.20680E-04    .46027E-05
  14  Prefactor     .10000E-03    1.7075        .31675E-07** at limit **
  15  Prefactor     .10000E-03    1.7065        .55102E-07** at limit **
  16  norm          10.488        3.5792       -.11908E-07   -.52158E-05
  17  Prefactor     .10000E-03    .84528       -.15986E-07** at limit **
  18  Prefactor     3.8115        2.2419       -.93812E-07   -.21545E-03
  19  Prefactor     .10000E-03    2.0968       -.38112E-08** at limit **
  20  norm          3.1521        .44737       -.29929E-07    .24564E-03
  21  norm          2.7646        3.3786       -.17885E-06   -.36452E-03
  22  Prefactor     .10000E-03    3.5369        .10088E-07** at limit **
  23  Prefactor     15.295        9.5472       -.61036E-07   -.18791E-05
  24  Prefactor     14.601        21.711        .66315E-06   -.70056E-05
  25  Normalizat    1.0191        .19136        .14961E-05   -.52139E-04
  26  Prefactor     1.0165        .18633        .13755E-06    .38553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.23468
  Prefactor  = 20.8954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.97664
  Prefactor  = 0.0001
  norm       = 9.77746
  Prefactor  = 0.0001
  Prefactor  = 6.14135
  Prefactor  = 45.6068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4879
  Prefactor  = 0.0001
  Prefactor  = 3.81145
  Prefactor  = 0.0001
  norm       = 3.15214
  norm       = 2.76457
  Prefactor  = 0.0001
  Prefactor  = 15.295
  Prefactor  = 14.6005
  Normalizat = 1.01908
  Prefactor  = 1.01649
 **********
 **   18 **HESSE 
 **********

 FCN=   7104.201     FROM HESSE     STATUS=OK           456 CALLS     3488 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2347        10.283        .17567E-03   -1.5250    
   3  Prefactor     20.895        13.149        .87619E-04   -1.4793    
   4  Prefactor     .10000E-03    10.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9643        .14162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9766        1.9501        .79043E-04   -1.5309    
   9  Prefactor     .10000E-03    4.2294        .16899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.7775        1.8038        .46752E-04   -1.5082    
  11  Prefactor     .10000E-03    7.9308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1413        4.4477        .14309E-03   -1.5212    
  13  Prefactor     45.607        75.794        .59360E-04   -1.4356    
  14  Prefactor     .10000E-03    1.7574        .21475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7508        .21484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.488        3.5724        .89104E-04   -1.5060    
  17  Prefactor     .10000E-03    .84832        .75515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8115        2.2400        .91922E-04   -1.5317    
  19  Prefactor     .10000E-03    2.1022        .11915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1521        .44948        .20017E-04   -1.5353    
  21  norm          2.7646        3.3741        .16605E-03   -1.5375    
  22  Prefactor     .10000E-03    3.5394        .15478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.295        9.5449        .10241E-03   -1.4926    
  24  Prefactor     14.601        21.710        .10482E-03   -1.4944    
  25  Normalizat    1.0191        .22801        .28666E-03   -.92394    
  26  Prefactor     1.0165        .22093        .29689E-03   -.92182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96462e-10
Minuit parameter uncertainties:
  1  5.34308e-06
  2  10.2867
  3  13.151
  4  3.57587e-06
  5  9.11179e-06
  6  4.02496e-05
  7  1.16028e-06
  8  1.95013
  9  3.12383e-05
  10  1.80377
  11  8.22881e-05
  12  4.44793
  13  75.9546
  14  5.53907e-07
  15  7.78856e-08
  16  3.57244
  17  2.6688e-07
  18  2.24003
  19  2.4119e-07
  20  0.449483
  21  3.37432
  22  2.1222e-06
  23  9.54587
  24  21.7216
  25  0.228227
  26  0.221123
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  6.141e+00  4.448e+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.016e+00  2.211e-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.019e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.23e-05

TS (Fixed Index): 2.77
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257250/likelihoodResults_314496001_314755201_4FGL_J1200.7+2008_daily_bin290.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): 0
logL (Free Index) = 7104.20016222
delta logL = 0.000621113223133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7104.19969827
delta logL = 0.00108506057768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9792       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5544       1.0000          .0000       10.000    
     3 'Normalizat'    1.0173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0179       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=   7104.200     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      246 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9785        6.0264        .14059E-03    .13201E-02
   2  Index         2.5547        .79512        .84792E-02    .20740E-03
   3  Normalizat    1.0174        .21592        .28687E-03   -.28514E-03
   4  Prefactor     1.0178        .22141        .29672E-03   -.39348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97849
  Index      = 2.55466
  Normalizat = 1.01737
  Prefactor  = 1.01784
 **********
 **   18 **HESSE 
 **********

 FCN=   7104.200     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9785        5.6134        .56238E-05   -1.5219    
   2  Index         2.5547        .74047        .33917E-03   -.51102    
   3  Normalizat    1.0174        .21576        .11475E-04   -.92451    
   4  Prefactor     1.0178        .22122        .59345E-04   -.92137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03358e-09
Minuit parameter uncertainties:
  1  5.61387
  2  0.744076
  3  0.215943
  4  0.221418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257250': 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) = 7104.19969814
delta logL = 0.00108519594596

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  5.978e+00  5.614e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.555e+00  7.441e-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.018e+00  2.214e-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.017e+00  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.55 +/- 0.74
Photon Flux (Free Index): 6.10e-08 +/- 4.99e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.34e-05

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/257250/cmap_HighResolution_314496001_314755201_4FGL_J1200.7+2008_daily_bin290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='1.67e-05', photon_flux_error='4.33e-08', dlogl='1.09e-03', energy_flux='1.70e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-04 20:45:18.153168', photon_index_error2='0.74', photon_index2='2.55', ts='2.77', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.34e-05', EG='1.02', time_epoch_completed='1630813518.15', return_code='0', job_id='257250', GAL2='1.02', EG2='1.02', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.99e-08', ts2='2.74', photon_index='2.52' WHERE bin_id='290' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:45:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 257250: <4FGL_J1200.7+2008_daily_bin290> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin290> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:30:56 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:30:57 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:57 2021
Terminated at Sat Sep  4 20:45:18 2021
Results reported at Sat Sep  4 20:45:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin290 180.187 20.1354 314496001 314755201 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 :                                   840.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            862 sec.

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

