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


Performing analysis on: 4FGL_J1200.7+2008_daily_bin1079
RA = 180.187, Dec = 20.1354
tmin = 519004801, tmax = 519264001
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='262137', job_status='RUN', time_executed='2021-09-04 20:45:41.370944', time_epoch_executed='1630813541.37' WHERE source_name='4FGL J1200.7+2008' and cadence='daily' and bin_id='1079'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262137

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262137/ft1_4FGL_J1200.7+2008_daily_bin1079.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262137/ft2_4FGL_J1200.7+2008_daily_bin1079.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262137/ft1_4FGL_J1200.7+2008_daily_bin1079.fits outfile=/scratch/kocevski/262137/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1079.fits ra=180.187 dec=20.1354 rad=12.0 tmin=519004801.0 tmax=519264001.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.53
user 3.34
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262137/ft2_4FGL_J1200.7+2008_daily_bin1079.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/262137/ft1_filteredMKT_4FGL_J1200.7+2008_daily_bin1079.fits evtable="EVENTS" outfile="/scratch/kocevski/262137/ft1_filtered_4FGL_J1200.7+2008_daily_bin1079.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/262137/ft1_filtered_4FGL_J1200.7+2008_daily_bin1079.fits" evtable="EVENTS" scfile=/scratch/kocevski/262137/ft2_4FGL_J1200.7+2008_daily_bin1079.fits sctable="SC_DATA" outfile=/scratch/kocevski/262137/ltcube_519004801_519264001_4FGL_J1200.7+2008_daily_bin1079.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/262137/ft2_4FGL_J1200.7+2008_daily_bin1079.fits
.....................!
real 11.80
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262137/ft1_filtered_4FGL_J1200.7+2008_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/262137/ft2_4FGL_J1200.7+2008_daily_bin1079.fits sctable="SC_DATA" expcube=/scratch/kocevski/262137/ltcube_519004801_519264001_4FGL_J1200.7+2008_daily_bin1079.fits outfile=/scratch/kocevski/262137/expmap_519004801_519264001_4FGL_J1200.7+2008_daily_bin1079.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/262137/ltcube_519004801_519264001_4FGL_J1200.7+2008_daily_bin1079.fits
.....................!
real 192.47
user 187.89
sys 4.19

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/262137/ft1_filtered_4FGL_J1200.7+2008_daily_bin1079.fits scfile=/scratch/kocevski/262137/ft2_4FGL_J1200.7+2008_daily_bin1079.fits outfile=/scratch/kocevski/262137/cmap_519004801_519264001_4FGL_J1200.7+2008_daily_bin1079.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=180.187 yref=20.1354 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262137/ft1_filtered_4FGL_J1200.7+2008_daily_bin1079.fits scfile=/scratch/kocevski/262137/ft2_4FGL_J1200.7+2008_daily_bin1079.fits outfile=/scratch/kocevski/262137/cmap_HighResolution_519004801_519264001_4FGL_J1200.7+2008_daily_bin1079.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/262137/ft1_filtered_4FGL_J1200.7+2008_daily_bin1079.fits evtable="EVENTS" scfile=/scratch/kocevski/262137/ft2_4FGL_J1200.7+2008_daily_bin1079.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262137/Model_4FGL_J1200.7+2008_daily_bin1079.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/262137/ft1_filtered_4FGL_J1200.7+2008_daily_bin1079.fits.....................!
real 60.85
user 59.42
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    30.137       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.384       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .39301E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1726       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.3752       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11685E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.8332       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1509       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2324       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9596       1.0000         .10000E-03   10000.    
    20 'norm      '    .32396       1.0000         .10000E-03   10000.    
    21 'norm      '    11.608       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.138       1.0000         .10000E-03   10000.    
    24 'Prefactor '    53.399       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1666       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90820       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=   6362.458     FROM MIGRAD    STATUS=CONVERGED   1080 CALLS     4085 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8547        .36285E-03** at limit **
   2  norm          30.129        15.819        .72984E-04    .34269E-04
   3  Prefactor     .10000E-03    4.6460        .16772E-02** at limit **
   4  Prefactor     57.390        45.987        .52958E-04   -.39285E-04
   5  Prefactor     .10000E-03    95.901        .52718E-02** at limit **
   6  Prefactor     3.1511        29.289        .22753E-03   -.21485E-05
   7  Prefactor     .10000E-03    3.1405        .13795E-02** at limit **
   8  Prefactor     .10000E-03    .74293        .66346E-03** at limit **
   9  Prefactor     .10000E-03    9.0567        .18142E-02** at limit **
  10  norm          6.3750        1.8335        .54582E-04    .17225E-03
  11  Prefactor     18.125        20.296        .94085E-04    .13848E-03
  12  Prefactor     .37330        7.8460        .21520E-02    .23095E-02
  13  Prefactor     .10000E-03    28.990        .18142E-02** at limit **
  14  Prefactor     .10000E-03    2.1759        .22612E-03** at limit **
  15  Prefactor     .10000E-03    3.2345        .20899E-02** at limit **
  16  norm          7.8332        3.3701        .90575E-04    .90748E-04
  17  Prefactor     2.1509        1.8303        .94116E-04    .36238E-04
  18  Prefactor     2.2323        1.6680        .85990E-04    .52223E-04
  19  Prefactor     3.9588        5.1225        .19455E-03   -.95486E-04
  20  norm          .32399        .26012        .35052E-03    .50444E-03
  21  norm          11.608        5.8240        .11758E-03    .10143E-03
  22  Prefactor     26.558        16.566        .77731E-04    .22020E-03
  23  Prefactor     11.138        8.4513        .60021E-03    .21142E-03
  24  Prefactor     53.423        43.921        .54888E-04   -.69138E-04
  25  Normalizat    1.1669        .24213        .26261E-03    .84405E-03
  26  Prefactor     .90792        .22440        .29366E-03    .48267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 30.1294
  Prefactor  = 0.0001
  Prefactor  = 57.3898
  Prefactor  = 0.000100005
  Prefactor  = 3.15115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.37499
  Prefactor  = 18.1249
  Prefactor  = 0.373298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 7.83322
  Prefactor  = 2.15091
  Prefactor  = 2.23231
  Prefactor  = 3.95876
  norm       = 0.323987
  norm       = 11.6083
  Prefactor  = 26.5575
  Prefactor  = 11.1383
  Prefactor  = 53.4229
  Normalizat = 1.16692
  Prefactor  = 0.907923
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.458     FROM HESSE     STATUS=OK           434 CALLS     4519 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8550        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          30.129        15.818        .29194E-05   -1.4610    
   3  Prefactor     .10000E-03    4.6464        .33543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.390        45.976        .10592E-04   -1.4191    
   5  Prefactor     .10000E-03    98.577        .21087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1511        29.273        .91011E-05   -1.5353    
   7  Prefactor     .10000E-03    3.1406        .27591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .74302        .13269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.3750        1.8333        .21833E-05   -1.5203    
  11  Prefactor     18.125        20.294        .37634E-05   -1.4856    
  12  Prefactor     .37330        7.8200        .43041E-03   -1.5586    
  13  Prefactor     .10000E-03    28.990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1760        .45225E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2427        .41799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.8332        3.3702        .36230E-05   -1.5148    
  17  Prefactor     2.1509        1.8303        .37646E-05   -1.5415    
  18  Prefactor     2.2323        1.6680        .34396E-05   -1.5409    
  19  Prefactor     3.9588        5.1221        .77818E-05   -1.5310    
  20  norm          .32399        .25995        .14021E-04   -1.5594    
  21  norm          11.608        5.8235        .47033E-05   -1.5026    
  22  Prefactor     26.558        16.566        .15546E-04   -1.4677    
  23  Prefactor     11.138        8.4510        .24008E-04   -1.5040    
  24  Prefactor     53.423        43.915        .10978E-04   -1.4245    
  25  Normalizat    1.1669        .24191        .52522E-04   -.87631    
  26  Prefactor     .90792        .22458        .58733E-04   -.95865    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38233e-09
Minuit parameter uncertainties:
  1  5.33208e-05
  2  15.8197
  3  8.89782e-07
  4  46.0049
  5  0.00139531
  6  19.2209
  7  2.00753e-06
  8  9.49243e-06
  9  2.24765e-05
  10  1.83327
  11  20.3018
  12  3.41719
  13  0.000210464
  14  7.99859e-06
  15  0.000254219
  16  3.37026
  17  1.83039
  18  1.668
  19  5.12266
  20  0.259956
  21  5.82378
  22  16.5691
  23  8.45188
  24  43.9419
  25  0.242145
  26  0.224806
Done.

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

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.733e-01  3.417e+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:  9.079e-01  2.248e-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.167e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/262137/likelihoodResults_519004801_519264001_4FGL_J1200.7+2008_daily_bin1079.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) = 6362.45044937
delta logL = 0.00721980136132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6362.45042429
delta logL = 0.00724487726256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37335       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9212       1.0000          .0000       10.000    
     3 'Normalizat'    1.1638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90945       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=   6362.450     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      249 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38720        11.193        .35591E-01    .10821E-02
   2  Index         2.9038        1.7288        .50000        .42610E-05
   3  Normalizat    1.1638        .12117E-01    .59452E-01   -.17880E-04
   4  Prefactor     .90938        .12180E-01    .66345E-01    .26004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.387196
  Index      = 2.90378
  Normalizat = 1.16384
  Prefactor  = 0.909383
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.450     FROM HESSE     STATUS=OK            35 CALLS      284 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38720        12.220        .20856E-02   -1.5584    
   2  Index         2.9038        6.4519        .12175E-01   -.43261    
   3  Normalizat    1.1638        .22371        .26293E-03   -.87728    
   4  Prefactor     .90938        .22253        .29346E-03   -.95814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77026e-08
Minuit parameter uncertainties:
  1  4.35083
  2  5.17249
  3  0.223894
  4  0.222757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262137': 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) = 6362.45040636
delta logL = 0.00726280512208

Extracting fit parameters...

4FGL J1200.7+2008
   Spectrum: PowerLaw
281    Prefactor:  3.872e-01  4.351e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.904e+00  5.172e+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:  9.094e-01  2.228e-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.164e+00  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/262137/cmap_HighResolution_519004801_519264001_4FGL_J1200.7+2008_daily_bin1079.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-09-04 21:00:10.314437', job_id='262137', GAL2='0.91', fit_tolerance='1e-08', EG2='1.16', EG='1.17', time_epoch_completed='1630814410.31', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='7.26e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1079' AND source_name='4FGL J1200.7+2008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:00:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 262137: <4FGL_J1200.7+2008_daily_bin1079> in cluster <slac> Done

Job <4FGL_J1200.7+2008_daily_bin1079> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 20:45:29 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:45: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:45:30 2021
Terminated at Sat Sep  4 21:00:11 2021
Results reported at Sat Sep  4 21:00:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.7+2008_daily_bin1079 180.187 20.1354 519004801 519264001 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 :                                   858.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

