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


Performing analysis on: 4FGL_J1200.6+1229_daily_bin1295
RA = 180.173, Dec = 12.4922
tmin = 574992001, tmax = 575251201
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='255373', job_status='RUN', time_executed='2021-09-04 20:28:47.598182', time_epoch_executed='1630812527.6' WHERE source_name='4FGL J1200.6+1229' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255373/ft1_4FGL_J1200.6+1229_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255373/ft1_4FGL_J1200.6+1229_daily_bin1295.fits outfile=/scratch/kocevski/255373/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1295.fits ra=180.173 dec=12.4922 rad=12.0 tmin=574992001.0 tmax=575251201.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.29
user 5.02
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.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/255373/ft1_filteredMKT_4FGL_J1200.6+1229_daily_bin1295.fits evtable="EVENTS" outfile="/scratch/kocevski/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/255373/ltcube_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.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/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits
.....................!
real 11.82
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/255373/ltcube_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.fits outfile=/scratch/kocevski/255373/expmap_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.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/255373/ltcube_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.fits
.....................!
real 190.49
user 185.16
sys 4.95

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.6+1229 @ 180.173 12.4922

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.fits scfile=/scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits outfile=/scratch/kocevski/255373/cmap_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.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.173 yref=12.4922 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.fits scfile=/scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits outfile=/scratch/kocevski/255373/cmap_HighResolution_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.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.173 yref=12.4922 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255373/Model_4FGL_J1200.6+1229_daily_bin1295.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/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.fits.....................!
real 51.25
user 49.93
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.fits', '/scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits', expMap='/scratch/kocevski/255373/expmap_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.fits', expCube='/scratch/kocevski/255373/ltcube_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/255373/Model_4FGL_J1200.6+1229_daily_bin1295.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.6+1229'

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.077e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/255373/ft1_filtered_4FGL_J1200.6+1229_daily_bin1295.fits
Spacecraft file(s): /scratch/kocevski/255373/ft2_4FGL_J1200.6+1229_daily_bin1295.fits
Exposure map: /scratch/kocevski/255373/expmap_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.fits
Exposure cube: /scratch/kocevski/255373/ltcube_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/255373/Model_4FGL_J1200.6+1229_daily_bin1295.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) = 5242.02257513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    86.803       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.016       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.957       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.799       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0974       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .38896E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.206       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1943       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5242.018     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2519 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.566        .12336E-06** at limit **
   2  Prefactor     .10000E-03    34.536        .24136E-05** at limit **
   3  Prefactor     86.797        42.838       -.28658E-05   -.62979E-05
   4  Prefactor     .10000E-03    1.9939        .78708E-08** at limit **
   5  Prefactor     9.3081        249.75        .82021E-04    .18246E-05
   6  Prefactor     12.015        9.7471       -.82964E-06   -.13447E-04
   7  Prefactor     .10000E-03    5.1724       -.33848E-07** at limit **
   8  Prefactor     35.953        19.549        .15847E-06    .53303E-04
   9  Prefactor     .10000E-03    1.2879        .16314E-07** at limit **
  10  Prefactor     .10000E-03    113.87       -.18958E-04** at limit **
  11  Prefactor     23.795        27.425       -.21325E-05   -.14977E-04
  12  Prefactor     .10000E-03    .57641        .15883E-07** at limit **
  13  Prefactor     .10000E-03    1.0038        .17443E-07** at limit **
  14  Prefactor     .10000E-03    20.134       -.30737E-06** at limit **
  15  norm          2.0973        3.0133       -.10016E-06   -.25734E-03
  16  Prefactor     .10000E-03    15.513        .90710E-07** at limit **
  17  norm          .38900E-01    .15219       -.17348E-06   -.26665E-02
  18  norm          .10000E-03    58.135       -.16112E-04** at limit **
  19  Prefactor     .10000E-03    78.636        .30101E-04** at limit **
  20  Prefactor     .10000E-03    3.7366        .79321E-08** at limit **
  21  Prefactor     11.208        21.303        .82610E-07   -.13118E-04
  22  Normalizat    1.1941        .19363        .80688E-07    .16103E-04
  23  Prefactor     .84873        .17894       -.10904E-05    .51575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.7973
  Prefactor  = 0.0001
  Prefactor  = 9.30806
  Prefactor  = 12.0153
  Prefactor  = 0.0001
  Prefactor  = 35.9529
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09729
  Prefactor  = 0.0001
  norm       = 0.0389
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2076
  Normalizat = 1.19406
  Prefactor  = 0.848728
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.018     FROM HESSE     STATUS=OK           366 CALLS     2885 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     86.797        42.986        .43121E-04   -1.3842    
   4  Prefactor     .10000E-03    1.9948        .99844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3081        246.51        .13157E-03   -1.5098    
   6  Prefactor     12.015        9.7454        .11556E-03   -1.5015    
   7  Prefactor     .10000E-03    5.1992        .16079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.953        19.555        .66834E-04   -1.4508    
   9  Prefactor     .10000E-03    1.2997        .80216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    114.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.795        27.431        .82110E-04   -1.4732    
  12  Prefactor     .10000E-03    .57871        .53670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0209        .70812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0973        2.9924        .14460E-03   -1.5418    
  16  Prefactor     .10000E-03    15.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38900E-01    .20589        .53055E-03   -1.5669    
  18  norm          .10000E-03    58.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    78.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7420        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.208        21.317        .11968E-03   -1.5038    
  22  Normalizat    1.1941        .22581        .23495E-03   -.86786    
  23  Prefactor     .84873        .20873        .25885E-03   -.97956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13208e-10
Minuit parameter uncertainties:
  1  4.49129e-05
  2  4.14783e-05
  3  43.0016
  4  1.09325e-06
  5  96.2451
  6  9.74671
  7  7.77832e-06
  8  19.5587
  9  2.19315e-06
  10  5.21809e-06
  11  27.4458
  12  7.84297e-07
  13  1.9168e-06
  14  9.74046e-06
  15  2.9926
  16  1.09319e-06
  17  0.178757
  18  0.000114907
  19  5.21663e-07
  20  1.33365e-06
  21  21.3311
  22  0.225999
  23  0.208929
Done.

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

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  3.595e+01  1.956e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.387e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  8.487e-01  2.089e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.194e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.19
Ra Dec: 180.173 12.492
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.74e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.40e-05

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) = 5240.94233179
delta logL = 1.07559500446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5240.94203243
delta logL = 1.0758943649

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.473       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7943       1.0000          .0000       10.000    
     3 'Normalizat'    1.2234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5240.942     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.407        61.883        .13587E-02   -.16902E-05
   2  Index         1.7943        .69367        .16126        .37501E-04
   3  Normalizat    1.2234        .19029        .52610E-01    .97180E-05
   4  Prefactor     .83244        .17910        .44137E-01   -.39796E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.4065
  Index      = 1.79428
  Normalizat = 1.22336
  Prefactor  = 0.832438
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.942     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.407        30.477        .54347E-04   -1.4231    
   2  Index         1.7943        .39072        .62120E-02   -.69599    
   3  Normalizat    1.2234        .21944        .23261E-03   -.85884    
   4  Prefactor     .83244        .20776        .26105E-03   -.98543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32039e-11
Minuit parameter uncertainties:
  1  30.4861
  2  0.391402
  3  0.219608
  4  0.207957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255373': 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) = 5240.94203003
delta logL = 1.0758967697

Extracting fit parameters...

4FGL J1200.6+1229
   Spectrum: PowerLaw
299    Prefactor:  5.441e+01  3.049e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.794e+00  3.914e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.088e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  8.324e-01  2.080e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.223e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.37
Ra Dec: 180.173 12.492
Photon Index (Free Index): 1.79 +/- 0.39
Photon Flux (Free Index): 4.94e-08 +/- 3.54e-08
Energy Flux (Free Index): 6.02e-05 +/- 5.56e-05

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/255373/cmap_HighResolution_574992001_575251201_4FGL_J1200.6+1229_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.74e-08', energy_flux2='6.02e-05', photon_flux_error='4.21e-08', dlogl='1.08e+00', energy_flux='2.58e-05', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-09-04 20:39:52.848878', photon_index_error2='0.39', photon_index2='1.79', ts='8.19', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='5.56e-05', EG='1.19', time_epoch_completed='1630813192.85', return_code='0', job_id='255373', GAL2='0.83', EG2='1.22', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='3.54e-08', ts2='10.37', photon_index='2.39' WHERE bin_id='1295' AND source_name='4FGL J1200.6+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 20:39:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 255373: <4FGL_J1200.6+1229_daily_bin1295> in cluster <slac> Done

Job <4FGL_J1200.6+1229_daily_bin1295> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 20:25:33 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 20:25:34 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:25:34 2021
Terminated at Sat Sep  4 20:39:53 2021
Results reported at Sat Sep  4 20:39:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.6+1229_daily_bin1295 180.173 12.4922 574992001 575251201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.6+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            860 sec.

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

