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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin2
RA = 180.187, Dec = 20.1354
tmin = 239846401, tmax = 240105601
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='255818', job_status='RUN', time_executed='2021-09-04 20:27:02.403526', time_epoch_executed='1630812422.4' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255818/ft1_4FGL_J1200.7+2008_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255818/ft2_4FGL_J1200.7+2008_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255818/ft1_4FGL_J1200.7+2008_daily_bin2.fits outfile=/scratch/kocevski/255818/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin2.fits ra=180.187 dec=20.1354 rad=12.0 tmin=239846401.0 tmax=240105601.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.45
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255818/ft1_filtered_4FGL_J1200.7+2008_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/255818/ft2_4FGL_J1200.7+2008_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/255818/ltcube_239846401_240105601_4FGL_J1200.7+2008_daily_bin2.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/255818/ft2_4FGL_J1200.7+2008_daily_bin2.fits
.....................!
real 12.31
user 11.90
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255818/ft1_filtered_4FGL_J1200.7+2008_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/255818/ft2_4FGL_J1200.7+2008_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/255818/ltcube_239846401_240105601_4FGL_J1200.7+2008_daily_bin2.fits outfile=/scratch/kocevski/255818/expmap_239846401_240105601_4FGL_J1200.7+2008_daily_bin2.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/255818/ltcube_239846401_240105601_4FGL_J1200.7+2008_daily_bin2.fits
.....................!
real 191.21
user 185.01
sys 5.27

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/255818/ft1_filtered_4FGL_J1200.7+2008_daily_bin2.fits scfile=/scratch/kocevski/255818/ft2_4FGL_J1200.7+2008_daily_bin2.fits outfile=/scratch/kocevski/255818/cmap_239846401_240105601_4FGL_J1200.7+2008_daily_bin2.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.58
user 0.39
sys 0.18

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255818/ft1_filtered_4FGL_J1200.7+2008_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/255818/ft2_4FGL_J1200.7+2008_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255818/Model_4FGL_J1200.7+2008_daily_bin2.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/255818/ft1_filtered_4FGL_J1200.7+2008_daily_bin2.fits.....................!
real 54.80
user 53.04
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .41047       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13152E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8875       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.718       1.0000         .10000E-03   10000.    
    10 'norm      '    .17897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.468       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2425       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.472       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .85872E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    8.5438       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .59049       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19028E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77247       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5588.519     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2623 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3363        .62048E-05** at limit **
   2  norm          .43674        24.004        .37753E-04   -.23768E-03
   3  Prefactor     .10000E-03    5.7732        .18568E-05** at limit **
   4  Prefactor     .10000E-03    15.163       -.44900E-05** at limit **
   5  Prefactor     .10004E-03    56.077        .27533E-04** at limit **
   6  Prefactor     2.8896        1.4611        .28506E-05    .35462E-03
   7  Prefactor     .10000E-03    3.3532       -.49960E-05** at limit **
   8  Prefactor     .10000E-03    .37822       -.11210E-06** at limit **
   9  Prefactor     26.720        1.8060       -.14214E-05   -.78230E-03
  10  norm          .17924        1.1673       -.65782E-06   -.70723E-04
  11  Prefactor     23.479        1.6857       -.85857E-06    .38456E-03
  12  Prefactor     4.2436        1.9860       -.13553E-05   -.96169E-03
  13  Prefactor     .10105E-03    32.784       -.17923E-04** at limit **
  14  Prefactor     .46136        2.8098        .95134E-06    .14143E-03
  15  Prefactor     .10000E-03    2.0782       -.51001E-06** at limit **
  16  norm          .10000E-03    1.9507        .71626E-06** at limit **
  17  Prefactor     1.6821        1.9164       -.66452E-06    .49650E-05
  18  Prefactor     17.471        1.1101        .71570E-07    .33247E-02
  19  Prefactor     .10000E-03    2.6802        .94417E-06** at limit **
  20  norm          .85897E-01    .13490        .58120E-07    .56643E-03
  21  norm          8.5445        2.2775       -.25766E-05   -.95849E-02
  22  Prefactor     .10000E-03    3.9585       -.21118E-05** at limit **
  23  Prefactor     .62094        31.455        .45087E-04   -.19349E-03
  24  Prefactor     .10075E-03    77.358       -.50138E-04** at limit **
  25  Normalizat    1.3256        .21321        .90867E-07    .24587E-03
  26  Prefactor     .77229        .21369        .86682E-06    .22161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.436737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 2.88957
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 26.7197
  norm       = 0.179239
  Prefactor  = 23.4788
  Prefactor  = 4.24356
  Prefactor  = 0.000101048
  Prefactor  = 0.461363
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.68213
  Prefactor  = 17.4713
  Prefactor  = 0.0001
  norm       = 0.0858965
  norm       = 8.54448
  Prefactor  = 0.0001
  Prefactor  = 0.620944
  Prefactor  = 0.000100755
  Normalizat = 1.32564
  Prefactor  = 0.772289
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.519     FROM HESSE     STATUS=OK           528 CALLS     3151 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .43674        8.9905        .79057E-01   -1.5576    
   3  Prefactor     .10000E-03    5.7528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.141        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    55.528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8896        11.368        .59790E-02   -1.5368    
   7  Prefactor     .10000E-03    3.5215        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .37716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.720        14.155        .19376E-02   -1.4674    
  10  norm          .17924        1.1506        .98812E-02   -1.5623    
  11  Prefactor     23.479        20.780        .20671E-02   -1.4738    
  12  Prefactor     4.2436        4.0135        .48906E-02   -1.5296    
  13  Prefactor     .10105E-03    100.79        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .46136        2.1872        .35310E-01   -1.5572    
  15  Prefactor     .10000E-03    2.0330        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6821        1.9635        .81180E-02   -1.5449    
  18  Prefactor     17.471        4.2100        .23955E-02   -1.4872    
  19  Prefactor     .10000E-03    2.6699        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .85897E-01    .16078        .75674E-02   -1.5649    
  21  norm          8.5445        5.5228        .34285E-02   -1.5123    
  22  Prefactor     .10000E-03    3.9502        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .62094        8.4624        .11635       -1.5550    
  24  Prefactor     .10075E-03    107.24        .91178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3256        .19126        .51708E-01   -.82804    
  26  Prefactor     .77229        .18381        .66573E-01   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77143e-08
Minuit parameter uncertainties:
  1  0.000101151
  2  3.96329
  3  2.43741e-05
  4  0.000122064
  5  0.00307244
  6  11.376
  7  0.000116604
  8  1.93259e-07
  9  14.1571
  10  0.908026
  11  20.7859
  12  4.01371
  13  0.0205854
  14  2.00896
  15  1.02328e-05
  16  4.5334e-06
  17  1.96355
  18  4.21005
  19  3.8418e-06
  20  0.160776
  21  5.52309
  22  7.58189e-06
  23  4.58502
  24  0.018027
  25  0.191358
  26  0.183952
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.244e+00  4.014e+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:  7.723e-01  1.840e-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.326e+00  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 180.187 20.135
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/255818/likelihoodResults_239846401_240105601_4FGL_J1200.7+2008_daily_bin2.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) = 5588.47518635
delta logL = 0.043806188095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5588.47311139
delta logL = 0.0458811447033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5074       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7553       1.0000          .0000       10.000    
     3 'Normalizat'    1.3183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77739       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=   5588.473     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      241 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5082        89.114        .53969E-02    .41886E-03
   2  Index         2.7555        6.3412        .15878        .98552E-04
   3  Normalizat    1.3182        .72260E-01    .51830E-01   -.60883E-05
   4  Prefactor     .77745        .71144E-01    .66375E-01    .50857E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50824
  Index      = 2.7555
  Normalizat = 1.31816
  Prefactor  = 0.777449
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.473     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5082        4.5725        .11878E-03   -1.5333    
   2  Index         2.7555        .87130        .80077E-02   -.46553    
   3  Normalizat    1.3182        .21311        .22915E-03   -.83026    
   4  Prefactor     .77745        .21425        .29365E-03   -1.0056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19389e-11
Minuit parameter uncertainties:
  1  4.57294
  2  0.876917
  3  0.213255
  4  0.214482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255818': 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) = 5588.47311117
delta logL = 0.0458813602972

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.508e+00  4.573e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.755e+00  8.769e-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:  7.774e-01  2.145e-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.318e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 180.187 20.135
Photon Index (Free Index): 2.76 +/- 0.88
Photon Flux (Free Index): 4.72e-08 +/- 4.41e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.04e-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/255818/cmap_HighResolution_239846401_240105601_4FGL_J1200.7+2008_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.83e-03', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='1.09e-05', photon_flux_error='3.91e-08', dlogl='4.59e-02', energy_flux='1.17e-05', photon_flux2='4.72e-08', job_status='DONE', time_completed='2021-09-04 20:38:36.740711', photon_index_error2='0.88', photon_index2='2.76', ts='1.78', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.04e-05', EG='1.33', time_epoch_completed='1630813116.74', return_code='0', job_id='255818', GAL2='0.78', EG2='1.32', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.41e-08', ts2='1.86', photon_index='2.52' WHERE bin_id='2' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:38:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 255818: <4FGL_J1200.7+2008_daily_bin2> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin2> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:26:03 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:26:05 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:26:05 2021
Terminated at Sat Sep  4 20:38:37 2021
Results reported at Sat Sep  4 20:38:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin2 180.187 20.1354 239846401 240105601 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 :                                   692.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            754 sec.

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

