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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin979
RA = 180.187, Dec = 20.1354
tmin = 493084801, tmax = 493344001
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='260731', job_status='RUN', time_executed='2021-09-04 20:41:15.507961', time_epoch_executed='1630813275.51' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260731/ft1_4FGL_J1200.7+2008_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260731/ft2_4FGL_J1200.7+2008_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260731/ft1_4FGL_J1200.7+2008_daily_bin979.fits outfile=/scratch/kocevski/260731/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin979.fits ra=180.187 dec=20.1354 rad=12.0 tmin=493084801.0 tmax=493344001.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.60
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260731/ft1_filtered_4FGL_J1200.7+2008_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/260731/ft2_4FGL_J1200.7+2008_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/260731/ltcube_493084801_493344001_4FGL_J1200.7+2008_daily_bin979.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/260731/ft2_4FGL_J1200.7+2008_daily_bin979.fits
.....................!
real 11.98
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260731/ft1_filtered_4FGL_J1200.7+2008_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/260731/ft2_4FGL_J1200.7+2008_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/260731/ltcube_493084801_493344001_4FGL_J1200.7+2008_daily_bin979.fits outfile=/scratch/kocevski/260731/expmap_493084801_493344001_4FGL_J1200.7+2008_daily_bin979.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/260731/ltcube_493084801_493344001_4FGL_J1200.7+2008_daily_bin979.fits
.....................!
real 193.47
user 187.66
sys 5.43

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/260731/ft1_filtered_4FGL_J1200.7+2008_daily_bin979.fits scfile=/scratch/kocevski/260731/ft2_4FGL_J1200.7+2008_daily_bin979.fits outfile=/scratch/kocevski/260731/cmap_493084801_493344001_4FGL_J1200.7+2008_daily_bin979.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260731/ft1_filtered_4FGL_J1200.7+2008_daily_bin979.fits scfile=/scratch/kocevski/260731/ft2_4FGL_J1200.7+2008_daily_bin979.fits outfile=/scratch/kocevski/260731/cmap_HighResolution_493084801_493344001_4FGL_J1200.7+2008_daily_bin979.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260731/ft1_filtered_4FGL_J1200.7+2008_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/260731/ft2_4FGL_J1200.7+2008_daily_bin979.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260731/Model_4FGL_J1200.7+2008_daily_bin979.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/260731/ft1_filtered_4FGL_J1200.7+2008_daily_bin979.fits....................!
real 49.37
user 47.94
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0868       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6454       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27793E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.297       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47683       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7652       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44590       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6876       1.0000         .10000E-03   10000.    
    16 'norm      '    18.412       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3082       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0039       1.0000         .10000E-03   10000.    
    21 'norm      '    14.483       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.280       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75595       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=   4882.548     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3063 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0879        5.7750        .57639E-06   -.13987E-04
   2  norm          .10000E-03    4.9989        .95436E-07** at limit **
   3  Prefactor     6.6459        8.0783        .51626E-07   -.65395E-05
   4  Prefactor     .10000E-03    272.68       -.14506E-04** at limit **
   5  Prefactor     .10000E-03    13.386        .17764E-06** at limit **
   6  Prefactor     .10000E-03    9.4148       -.72540E-07** at limit **
   7  Prefactor     10.299        9.5248       -.17981E-06   -.86227E-04
   8  Prefactor     .47752        1.6464        .10268E-05   -.51609E-05
   9  Prefactor     .10000E-03    7.9418        .16299E-06** at limit **
  10  norm          2.7657        1.2184        .62607E-07   -.17024E-03
  11  Prefactor     14.292        20.916        .85732E-06   -.97884E-05
  12  Prefactor     .44864        3.2610        .78624E-06   -.11457E-03
  13  Prefactor     .10000E-03    109.84        .69688E-06** at limit **
  14  Prefactor     .10000E-03    1.0910       -.97473E-09** at limit **
  15  Prefactor     5.6900        3.7148        .21402E-06   -.13598E-03
  16  norm          18.412        5.3956       -.14199E-06   -.70064E-04
  17  Prefactor     1.3098        3.0635        .64986E-06    .19765E-04
  18  Prefactor     .10000E-03    .74010        .21154E-07** at limit **
  19  Prefactor     .10000E-03    1.9991        .14393E-07** at limit **
  20  norm          1.0041        .30978        .35154E-07   -.66948E-03
  21  norm          14.485        5.8666        .14076E-06   -.47001E-04
  22  Prefactor     .10000E-03    11.228        .34391E-06** at limit **
  23  Prefactor     13.281        12.089        .26287E-06   -.25449E-04
  24  Prefactor     .10000E-03    16.474        .15922E-06** at limit **
  25  Normalizat    1.0509        .19579       -.27997E-05   -.33507E-04
  26  Prefactor     .75612        .18984       -.64513E-06   -.10444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08789
  norm       = 0.0001
  Prefactor  = 6.6459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2987
  Prefactor  = 0.477515
  Prefactor  = 0.0001
  norm       = 2.76565
  Prefactor  = 14.2919
  Prefactor  = 0.448643
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.68995
  norm       = 18.4117
  Prefactor  = 1.30981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00411
  norm       = 14.4851
  Prefactor  = 0.0001
  Prefactor  = 13.2808
  Prefactor  = 0.0001
  Normalizat = 1.05092
  Prefactor  = 0.756118
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.548     FROM HESSE     STATUS=OK           460 CALLS     3523 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0879        5.7628        .22139E-03   -1.5357    
   2  norm          .10000E-03    5.0278        .15261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6459        8.0730        .15566E-03   -1.5192    
   4  Prefactor     .10000E-03    273.13        .39819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.299        9.4861        .12487E-03   -1.5066    
   8  Prefactor     .47752        1.6626        .15772E-03   -1.5570    
   9  Prefactor     .10000E-03    7.9910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7657        1.2160        .49406E-04   -1.5375    
  11  Prefactor     14.292        20.922        .10594E-03   -1.4952    
  12  Prefactor     .44864        5.8363        .23158E-02   -1.5574    
  13  Prefactor     .10000E-03    110.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0988        .71102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6900        3.7010        .10230E-03   -1.5231    
  16  norm          18.412        5.3097        .37023E-03   -1.4850    
  17  Prefactor     1.3098        2.9939        .15825E-03   -1.5479    
  18  Prefactor     .10000E-03    .74790        .58664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0019        .96471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0041        .30950        .20474E-04   -1.5508    
  21  norm          14.485        5.8668        .10349E-03   -1.4947    
  22  Prefactor     .10000E-03    11.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.281        12.069        .10992E-03   -1.4979    
  24  Prefactor     .10000E-03    16.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0509        .22268        .23286E-03   -.91344    
  26  Prefactor     .75612        .22069        .27958E-03   -1.0137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26497e-08
Minuit parameter uncertainties:
  1  5.7638
  2  1.25325e-05
  3  8.07434
  4  0.000564863
  5  3.73721e-05
  6  9.56414e-06
  7  9.48749
  8  1.66278
  9  2.18809e-05
  10  1.21602
  11  20.9331
  12  3.23633
  13  0.000484271
  14  1.27136e-06
  15  3.70115
  16  5.30983
  17  2.99421
  18  1.63297e-06
  19  2.15847e-06
  20  0.309503
  21  5.86707
  22  5.68408e-05
  23  12.0716
  24  2.63935e-05
  25  0.222882
  26  0.220945
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.486e-01  3.236e+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:  7.561e-01  2.209e-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.051e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/260731/likelihoodResults_493084801_493344001_4FGL_J1200.7+2008_daily_bin979.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) = 4882.54791481
delta logL = 0.00045421966206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4882.54788305
delta logL = 0.000485982101964

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47064       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4404       1.0000          .0000       10.000    
     3 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75594       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=   4882.548     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      264 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47522        23.768        .41343E-01    .78999E-03
   2  Index         2.4435        2.3607        .50000        .56197E-05
   3  Normalizat    1.0512        .13215E-01    .40470E-01    .67989E-05
   4  Prefactor     .75588        .13748E-01    .63214E-01    .14588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.475218
  Index      = 2.44347
  Normalizat = 1.05121
  Prefactor  = 0.75588
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.548     FROM HESSE     STATUS=OK            35 CALLS      299 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47522        6.5279        .23634E-02   -1.5570    
   2  Index         2.4435        2.3918        .14092E-01   -.53670    
   3  Normalizat    1.0512        .21213        .23283E-03   -.91334    
   4  Prefactor     .75588        .22001        .27962E-03   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03109e-11
Minuit parameter uncertainties:
  1  3.52268
  2  2.5366
  3  0.212305
  4  0.220263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260731': 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) = 4882.54788045
delta logL = 0.000488583628794

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  4.752e-01  3.523e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.443e+00  2.537e+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.559e-01  2.203e-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.051e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/260731/cmap_HighResolution_493084801_493344001_4FGL_J1200.7+2008_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-09-04 20:52:46.457051', job_id='260731', GAL2='0.76', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630813966.46', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='4.89e-04', ts2='0.02', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='979' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:52:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 260731: <4FGL_J1200.7+2008_daily_bin979> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin979> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 20:41:03 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:41:04 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:41:04 2021
Terminated at Sat Sep  4 20:52:46 2021
Results reported at Sat Sep  4 20:52:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin979 180.187 20.1354 493084801 493344001 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 :                                   681.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            703 sec.

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

