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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin715
RA = 180.187, Dec = 20.1354
tmin = 424656001, tmax = 424915201
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='260297', job_status='RUN', time_executed='2021-09-04 20:40:55.457414', time_epoch_executed='1630813255.46' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260297/ft1_4FGL_J1200.7+2008_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260297/ft2_4FGL_J1200.7+2008_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260297/ft1_4FGL_J1200.7+2008_daily_bin715.fits outfile=/scratch/kocevski/260297/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin715.fits ra=180.187 dec=20.1354 rad=12.0 tmin=424656001.0 tmax=424915201.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.52
user 4.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260297/ft2_4FGL_J1200.7+2008_daily_bin715.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/260297/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/260297/ft1_filtered_4FGL_J1200.7+2008_daily_bin715.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260297/ft1_filtered_4FGL_J1200.7+2008_daily_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/260297/ft2_4FGL_J1200.7+2008_daily_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/260297/ltcube_424656001_424915201_4FGL_J1200.7+2008_daily_bin715.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/260297/ft2_4FGL_J1200.7+2008_daily_bin715.fits
.....................!
real 11.46
user 11.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260297/ft1_filtered_4FGL_J1200.7+2008_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/260297/ft2_4FGL_J1200.7+2008_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/260297/ltcube_424656001_424915201_4FGL_J1200.7+2008_daily_bin715.fits outfile=/scratch/kocevski/260297/expmap_424656001_424915201_4FGL_J1200.7+2008_daily_bin715.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/260297/ltcube_424656001_424915201_4FGL_J1200.7+2008_daily_bin715.fits
.....................!
real 190.01
user 184.89
sys 4.73

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/260297/ft1_filtered_4FGL_J1200.7+2008_daily_bin715.fits scfile=/scratch/kocevski/260297/ft2_4FGL_J1200.7+2008_daily_bin715.fits outfile=/scratch/kocevski/260297/cmap_424656001_424915201_4FGL_J1200.7+2008_daily_bin715.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/260297/ft1_filtered_4FGL_J1200.7+2008_daily_bin715.fits scfile=/scratch/kocevski/260297/ft2_4FGL_J1200.7+2008_daily_bin715.fits outfile=/scratch/kocevski/260297/cmap_HighResolution_424656001_424915201_4FGL_J1200.7+2008_daily_bin715.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/260297/ft1_filtered_4FGL_J1200.7+2008_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/260297/ft2_4FGL_J1200.7+2008_daily_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260297/Model_4FGL_J1200.7+2008_daily_bin715.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/260297/ft1_filtered_4FGL_J1200.7+2008_daily_bin715.fits.....................!
real 42.21
user 40.95
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.335       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.822       1.0000         .10000E-03   10000.    
     4 'Prefactor '    78.842       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1795       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8795       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0478       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38669       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1510       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1842       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2367       1.0000         .10000E-03   10000.    
    21 'norm      '    7.0742       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10664E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.925       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80008       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2442       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=   4067.610     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3090 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1270       -.97819E-08** at limit **
   2  norm          10.337        13.331        .10902E-06   -.30134E-04
   3  Prefactor     17.826        15.829        .52297E-06   -.25164E-05
   4  Prefactor     78.849        60.147        .62817E-05    .56523E-05
   5  Prefactor     .10000E-03    12.361       -.91766E-06** at limit **
   6  Prefactor     .10000E-03    21.043        .23185E-06** at limit **
   7  Prefactor     .10000E-03    7.0582       -.27464E-06** at limit **
   8  Prefactor     .10000E-03    1.6612        .21781E-07** at limit **
   9  Prefactor     4.1801        7.4795        .64492E-07   -.21269E-03
  10  norm          6.8799        2.6012        .44177E-07   -.14932E-04
  11  Prefactor     2.0452        8.6463        .17869E-06   -.20698E-03
  12  Prefactor     3.1856        7.0213        .53981E-07    .26788E-04
  13  Prefactor     .10000E-03    38.223       -.10343E-06** at limit **
  14  Prefactor     .10000E-03    3.2973        .85455E-07** at limit **
  15  Prefactor     .39366        4.4578       -.92791E-06    .31299E-03
  16  norm          2.1508        2.2146        .97391E-08    .98601E-05
  17  Prefactor     .10000E-03    1.7610        .23751E-07** at limit **
  18  Prefactor     .10000E-03    1.0403        .47136E-08** at limit **
  19  Prefactor     4.1842        6.6959        .65757E-07   -.30030E-03
  20  norm          4.2369        .71730        .27207E-07    .50930E-03
  21  norm          7.0748        6.5514        .13411E-06    .46387E-05
  22  Prefactor     .10000E-03    11.989        .74908E-06** at limit **
  23  Prefactor     .10000E-03    8.3306        .26609E-06** at limit **
  24  Prefactor     49.925        40.251        .63970E-06    .16527E-04
  25  Normalizat    .79981        .26078       -.14930E-05    .74158E-04
  26  Prefactor     1.2444        .24649        .53490E-07    .46463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.3369
  Prefactor  = 17.8259
  Prefactor  = 78.8488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18012
  norm       = 6.87993
  Prefactor  = 2.04522
  Prefactor  = 3.18556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.393663
  norm       = 2.1508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18422
  norm       = 4.23687
  norm       = 7.07477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.9254
  Normalizat = 0.799809
  Prefactor  = 1.24439
 **********
 **   18 **HESSE 
 **********

 FCN=   4067.610     FROM HESSE     STATUS=OK           460 CALLS     3550 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1369        .12652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.337        13.382        .62317E-03   -1.5065    
   3  Prefactor     17.826        15.905        .94873E-04   -1.4863    
   4  Prefactor     78.849        60.752        .45228E-04   -1.3930    
   5  Prefactor     .10000E-03    12.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0737        .16548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6895        .80210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1801        7.7570        .98569E-03   -1.5299    
  10  norm          6.8799        2.6127        .60249E-04   -1.5183    
  11  Prefactor     2.0452        26.013        .14445E-02   -1.5422    
  12  Prefactor     3.1856        7.0032        .22710E-03   -1.5351    
  13  Prefactor     .10000E-03    38.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3414        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .39366        8.5915        .24075E-02   -1.5582    
  16  norm          2.1508        2.2227        .93844E-04   -1.5415    
  17  Prefactor     .10000E-03    3.0691        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.0458        .63514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.1842        7.4162        .98511E-03   -1.5299    
  20  norm          4.2369        .71846        .20715E-04   -1.5296    
  21  norm          7.0748        6.5583        .15049E-03   -1.5176    
  22  Prefactor     .10000E-03    12.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3440        .17981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     49.925        40.218        .56756E-04   -1.4294    
  25  Normalizat    .79981        .30523        .32346E-03   -1.0008    
  26  Prefactor     1.2444        .28953        .26777E-03   -.84976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2193e-09
Minuit parameter uncertainties:
  1  1.89054e-06
  2  13.3862
  3  15.9086
  4  60.8003
  5  4.32135e-06
  6  1.30982e-05
  7  3.52651e-07
  8  2.46448e-06
  9  7.75882
  10  2.61277
  11  14.5956
  12  7.00503
  13  7.13888e-06
  14  1.54343e-05
  15  3.67826
  16  2.22274
  17  2.6157e-06
  18  6.22836e-07
  19  7.41778
  20  0.718464
  21  6.55898
  22  2.40946e-06
  23  3.45077e-06
  24  40.2397
  25  0.305884
  26  0.289904
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.186e+00  7.005e+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.244e+00  2.899e-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:  7.998e-01  3.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/260297/likelihoodResults_424656001_424915201_4FGL_J1200.7+2008_daily_bin715.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): 102
logL (Free Index) = 4067.58296393
delta logL = 0.0272263370939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4066.62206427
delta logL = 0.988126006508

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 'Index     '    9.1996       1.0000          .0000       10.000    
     3 'Normalizat'    .70000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3268       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=   4066.622     FROM MIGRAD    STATUS=CONVERGED    251 CALLS      581 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91490E-03    .29075E-03** at limit **
   2  Index         9.1995        1.7808        .21368       -.12011E-03
   3  Normalizat    .70049        .24715        .77463E-01   -.69746E-04
   4  Prefactor     1.3263        .24902        .58933E-01   -.20062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.19947
  Normalizat = 0.700493
  Prefactor  = 1.32631
 **********
 **   18 **HESSE 
 **********

 FCN=   4066.622     FROM HESSE     STATUS=OK            33 CALLS      614 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .17893E-02    .83144E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1995        .42958        .98292E-02    14.711    
   3  Normalizat    .70049        .28823        .34296E-03   -1.0387    
   4  Prefactor     1.3263        .29018        .26059E-03   -.82528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74661e-10
Minuit parameter uncertainties:
  1  5.02669e-09
  2  0.431398
  3  0.288857
  4  0.290537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260297': 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) = 4066.62206237
delta logL = 0.988127898753

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  5.027e-09  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  9.199e+00  4.314e-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.326e+00  2.905e-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:  7.005e-01  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 180.187 20.135
Photon Index (Free Index): 9.20 +/- 0.43
Photon Flux (Free Index): 1.04e-07 +/- 8.17e-08
Energy Flux (Free Index): 1.18e-05 +/- 9.22e-06

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/260297/cmap_HighResolution_424656001_424915201_4FGL_J1200.7+2008_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='9.88e-01', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-04 20:51:29.767351', photon_index_error2='0.43', photon_index2='9.20', ts='0.24', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='9.22e-06', EG='0.80', time_epoch_completed='1630813889.77', return_code='0', job_id='260297', GAL2='1.33', EG2='0.70', return_code2='0', photon_flux_error2='8.17e-08', ts2='2.36', photon_index='2.52' WHERE bin_id='715' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:51:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 260297: <4FGL_J1200.7+2008_daily_bin715> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin715> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:40:28 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:40:30 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:40:30 2021
Terminated at Sat Sep  4 20:51:30 2021
Results reported at Sat Sep  4 20:51:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin715 180.187 20.1354 424656001 424915201 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 :                                   629.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            662 sec.

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

