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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1115
RA = 180.187, Dec = 20.1354
tmin = 528336001, tmax = 528595201
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='262192', job_status='RUN', time_executed='2021-09-04 20:48:03.746608', time_epoch_executed='1630813683.75' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262192/ft1_4FGL_J1200.7+2008_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262192/ft2_4FGL_J1200.7+2008_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262192/ft1_4FGL_J1200.7+2008_daily_bin1115.fits outfile=/scratch/kocevski/262192/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1115.fits ra=180.187 dec=20.1354 rad=12.0 tmin=528336001.0 tmax=528595201.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.40
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/262192/ft1_filtered_4FGL_J1200.7+2008_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/262192/ft2_4FGL_J1200.7+2008_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/262192/ltcube_528336001_528595201_4FGL_J1200.7+2008_daily_bin1115.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/262192/ft2_4FGL_J1200.7+2008_daily_bin1115.fits
.....................!
real 11.66
user 11.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262192/ft1_filtered_4FGL_J1200.7+2008_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/262192/ft2_4FGL_J1200.7+2008_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/262192/ltcube_528336001_528595201_4FGL_J1200.7+2008_daily_bin1115.fits outfile=/scratch/kocevski/262192/expmap_528336001_528595201_4FGL_J1200.7+2008_daily_bin1115.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/262192/ltcube_528336001_528595201_4FGL_J1200.7+2008_daily_bin1115.fits
.....................!
real 189.69
user 185.39
sys 3.96

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/262192/ft1_filtered_4FGL_J1200.7+2008_daily_bin1115.fits scfile=/scratch/kocevski/262192/ft2_4FGL_J1200.7+2008_daily_bin1115.fits outfile=/scratch/kocevski/262192/cmap_528336001_528595201_4FGL_J1200.7+2008_daily_bin1115.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.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262192/ft1_filtered_4FGL_J1200.7+2008_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/262192/ft2_4FGL_J1200.7+2008_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262192/Model_4FGL_J1200.7+2008_daily_bin1115.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/262192/ft1_filtered_4FGL_J1200.7+2008_daily_bin1115.fits.....................!
real 55.11
user 53.74
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3818       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1024       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.981       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.113       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12856E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0847       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6279       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4485       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .21394       1.0000         .10000E-03   10000.    
    21 'norm      '    .74928E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.521       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3254       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72554       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=   5788.852     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3096 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3819        4.6564        .16068E-06   -.14438E-03
   2  norm          1.1029        14.231        .32226E-05   -.10171E-03
   3  Prefactor     .10000E-03    9.2729        .19871E-06** at limit **
   4  Prefactor     62.983        49.987        .64647E-06    .51425E-04
   5  Prefactor     19.113        13.777       -.34962E-07   -.45960E-04
   6  Prefactor     .10000E-03    9.6236       -.90570E-06** at limit **
   7  Prefactor     .10000E-03    6.7385       -.19177E-05** at limit **
   8  Prefactor     .10000E-03    .74601        .43136E-07** at limit **
   9  Prefactor     .10001E-03    7.0802        .23854E-05** at limit **
  10  norm          11.224        2.1895        .29248E-07   -.32229E-03
  11  Prefactor     .10000E-03    9.5026       -.31787E-06** at limit **
  12  Prefactor     .10000E-03    2.2706        .49944E-06** at limit **
  13  Prefactor     .10000E-03    33.567       -.76480E-06** at limit **
  14  Prefactor     .10000E-03    2.3420       -.13390E-07** at limit **
  15  Prefactor     7.0849        4.4584        .30366E-06    .39321E-03
  16  norm          7.6280        3.1299       -.11560E-06   -.90516E-03
  17  Prefactor     .10000E-03    1.1799       -.24613E-07** at limit **
  18  Prefactor     1.4484        1.3369       -.46150E-06    .18343E-03
  19  Prefactor     .10000E-03    4.2307       -.48946E-07** at limit **
  20  norm          .21387        .30145        .10442E-06   -.14211E-02
  21  norm          .10025E-03    4.6001        .25111E-05** at limit **
  22  Prefactor     19.521        11.469        .70186E-07    .21433E-04
  23  Prefactor     .10000E-03    11.116       -.15368E-05** at limit **
  24  Prefactor     .10000E-03    7.4261        .59196E-06** at limit **
  25  Normalizat    1.3254        .19701       -.79391E-06   -.50191E-03
  26  Prefactor     .72560        .18756       -.59500E-07   -.36088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38189
  norm       = 1.10287
  Prefactor  = 0.0001
  Prefactor  = 62.9829
  Prefactor  = 19.1129
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 11.2242
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.08494
  norm       = 7.62802
  Prefactor  = 0.0001
  Prefactor  = 1.44839
  Prefactor  = 0.0001
  norm       = 0.213869
  norm       = 0.000100251
  Prefactor  = 19.5207
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.32538
  Prefactor  = 0.725597
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.852     FROM HESSE     STATUS=OK           454 CALLS     3550 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3819        4.6481        .22372E-03   -1.5399    
   2  norm          1.1029        16.289        .45205E-03   -1.5498    
   3  Prefactor     .10000E-03    9.3443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     62.983        50.080        .50564E-04   -1.4119    
   5  Prefactor     19.113        13.775        .91614E-04   -1.4833    
   6  Prefactor     .10000E-03    9.7441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .76071        .64162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    7.8324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.224        2.1951        .47543E-04   -1.5038    
  11  Prefactor     .10000E-03    9.5376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.283        .21501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4239        .22645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0849        4.4549        .11881E-03   -1.5176    
  16  norm          7.6280        3.1415        .84080E-04   -1.5156    
  17  Prefactor     .10000E-03    1.2120        .16125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4484        1.4228        .43089E-03   -1.5467    
  19  Prefactor     .10000E-03    4.2636        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .21387        .28696        .45220E-03   -1.5615    
  21  norm          .10025E-03    21.802        .24085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.521        11.470        .90652E-04   -1.4824    
  23  Prefactor     .10000E-03    11.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.4713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3254        .22978        .23810E-03   -.82812    
  26  Prefactor     .72560        .21974        .30791E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40691e-08
Minuit parameter uncertainties:
  1  4.64877
  2  8.47926
  3  5.05077e-05
  4  50.113
  5  13.7775
  6  0.000200226
  7  0.000368567
  8  3.06129e-06
  9  0.000475939
  10  2.19507
  11  7.221e-05
  12  0.000436213
  13  0.000323012
  14  9.81668e-06
  15  4.45509
  16  3.14152
  17  4.22391e-07
  18  1.42285
  19  1.83056e-05
  20  0.286962
  21  0.00467932
  22  11.4711
  23  0.00038124
  24  0.000116015
  25  0.229954
  26  0.220004
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.362e-04  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.256e-01  2.200e-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.325e+00  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262192/likelihoodResults_528336001_528595201_4FGL_J1200.7+2008_daily_bin1115.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) = 5788.85232851
delta logL = -0.000387392635275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5788.85193844
delta logL = 2.6817097023e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51819E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6524       1.0000          .0000       10.000    
     3 'Normalizat'    1.3253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72568       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5788.765     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      345 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43120        2.6811        .11561E-03   -.10424E-03
   2  Index         3.6586        2.5459        .12012E-01    .20279E-04
   3  Normalizat    1.3010        .22751        .24003E-03   -.12741E-04
   4  Prefactor     .73739        .22011        .30564E-03   -.24438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.4312
  Index      = 3.65861
  Normalizat = 1.30095
  Prefactor  = 0.737386
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.765     FROM HESSE     STATUS=OK            25 CALLS      370 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43120        1.6624        .46242E-05   -1.5839    
   2  Index         3.6586        2.0071        .48047E-03   -.27161    
   3  Normalizat    1.3010        .22795        .96013E-05   -.83538    
   4  Prefactor     .73739        .22033        .12226E-04   -1.0208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04064e-11
Minuit parameter uncertainties:
  1  1.66254
  2  2.07031
  3  0.228123
  4  0.220595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262192': 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) = 5788.76507519
delta logL = 0.0868659258294

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.312e-01  1.663e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  3.659e+00  2.070e+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:  7.374e-01  2.206e-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.301e+00  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.187 20.135

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/262192/cmap_HighResolution_528336001_528595201_4FGL_J1200.7+2008_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-04 21:02:04.320234', job_id='262192', GAL2='0.74', fit_tolerance='1e-08', EG2='1.30', EG='1.33', time_epoch_completed='1630814524.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='8.69e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1115' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:02:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 262192: <4FGL_J1200.7+2008_daily_bin1115> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1115> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:34 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45:35 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:45:35 2021
Terminated at Sat Sep  4 21:02:05 2021
Results reported at Sat Sep  4 21:02:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1115 180.187 20.1354 528336001 528595201 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 :                                   740.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

