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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1506
RA = 180.187, Dec = 20.1354
tmin = 629683201, tmax = 629942401
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='264052', job_status='RUN', time_executed='2021-09-04 20:52:53.717993', time_epoch_executed='1630813973.72' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264052

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264052/ft1_4FGL_J1200.7+2008_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264052/ft2_4FGL_J1200.7+2008_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264052/ft1_4FGL_J1200.7+2008_daily_bin1506.fits outfile=/scratch/kocevski/264052/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1506.fits ra=180.187 dec=20.1354 rad=12.0 tmin=629683201.0 tmax=629942401.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.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264052/ft2_4FGL_J1200.7+2008_daily_bin1506.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/264052/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1506.fits evtable="EVENTS" outfile="/scratch/kocevski/264052/ft1_filtered_4FGL_J1200.7+2008_daily_bin1506.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264052/ft1_filtered_4FGL_J1200.7+2008_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/264052/ft2_4FGL_J1200.7+2008_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/264052/ltcube_629683201_629942401_4FGL_J1200.7+2008_daily_bin1506.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/264052/ft2_4FGL_J1200.7+2008_daily_bin1506.fits
.....................!
real 12.26
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264052/ft1_filtered_4FGL_J1200.7+2008_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/264052/ft2_4FGL_J1200.7+2008_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/264052/ltcube_629683201_629942401_4FGL_J1200.7+2008_daily_bin1506.fits outfile=/scratch/kocevski/264052/expmap_629683201_629942401_4FGL_J1200.7+2008_daily_bin1506.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/264052/ltcube_629683201_629942401_4FGL_J1200.7+2008_daily_bin1506.fits
.....................!
real 193.99
user 188.00
sys 5.41

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/264052/ft1_filtered_4FGL_J1200.7+2008_daily_bin1506.fits scfile=/scratch/kocevski/264052/ft2_4FGL_J1200.7+2008_daily_bin1506.fits outfile=/scratch/kocevski/264052/cmap_629683201_629942401_4FGL_J1200.7+2008_daily_bin1506.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/264052/ft1_filtered_4FGL_J1200.7+2008_daily_bin1506.fits scfile=/scratch/kocevski/264052/ft2_4FGL_J1200.7+2008_daily_bin1506.fits outfile=/scratch/kocevski/264052/cmap_HighResolution_629683201_629942401_4FGL_J1200.7+2008_daily_bin1506.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.58
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264052/ft1_filtered_4FGL_J1200.7+2008_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/264052/ft2_4FGL_J1200.7+2008_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264052/Model_4FGL_J1200.7+2008_daily_bin1506.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/264052/ft1_filtered_4FGL_J1200.7+2008_daily_bin1506.fits.....................!
real 49.74
user 48.48
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6560       1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9216       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9364       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14743E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6667       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3782       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77840E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.6036       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.907       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.671       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69721       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=   5440.478     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     2765 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6598        6.8620       -.47832E-05    .61368E-03
   2  norm          .10000E-03    4.1854        .35651E-08** at limit **
   3  Prefactor     .10000E-03    12.053        .37761E-06** at limit **
   4  Prefactor     .10000E-03    8.8804        .67359E-07** at limit **
   5  Prefactor     .10000E-03    4.1593       -.25567E-07** at limit **
   6  Prefactor     5.9372        18.504        .45258E-05    .13051E-04
   7  Prefactor     .10000E-03    2.6653       -.10859E-07** at limit **
   8  Prefactor     .53606        1.4357       -.95166E-06   -.19129E-02
   9  Prefactor     .10000E-03    4.7974       -.32557E-07** at limit **
  10  norm          4.9368        1.4248       -.67546E-07    .26445E-03
  11  Prefactor     6.8380        8.8343       -.82985E-07   -.35008E-04
  12  Prefactor     1.7086        2.3146       -.11984E-06   -.13926E-03
  13  Prefactor     .10000E-03    202.05        .59692E-05** at limit **
  14  Prefactor     .10000E-03    1.1003       -.52249E-07** at limit **
  15  Prefactor     .10000E-03    1.7774       -.28470E-07** at limit **
  16  norm          1.6671        1.7842        .97083E-09    .73132E-04
  17  Prefactor     .10000E-03    1.0893        .49420E-08** at limit **
  18  Prefactor     3.3788        2.4263       -.56228E-08   -.14763E-03
  19  Prefactor     .20954E-01    3.0230       -.14784E-06   -.13574E-04
  20  norm          .10000E-03    .11481       -.25481E-07** at limit **
  21  norm          6.5985        4.2392       -.13891E-06    .99110E-04
  22  Prefactor     22.916        13.341       -.78485E-06    .63420E-04
  23  Prefactor     17.672        12.886       -.92235E-06    .69304E-04
  24  Prefactor     .10000E-03    10.075       -.25540E-06** at limit **
  25  Normalizat    1.1451        .17125        .64188E-06    .19595E-03
  26  Prefactor     .69703        .16786        .59053E-06    .96647E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.65984
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.93725
  Prefactor  = 0.0001
  Prefactor  = 0.536055
  Prefactor  = 0.0001
  norm       = 4.93677
  Prefactor  = 6.83803
  Prefactor  = 1.70861
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6671
  Prefactor  = 0.0001
  Prefactor  = 3.3788
  Prefactor  = 0.0209545
  norm       = 0.0001
  norm       = 6.59852
  Prefactor  = 22.9164
  Prefactor  = 17.6719
  Prefactor  = 0.0001
  Normalizat = 1.1451
  Prefactor  = 0.69703
 **********
 **   18 **HESSE 
 **********

 FCN=   5440.478     FROM HESSE     STATUS=OK           468 CALLS     3233 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6598        6.6853        .14493E-03   -1.5154    
   2  norm          .10000E-03    4.2020        .14736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.401        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1622        .14691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9372        18.179        .16502E-03   -1.5221    
   7  Prefactor     .10000E-03    2.6694        .11759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53606        1.3604        .13502E-02   -1.5562    
   9  Prefactor     .10000E-03    4.8260        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9368        1.4245        .45232E-04   -1.5264    
  11  Prefactor     6.8380        8.8298        .15309E-03   -1.5185    
  12  Prefactor     1.7086        2.2896        .12561E-03   -1.5447    
  13  Prefactor     .10000E-03    203.33        .20484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6663        .14936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8569        .19165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6671        1.7826        .97932E-04   -1.5450    
  17  Prefactor     .10000E-03    1.1046        .75040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3788        2.4129        .89944E-04   -1.5340    
  19  Prefactor     .20954E-01    5.1451        .44475E-01   -1.5679    
  20  norm          .10000E-03    .19545        .47953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.5985        4.2510        .11474E-03   -1.5194    
  22  Prefactor     22.916        13.352        .83692E-04   -1.4750    
  23  Prefactor     17.672        12.875        .95277E-04   -1.4867    
  24  Prefactor     .10000E-03    10.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1451        .19482        .21325E-03   -.88317    
  26  Prefactor     .69703        .19208        .27343E-03   -1.0364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4728e-09
Minuit parameter uncertainties:
  1  6.68597
  2  1.70558e-06
  3  0.000130166
  4  3.28728e-06
  5  3.45316e-06
  6  18.1964
  7  2.10251e-07
  8  1.36048
  9  4.4669e-06
  10  1.42447
  11  8.83153
  12  2.28973
  13  0.000996094
  14  7.18241e-06
  15  3.89895e-06
  16  1.78267
  17  1.22147e-07
  18  2.41301
  19  0.655186
  20  1.06099e-06
  21  4.25115
  22  13.3535
  23  12.8772
  24  1.42496e-05
  25  0.194944
  26  0.192262
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.709e+00  2.290e+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:  6.970e-01  1.923e-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.145e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 180.187 20.135
Photon Flux Upper Limit: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264052/likelihoodResults_629683201_629942401_4FGL_J1200.7+2008_daily_bin1506.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) = 5439.59319323
delta logL = 0.885267435062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.57527621
delta logL = 0.903184450171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3244       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3197       1.0000          .0000       10.000    
     3 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68481       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=   5439.575     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3240        1.4865        .95517E-02   -.21311E-03
   2  Index         1.3195        .44534        .24422       -.57463E-04
   3  Normalizat    1.1631        .16120        .35868E-01    .22298E-05
   4  Prefactor     .68476        .16585        .62250E-01    .18169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32403
  Index      = 1.31953
  Normalizat = 1.1631
  Prefactor  = 0.684765
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.575     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3240        1.8870        .91306E-04   -1.5478    
   2  Index         1.3195        .65054        .93268E-02   -.82728    
   3  Normalizat    1.1631        .18319        .21169E-03   -.87751    
   4  Prefactor     .68476        .18820        .27537E-03   -1.0413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31151e-12
Minuit parameter uncertainties:
  1  1.88709
  2  0.654612
  3  0.183293
  4  0.188375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264052': 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) = 5439.57527615
delta logL = 0.90318451057

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.324e+00  1.887e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.320e+00  6.546e-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:  6.848e-01  1.884e-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.163e+00  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 180.187 20.135
Photon Index (Free Index): 1.32 +/- 0.65
Photon Flux (Free Index): 5.05e-09 +/- 6.63e-09
Energy Flux (Free Index): 2.90e-05 +/- 5.19e-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/264052/cmap_HighResolution_629683201_629942401_4FGL_J1200.7+2008_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', comment='SUCCESS', energy_flux2='2.90e-05', dlogl='9.03e-01', photon_flux2='5.05e-09', job_status='DONE', time_completed='2021-09-04 21:05:17.956401', photon_index_error2='0.65', photon_index2='1.32', ts='0.99', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='8.00e-08', energy_flux_error2='5.19e-05', EG='1.15', time_epoch_completed='1630814717.96', return_code='0', job_id='264052', GAL2='0.68', EG2='1.16', return_code2='0', photon_flux_error2='6.63e-09', ts2='2.80', photon_index='2.52' WHERE bin_id='1506' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:05:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 264052: <4FGL_J1200.7+2008_daily_bin1506> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1506> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:50:43 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:50:45 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:45 2021
Terminated at Sat Sep  4 21:05:18 2021
Results reported at Sat Sep  4 21:05:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1506 180.187 20.1354 629683201 629942401 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 :                                   697.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

