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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1450
RA = 180.187, Dec = 20.1354
tmin = 615168001, tmax = 615427201
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='263932', job_status='RUN', time_executed='2021-09-04 20:50:55.254270', time_epoch_executed='1630813855.25' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263932/ft1_4FGL_J1200.7+2008_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263932/ft2_4FGL_J1200.7+2008_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263932/ft1_4FGL_J1200.7+2008_daily_bin1450.fits outfile=/scratch/kocevski/263932/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1450.fits ra=180.187 dec=20.1354 rad=12.0 tmin=615168001.0 tmax=615427201.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 4.04
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263932/ft1_filtered_4FGL_J1200.7+2008_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/263932/ft2_4FGL_J1200.7+2008_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/263932/ltcube_615168001_615427201_4FGL_J1200.7+2008_daily_bin1450.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/263932/ft2_4FGL_J1200.7+2008_daily_bin1450.fits
.....................!
real 12.93
user 12.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263932/ft1_filtered_4FGL_J1200.7+2008_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/263932/ft2_4FGL_J1200.7+2008_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/263932/ltcube_615168001_615427201_4FGL_J1200.7+2008_daily_bin1450.fits outfile=/scratch/kocevski/263932/expmap_615168001_615427201_4FGL_J1200.7+2008_daily_bin1450.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/263932/ltcube_615168001_615427201_4FGL_J1200.7+2008_daily_bin1450.fits
.....................!
real 193.28
user 188.11
sys 4.30

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/263932/ft1_filtered_4FGL_J1200.7+2008_daily_bin1450.fits scfile=/scratch/kocevski/263932/ft2_4FGL_J1200.7+2008_daily_bin1450.fits outfile=/scratch/kocevski/263932/cmap_615168001_615427201_4FGL_J1200.7+2008_daily_bin1450.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263932/ft1_filtered_4FGL_J1200.7+2008_daily_bin1450.fits scfile=/scratch/kocevski/263932/ft2_4FGL_J1200.7+2008_daily_bin1450.fits outfile=/scratch/kocevski/263932/cmap_HighResolution_615168001_615427201_4FGL_J1200.7+2008_daily_bin1450.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263932/ft1_filtered_4FGL_J1200.7+2008_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/263932/ft2_4FGL_J1200.7+2008_daily_bin1450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263932/Model_4FGL_J1200.7+2008_daily_bin1450.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/263932/ft1_filtered_4FGL_J1200.7+2008_daily_bin1450.fits.....................!
real 52.52
user 51.21
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8487       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7388       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.853       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1036       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6319       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6027       1.0000         .10000E-03   10000.    
    10 'norm      '    .13644       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15384E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4377       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.5770       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2282       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .26792       1.0000         .10000E-03   10000.    
    21 'norm      '    8.8017       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .40973E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.099       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90700       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=   5514.950     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3080 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8488        6.4977        .21125E-06   -.11618E-03
   2  norm          8.7459        9.8145       -.66053E-06   -.51522E-03
   3  Prefactor     11.853        11.954        .14203E-06    .23176E-04
   4  Prefactor     .10000E-03    19.078       -.11820E-04** at limit **
   5  Prefactor     7.0920        15.511        .39254E-05   -.60441E-04
   6  Prefactor     .10000E-03    22.310        .11315E-04** at limit **
   7  Prefactor     6.6332        7.4112       -.11350E-05    .21287E-03
   8  Prefactor     3.8017        2.2505        .65646E-07    .11199E-03
   9  Prefactor     4.6012        11.330       -.21255E-06   -.96324E-04
  10  norm          .13643        .44326       -.35101E-06   -.23102E-02
  11  Prefactor     .10000E-03    8.3380        .53486E-07** at limit **
  12  Prefactor     .60260        3.4036       -.23774E-05    .97593E-03
  13  Prefactor     .10000E-03    73.025       -.61357E-05** at limit **
  14  Prefactor     4.4373        3.5205        .72708E-06    .78301E-03
  15  Prefactor     .10000E-03    2.6337        .68322E-07** at limit **
  16  norm          7.5774        3.1968       -.55265E-06    .80979E-04
  17  Prefactor     4.2290        2.5220        .29233E-06   -.37881E-04
  18  Prefactor     1.1336        1.1579       -.25350E-07    .94290E-04
  19  Prefactor     .10000E-03    3.6736       -.46193E-06** at limit **
  20  norm          .26794        .19947       -.40942E-07    .49510E-03
  21  norm          8.8018        4.9633        .27724E-05    .63340E-04
  22  Prefactor     .10000E-03    18.702        .15302E-04** at limit **
  23  Prefactor     .10000E-03    4.3784        .67767E-07** at limit **
  24  Prefactor     30.094        27.064       -.33042E-05   -.21082E-03
  25  Normalizat    1.0033        .18998       -.57192E-06    .27439E-03
  26  Prefactor     .90678        .18104        .38802E-06    .88831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.8488
  norm       = 8.74591
  Prefactor  = 11.8526
  Prefactor  = 0.0001
  Prefactor  = 7.09204
  Prefactor  = 0.0001
  Prefactor  = 6.63315
  Prefactor  = 3.80172
  Prefactor  = 4.60124
  norm       = 0.136428
  Prefactor  = 0.0001
  Prefactor  = 0.6026
  Prefactor  = 0.0001
  Prefactor  = 4.43725
  Prefactor  = 0.0001
  norm       = 7.57744
  Prefactor  = 4.22903
  Prefactor  = 1.13356
  Prefactor  = 0.0001
  norm       = 0.267942
  norm       = 8.80176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0944
  Normalizat = 1.00329
  Prefactor  = 0.90678
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.950     FROM HESSE     STATUS=OK           462 CALLS     3542 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8488        6.4891        .16606E-03   -1.5224    
   2  norm          8.7459        9.8702        .67797E-03   -1.5116    
   3  Prefactor     11.853        11.954        .11636E-03   -1.5019    
   4  Prefactor     .10000E-03    19.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0920        15.521        .15051E-03   -1.5175    
   6  Prefactor     .10000E-03    22.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6332        7.3969        .15582E-03   -1.5193    
   8  Prefactor     3.8017        2.2433        .81188E-04   -1.5318    
   9  Prefactor     4.6012        11.321        .18762E-03   -1.5279    
  10  norm          .13643        .44783        .87340E-04   -1.5634    
  11  Prefactor     .10000E-03    8.3558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .60260        10.870        .22938E-02   -1.5553    
  13  Prefactor     .10000E-03    73.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4373        3.4709        .10975E-03   -1.5287    
  15  Prefactor     .10000E-03    2.6959        .23447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5774        3.2030        .80589E-04   -1.5157    
  17  Prefactor     4.2290        2.5283        .85243E-04   -1.5297    
  18  Prefactor     1.1336        1.1581        .43817E-04   -1.5495    
  19  Prefactor     .10000E-03    3.7160        .13898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .26794        .20231        .27205E-04   -1.5604    
  21  norm          8.8018        4.9519        .11889E-03   -1.5115    
  22  Prefactor     .10000E-03    19.251        .42505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.3968        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     30.094        27.226        .73030E-04   -1.4610    
  25  Normalizat    1.0033        .21725        .24639E-03   -.92920    
  26  Prefactor     .90678        .20715        .26223E-03   -.95905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3372e-09
Minuit parameter uncertainties:
  1  6.48986
  2  9.872
  3  11.9559
  4  1.32499e-05
  5  15.5301
  6  4.77951e-05
  7  7.39797
  8  2.24334
  9  11.3264
  10  0.447843
  11  5.58702e-06
  12  5.11923
  13  3.16848e-05
  14  3.47101
  15  1.45682e-07
  16  3.20307
  17  2.52836
  18  1.15809
  19  5.5974e-05
  20  0.202312
  21  4.95213
  22  0.000158217
  23  7.52984e-06
  24  27.2373
  25  0.217445
  26  0.207325
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  6.026e-01  5.119e+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:  9.068e-01  2.073e-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.003e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/263932/likelihoodResults_615168001_615427201_4FGL_J1200.7+2008_daily_bin1450.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) = 5513.62978278
delta logL = 1.32000486116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5513.59278547
delta logL = 1.35700217759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29690E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0830       1.0000          .0000       10.000    
     3 'Normalizat'    .89839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97460       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=   5513.593     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      303 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29668E-01    .31050        .19118E-02    .85448E-02
   2  Index         6.0839        2.8304        .12387        .19602E-03
   3  Normalizat    .89841        .47957E-01    .44881E-01    .64948E-04
   4  Prefactor     .97455        .49095E-01    .45949E-01    .32133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0296675
  Index      = 6.0839
  Normalizat = 0.898414
  Prefactor  = 0.974547
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.593     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29668E-01    .70794        .86041E-05   -1.5674    
   2  Index         6.0839        7.4693        .47749E-02    .21851    
   3  Normalizat    .89841        .18196        .25810E-03   -.96516    
   4  Prefactor     .97455        .18216        .25391E-03   -.93583    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17162e-10
Minuit parameter uncertainties:
  1  0.289362
  2  5.36345
  3  0.182085
  4  0.182278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263932': 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): 102
logL (Free Index) = 5513.59278459
delta logL = 1.35700305816

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  2.967e-02  2.894e-01  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  6.084e+00  5.363e+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:  9.745e-01  1.823e-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.984e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 180.187 20.135
Photon Index (Free Index): 6.08 +/- 5.36
Photon Flux (Free Index): 1.02e-07 +/- 7.10e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.01e-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/263932/cmap_HighResolution_615168001_615427201_4FGL_J1200.7+2008_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='1.36e+00', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-04 21:03:02.457517', photon_index_error2='5.36', photon_index2='6.08', ts='0.02', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.01e-05', EG='1.00', time_epoch_completed='1630814582.46', return_code='0', job_id='263932', GAL2='0.97', EG2='0.90', return_code2='102', photon_flux_error2='7.10e-08', ts2='2.94', photon_index='2.52' WHERE bin_id='1450' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:03:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 263932: <4FGL_J1200.7+2008_daily_bin1450> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1450> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:37 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 20:50:40 2021
Terminated at Sat Sep  4 21:03:03 2021
Results reported at Sat Sep  4 21:03:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1450 180.187 20.1354 615168001 615427201 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            746 sec.

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

