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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin172
RA = 180.187, Dec = 20.1354
tmin = 283910401, tmax = 284169601
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='257082', job_status='RUN', time_executed='2021-09-04 20:30:58.305465', time_epoch_executed='1630812658.31' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257082/ft1_4FGL_J1200.7+2008_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257082/ft2_4FGL_J1200.7+2008_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257082/ft1_4FGL_J1200.7+2008_daily_bin172.fits outfile=/scratch/kocevski/257082/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin172.fits ra=180.187 dec=20.1354 rad=12.0 tmin=283910401.0 tmax=284169601.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.55
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/257082/ft2_4FGL_J1200.7+2008_daily_bin172.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/257082/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/257082/ft1_filtered_4FGL_J1200.7+2008_daily_bin172.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257082/ft1_filtered_4FGL_J1200.7+2008_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/257082/ft2_4FGL_J1200.7+2008_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/257082/ltcube_283910401_284169601_4FGL_J1200.7+2008_daily_bin172.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/257082/ft2_4FGL_J1200.7+2008_daily_bin172.fits
.....................!
real 11.75
user 11.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257082/ft1_filtered_4FGL_J1200.7+2008_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/257082/ft2_4FGL_J1200.7+2008_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/257082/ltcube_283910401_284169601_4FGL_J1200.7+2008_daily_bin172.fits outfile=/scratch/kocevski/257082/expmap_283910401_284169601_4FGL_J1200.7+2008_daily_bin172.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/257082/ltcube_283910401_284169601_4FGL_J1200.7+2008_daily_bin172.fits
.....................!
real 190.93
user 185.51
sys 5.04

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/257082/ft1_filtered_4FGL_J1200.7+2008_daily_bin172.fits scfile=/scratch/kocevski/257082/ft2_4FGL_J1200.7+2008_daily_bin172.fits outfile=/scratch/kocevski/257082/cmap_283910401_284169601_4FGL_J1200.7+2008_daily_bin172.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257082/ft1_filtered_4FGL_J1200.7+2008_daily_bin172.fits scfile=/scratch/kocevski/257082/ft2_4FGL_J1200.7+2008_daily_bin172.fits outfile=/scratch/kocevski/257082/cmap_HighResolution_283910401_284169601_4FGL_J1200.7+2008_daily_bin172.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/257082/ft1_filtered_4FGL_J1200.7+2008_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/257082/ft2_4FGL_J1200.7+2008_daily_bin172.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257082/Model_4FGL_J1200.7+2008_daily_bin172.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/257082/ft1_filtered_4FGL_J1200.7+2008_daily_bin172.fits.....................!
real 67.68
user 66.31
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.964       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8348       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85661E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12169E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7504       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4921       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.857       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9688       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7040       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5325       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7873       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1189       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5614       1.0000         .10000E-03   10000.    
    21 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1100       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.831       1.0000         .10000E-03   10000.    
    24 'Prefactor '    59.732       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89406       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0399       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=   7391.511     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3130 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.962        7.7592        .47135E-07   -.27435E-05
   2  norm          6.8403        12.007        .10455E-05    .61253E-04
   3  Prefactor     .10000E-03    10.894        .31230E-07** at limit **
   4  Prefactor     .10001E-03    27.367        .39979E-06** at limit **
   5  Prefactor     .10000E-03    44.198        .39671E-06** at limit **
   6  Prefactor     .10000E-03    17.941        .64002E-07** at limit **
   7  Prefactor     9.7498        9.1020        .57032E-07   -.47681E-05
   8  Prefactor     .10000E-03    .66251        .17832E-07** at limit **
   9  Prefactor     .10000E-03    5.3181       -.19804E-06** at limit **
  10  norm          4.4930        1.7358        .21712E-07   -.57942E-04
  11  Prefactor     .10000E-03    4.3589       -.69986E-07** at limit **
  12  Prefactor     2.9027        3.1637        .16444E-07   -.26063E-04
  13  Prefactor     47.832        64.320       -.32219E-05   -.65416E-04
  14  Prefactor     1.9710        2.6860        .22701E-06   -.86727E-04
  15  Prefactor     .10000E-03    2.0361       -.32605E-07** at limit **
  16  norm          3.7042        2.6167       -.55209E-09   -.59711E-06
  17  Prefactor     1.5326        1.6290       -.13943E-07    .88227E-05
  18  Prefactor     2.7877        2.3132        .36068E-07   -.30662E-04
  19  Prefactor     7.1198        5.9696       -.12368E-06   -.43901E-04
  20  norm          5.5617        .58177        .37611E-08   -.10992E-03
  21  norm          .10000E-03    3.7663       -.20532E-07** at limit **
  22  Prefactor     1.1163        23.059        .42480E-05   -.80523E-04
  23  Prefactor     15.833        12.182        .21750E-06    .33058E-04
  24  Prefactor     59.754        37.747       -.16940E-05   -.58118E-04
  25  Normalizat    .89393        .19683       -.58576E-06   -.30512E-04
  26  Prefactor     1.0398        .18795        .22243E-06   -.85749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9617
  norm       = 6.84033
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.74978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49301
  Prefactor  = 0.0001
  Prefactor  = 2.90275
  Prefactor  = 47.8324
  Prefactor  = 1.97098
  Prefactor  = 0.0001
  norm       = 3.70425
  Prefactor  = 1.53259
  Prefactor  = 2.78772
  Prefactor  = 7.11984
  norm       = 5.56165
  norm       = 0.0001
  Prefactor  = 1.11628
  Prefactor  = 15.8331
  Prefactor  = 59.7536
  Normalizat = 0.893935
  Prefactor  = 1.03977
 **********
 **   18 **HESSE 
 **********

 FCN=   7391.511     FROM HESSE     STATUS=OK           464 CALLS     3594 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.962        7.7726        .12099E-03   -1.5046    
   2  norm          6.8403        12.080        .15347E-03   -1.5185    
   3  Prefactor     .10000E-03    11.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    234.45        .85767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7498        9.1034        .12833E-03   -1.5083    
   8  Prefactor     .10000E-03    .66876        .68292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4930        1.7371        .66526E-04   -1.5284    
  11  Prefactor     .10000E-03    4.3613        .17526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9027        3.1536        .15270E-03   -1.5367    
  13  Prefactor     47.832        65.913        .57964E-04   -1.4324    
  14  Prefactor     1.9710        2.6583        .15571E-03   -1.5427    
  15  Prefactor     .10000E-03    2.0884        .23886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7042        2.6164        .11119E-03   -1.5323    
  17  Prefactor     1.5326        1.6325        .10832E-03   -1.5460    
  18  Prefactor     2.7877        2.3035        .11274E-03   -1.5374    
  19  Prefactor     7.1198        5.9660        .15035E-03   -1.5174    
  20  norm          5.5617        .58315        .19941E-04   -1.5236    
  21  norm          .10000E-03    3.8546        .32530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1163        25.212        .44843E-03   -1.5497    
  23  Prefactor     15.833        12.180        .10066E-03   -1.4912    
  24  Prefactor     59.754        37.911        .51913E-04   -1.4160    
  25  Normalizat    .89393        .23422        .31436E-03   -.96674    
  26  Prefactor     1.0398        .22427        .29322E-03   -.91415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47309e-10
Minuit parameter uncertainties:
  1  7.77332
  2  12.084
  3  3.53575e-06
  4  0.00290796
  5  2.66645e-05
  6  7.14492e-06
  7  9.10473
  8  1.36618e-07
  9  2.02901e-05
  10  1.73711
  11  6.84061e-06
  12  3.1538
  13  66.0132
  14  2.65844
  15  4.42287e-08
  16  2.61645
  17  1.63256
  18  2.30359
  19  5.96651
  20  0.583149
  21  3.31655e-06
  22  10.6148
  23  12.1816
  24  37.9267
  25  0.234487
  26  0.224469
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.903e+00  3.154e+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.040e+00  2.245e-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:  8.939e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 8.03e-06 +/- 8.72e-06

TS (Fixed Index): 2.00
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/257082/likelihoodResults_283910401_284169601_4FGL_J1200.7+2008_daily_bin172.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) = 7391.3301816
delta logL = 0.181241647905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7391.32421498
delta logL = 0.187208266235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4100       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9659       1.0000          .0000       10.000    
     3 'Normalizat'    .90751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0300       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=   7391.324     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4102        3.1579        .11837E-05   -.18847E-02
   2  Index         1.9661        .61049       -.85358E-05   -.24034E-03
   3  Normalizat    .90749        .18559        .32223E-06    .10993E-03
   4  Prefactor     1.0301        .18589       -.31368E-06    .10210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.41022
  Index      = 1.9661
  Normalizat = 0.907492
  Prefactor  = 1.03007
 **********
 **   18 **HESSE 
 **********

 FCN=   7391.324     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4102        3.7039        .16646E-03   -1.5339    
   2  Index         1.9661        .81211        .13175E-01   -.65200    
   3  Normalizat    .90749        .22125        .31230E-03   -.96197    
   4  Prefactor     1.0301        .22188        .29443E-03   -.91734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45627e-09
Minuit parameter uncertainties:
  1  3.70415
  2  0.817865
  3  0.221468
  4  0.222077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257082': 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) = 7391.3242149
delta logL = 0.187208346711

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.410e+00  3.704e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.966e+00  8.179e-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.030e+00  2.221e-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:  9.075e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.97 +/- 0.82
Photon Flux (Free Index): 1.74e-08 +/- 2.44e-08
Energy Flux (Free Index): 1.31e-05 +/- 2.11e-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/257082/cmap_HighResolution_283910401_284169601_4FGL_J1200.7+2008_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='1.31e-05', photon_flux_error='3.07e-08', dlogl='1.87e-01', energy_flux='8.03e-06', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-04 20:45:12.894778', photon_index_error2='0.82', photon_index2='1.97', ts='2.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.11e-05', EG='0.89', time_epoch_completed='1630813512.89', return_code='0', job_id='257082', GAL2='1.03', EG2='0.91', return_code2='0', energy_flux_error='8.72e-06', photon_flux_error2='2.44e-08', ts2='2.38', photon_index='2.52' WHERE bin_id='172' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 257082: <4FGL_J1200.7+2008_daily_bin172> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin172 180.187 20.1354 283910401 284169601 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 :                                   850.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

