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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin473
RA = 180.187, Dec = 20.1354
tmin = 361929601, tmax = 362188801
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='258543', job_status='RUN', time_executed='2021-09-04 20:35:37.801653', time_epoch_executed='1630812937.8' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258543

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258543/ft1_4FGL_J1200.7+2008_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258543/ft2_4FGL_J1200.7+2008_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258543/ft1_4FGL_J1200.7+2008_daily_bin473.fits outfile=/scratch/kocevski/258543/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin473.fits ra=180.187 dec=20.1354 rad=12.0 tmin=361929601.0 tmax=362188801.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 5.47
user 5.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258543/ft1_filtered_4FGL_J1200.7+2008_daily_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/258543/ft2_4FGL_J1200.7+2008_daily_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/258543/ltcube_361929601_362188801_4FGL_J1200.7+2008_daily_bin473.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/258543/ft2_4FGL_J1200.7+2008_daily_bin473.fits
.....................!
real 11.67
user 11.34
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258543/ft1_filtered_4FGL_J1200.7+2008_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/258543/ft2_4FGL_J1200.7+2008_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/258543/ltcube_361929601_362188801_4FGL_J1200.7+2008_daily_bin473.fits outfile=/scratch/kocevski/258543/expmap_361929601_362188801_4FGL_J1200.7+2008_daily_bin473.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/258543/ltcube_361929601_362188801_4FGL_J1200.7+2008_daily_bin473.fits
.....................!
real 191.30
user 185.69
sys 5.25

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/258543/ft1_filtered_4FGL_J1200.7+2008_daily_bin473.fits scfile=/scratch/kocevski/258543/ft2_4FGL_J1200.7+2008_daily_bin473.fits outfile=/scratch/kocevski/258543/cmap_361929601_362188801_4FGL_J1200.7+2008_daily_bin473.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258543/ft1_filtered_4FGL_J1200.7+2008_daily_bin473.fits scfile=/scratch/kocevski/258543/ft2_4FGL_J1200.7+2008_daily_bin473.fits outfile=/scratch/kocevski/258543/cmap_HighResolution_361929601_362188801_4FGL_J1200.7+2008_daily_bin473.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=180.187 yref=20.1354 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258543/ft1_filtered_4FGL_J1200.7+2008_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/258543/ft2_4FGL_J1200.7+2008_daily_bin473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258543/Model_4FGL_J1200.7+2008_daily_bin473.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/258543/ft1_filtered_4FGL_J1200.7+2008_daily_bin473.fits.....................!
real 63.88
user 62.30
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3529       1.0000         .10000E-03   10000.    
     2 'norm      '    14.171       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.252       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2557       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.800       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.555       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    110.34       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .48724       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3710       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4527       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0674       1.0000         .10000E-03   10000.    
    21 'norm      '    .12287E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.518       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90595       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3548       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=   6857.704     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3129 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3528        5.4111        .12719E-05   -.57977E-04
   2  norm          14.173        14.984        .43805E-07    .18675E-04
   3  Prefactor     .10000E-03    4.0162       -.89584E-07** at limit **
   4  Prefactor     6.4979        64.083        .29771E-05    .30671E-04
   5  Prefactor     30.253        24.228       -.56365E-07    .94823E-05
   6  Prefactor     8.2697        25.263        .13666E-05    .51687E-05
   7  Prefactor     .10000E-03    6.3344        .39683E-08** at limit **
   8  Prefactor     .57543        1.3784       -.84211E-06    .52167E-04
   9  Prefactor     .10000E-03    9.3750       -.26106E-06** at limit **
  10  norm          12.801        2.4663        .17160E-07    .25326E-03
  11  Prefactor     10.553        17.011        .13044E-06    .74074E-05
  12  Prefactor     .10000E-03    3.0974        .43648E-07** at limit **
  13  Prefactor     110.36        105.58       -.52005E-06   -.86466E-05
  14  Prefactor     .48716        2.9486        .31980E-06   -.83256E-05
  15  Prefactor     .10000E-03    1.9836       -.72991E-08** at limit **
  16  norm          5.1140        4.8045        .18544E-06   -.22185E-04
  17  Prefactor     2.6895        3.7512       -.18692E-06    .22447E-05
  18  Prefactor     2.3705        2.9552        .37506E-06   -.63519E-04
  19  Prefactor     3.4511        4.5631        .21293E-06   -.32265E-04
  20  norm          1.0674        .32009        .31143E-08   -.23161E-04
  21  norm          .10000E-03    2.3307       -.13591E-06** at limit **
  22  Prefactor     .10000E-03    5.0028        .21866E-07** at limit **
  23  Prefactor     11.518        11.484       -.10005E-06   -.96720E-06
  24  Prefactor     .10000E-03    10.366        .12094E-06** at limit **
  25  Normalizat    .90575        .21540        .94469E-07    .26094E-04
  26  Prefactor     1.3550        .20557       -.98019E-07    .66412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.35281
  norm       = 14.1729
  Prefactor  = 0.0001
  Prefactor  = 6.49794
  Prefactor  = 30.2532
  Prefactor  = 8.2697
  Prefactor  = 0.0001
  Prefactor  = 0.575426
  Prefactor  = 0.0001
  norm       = 12.8006
  Prefactor  = 10.5533
  Prefactor  = 0.0001
  Prefactor  = 110.357
  Prefactor  = 0.487155
  Prefactor  = 0.0001
  norm       = 5.11397
  Prefactor  = 2.68954
  Prefactor  = 2.37046
  Prefactor  = 3.4511
  norm       = 1.06737
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5183
  Prefactor  = 0.0001
  Normalizat = 0.905746
  Prefactor  = 1.35501
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.704     FROM HESSE     STATUS=OK           468 CALLS     3597 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3528        5.3995        .13361E-02   -1.5401    
   2  norm          14.173        14.979        .10640E-03   -1.4955    
   3  Prefactor     .10000E-03    4.0242        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4979        64.847        .15720E-03   -1.5198    
   5  Prefactor     30.253        24.222        .72845E-04   -1.4607    
   6  Prefactor     8.2697        25.600        .13953E-03   -1.5133    
   7  Prefactor     .10000E-03    6.3678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .57543        1.3903        .15209E-02   -1.5556    
   9  Prefactor     .10000E-03    9.4253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.801        2.4671        .53640E-04   -1.4992    
  11  Prefactor     10.553        16.988        .12333E-03   -1.5058    
  12  Prefactor     .10000E-03    3.1505        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     110.36        105.48        .38291E-04   -1.3603    
  14  Prefactor     .48716        2.9917        .26640E-03   -1.5568    
  15  Prefactor     .10000E-03    2.0158        .11363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1140        4.7736        .69959E-03   -1.5256    
  17  Prefactor     2.6895        3.7227        .15221E-03   -1.5380    
  18  Prefactor     2.3705        2.9316        .72281E-03   -1.5400    
  19  Prefactor     3.4511        4.5265        .97870E-03   -1.5336    
  20  norm          1.0674        .31997        .24287E-04   -1.5501    
  21  norm          .10000E-03    5.0631        .24300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.0242        .18089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.518        11.460        .11804E-03   -1.5029    
  24  Prefactor     .10000E-03    10.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90575        .25870        .31872E-03   -.96259    
  26  Prefactor     1.3550        .24902        .27250E-03   -.81686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06231e-10
Minuit parameter uncertainties:
  1  5.40067
  2  14.9834
  3  6.97197e-06
  4  41.1123
  5  24.2295
  6  25.6344
  7  5.13093e-06
  8  1.39034
  9  4.09637e-06
  10  2.46713
  11  16.996
  12  2.40953e-06
  13  105.656
  14  2.4144
  15  6.17332e-06
  16  4.77398
  17  3.723
  18  2.93183
  19  4.52695
  20  0.319966
  21  2.15244e-05
  22  1.38134e-06
  23  11.4623
  24  9.71561e-06
  25  0.259056
  26  0.249245
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.410e-06  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.355e+00  2.492e-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:  9.057e-01  2.591e-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: 8.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258543/likelihoodResults_361929601_362188801_4FGL_J1200.7+2008_daily_bin473.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) = 6857.7056465
delta logL = -0.0015111519142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6857.704136
delta logL = -6.55781150272e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11675E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4683       1.0000          .0000       10.000    
     3 'Normalizat'    .90572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3551       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=   6857.553     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      322 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3736        3.3602        .47254E-01    .10166E-02
   2  Index         1.3591        .47700        .29518       -.35982E-04
   3  Normalizat    .90947        .23966        .31872E-03   -.27537E-04
   4  Prefactor     1.3441        .24761        .27250E-03   -.20693E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37365
  Index      = 1.35906
  Normalizat = 0.909472
  Prefactor  = 1.34408
 **********
 **   18 **HESSE 
 **********

 FCN=   6857.553     FROM HESSE     STATUS=OK            31 CALLS      353 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3736        3.8727        .22550E-02   -1.5474    
   2  Index         1.3591        .88209        .11138E-01   -.81568    
   3  Normalizat    .90947        .23973        .12749E-04   -.96128    
   4  Prefactor     1.3441        .24720        .10900E-04   -.82005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26924e-10
Minuit parameter uncertainties:
  1  3.87336
  2  0.892136
  3  0.240015
  4  0.247416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258543': 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) = 6857.55340644
delta logL = 0.150728904016

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  1.374e+00  3.873e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.359e+00  8.921e-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.344e+00  2.474e-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:  9.095e-01  2.400e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/258543/cmap_HighResolution_361929601_362188801_4FGL_J1200.7+2008_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='8.98e-08', time_completed='2021-09-04 20:49:20.820054', job_id='258543', GAL2='1.34', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630813760.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='1.51e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='473' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:49:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 258543: <4FGL_J1200.7+2008_daily_bin473> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin473> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 20:35:26 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:35:28 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:35:28 2021
Terminated at Sat Sep  4 20:49:21 2021
Results reported at Sat Sep  4 20:49:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin473 180.187 20.1354 361929601 362188801 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 :                                   818.39 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

