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


Performing analysis on: 4FGL_J1204.2-0709_daily_bin1425
RA = 181.074, Dec = -7.1627
tmin = 608688001, tmax = 608947201
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='302472', job_status='RUN', time_executed='2021-09-04 22:53:25.569913', time_epoch_executed='1630821205.57' WHERE source_name='4FGL J1204.2-0709' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302472

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302472/ft1_4FGL_J1204.2-0709_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302472/ft1_4FGL_J1204.2-0709_daily_bin1425.fits outfile=/scratch/kocevski/302472/ft1_filteredMKT_4FGL_J1204.2-0709_daily_bin1425.fits ra=181.074 dec=-7.1627 rad=12.0 tmin=608688001.0 tmax=608947201.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.04
user 2.83
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.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/302472/ft1_filteredMKT_4FGL_J1204.2-0709_daily_bin1425.fits evtable="EVENTS" outfile="/scratch/kocevski/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/302472/ltcube_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.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/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits
.....................!
real 13.72
user 13.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/302472/ltcube_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.fits outfile=/scratch/kocevski/302472/expmap_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.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/302472/ltcube_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.fits
.....................!
real 189.70
user 184.99
sys 4.34

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

Setting source of interest to:
4FGL J1204.2-0709 @ 181.074 -7.1627

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.fits scfile=/scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits outfile=/scratch/kocevski/302472/cmap_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.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=181.074 yref=-7.1627 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/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.fits scfile=/scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits outfile=/scratch/kocevski/302472/cmap_HighResolution_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.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=181.074 yref=-7.1627 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/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302472/Model_4FGL_J1204.2-0709_daily_bin1425.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/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.fits......................!
real 34.10
user 30.18
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.fits', '/scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits', expMap='/scratch/kocevski/302472/expmap_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.fits', expCube='/scratch/kocevski/302472/ltcube_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/302472/Model_4FGL_J1204.2-0709_daily_bin1425.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1204.2-0709'

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  9.328e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/302472/ft1_filtered_4FGL_J1204.2-0709_daily_bin1425.fits
Spacecraft file(s): /scratch/kocevski/302472/ft2_4FGL_J1204.2-0709_daily_bin1425.fits
Exposure map: /scratch/kocevski/302472/expmap_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.fits
Exposure cube: /scratch/kocevski/302472/ltcube_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/302472/Model_4FGL_J1204.2-0709_daily_bin1425.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) = 2361.07819375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    30.242       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0767       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.8821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.682       1.0000         .10000E-03   10000.    
    12 'Prefactor '    96.405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3606       1.0000         .10000E-03   10000.    
    16 'Prefactor '    131.08       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.398       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5838       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    52.645       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .55266       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.704       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.075       1.0000         .10000E-03   10000.    
    29 'Prefactor '    154.46       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .53018       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .89945       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2361.077     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     4775 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6116        .70638E-07** at limit **
   2  Prefactor     .10000E-03    95.990        .13975E-06** at limit **
   3  norm          .10000E-03    7.8375        .29360E-06** at limit **
   4  Prefactor     .10000E-03    7.7795        .21620E-05** at limit **
   5  Prefactor     .10000E-03    14.550        .13386E-06** at limit **
   6  norm          30.269        28.746       -.74343E-06   -.89643E-04
   7  Prefactor     9.0777        4.3083        .25082E-06   -.54936E-04
   8  Prefactor     .10000E-03    15.866        .26623E-06** at limit **
   9  Prefactor     .10000E-03    43.167        .76982E-09** at limit **
  10  norm          9.8855        15.841       -.44687E-06    .10531E-04
  11  Prefactor     17.688        13.038       -.38437E-06    .31113E-04
  12  Prefactor     96.403        78.823       -.34559E-06    .13008E-04
  13  Prefactor     .10000E-03    15.748        .44212E-07** at limit **
  14  Prefactor     7.2598        804.13       -.52057E-05   -.60330E-05
  15  Prefactor     5.3610        9.0963        .32227E-05   -.11068E-04
  16  Prefactor     131.12        64.259       -.73321E-06    .16750E-04
  17  Prefactor     .10000E-03    61.572       -.18176E-05** at limit **
  18  Prefactor     .10000E-03    64.045       -.14224E-06** at limit **
  19  Prefactor     69.399        55.138       -.11904E-06   -.19667E-05
  20  Prefactor     5.5852        19.681        .66030E-06   -.65033E-06
  21  norm          .10000E-03    2.0017        .28899E-07** at limit **
  22  norm          52.644        59.044       -.72641E-07    .23823E-05
  23  Prefactor     .10000E-03    24.094        .17810E-07** at limit **
  24  norm          .55288        .83085        .68661E-07    .12439E-03
  25  Prefactor     16.697        15.018       -.53578E-07    .60447E-05
  26  Prefactor     .10000E-03    17.332        .10680E-06** at limit **
  27  Prefactor     .10000E-03    89.459       -.32281E-07** at limit **
  28  Prefactor     14.072        24.059        .17136E-06    .44623E-05
  29  Prefactor     154.38        212.28       -.30057E-06   -.62049E-05
  30  Normalizat    .52982        .40805       -.74894E-05   -.67626E-05
  31  Prefactor     .89962        .26818        .28564E-05   -.74581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.2694
  Prefactor  = 9.07766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.88547
  Prefactor  = 17.6882
  Prefactor  = 96.4032
  Prefactor  = 0.0001
  Prefactor  = 7.25983
  Prefactor  = 5.36096
  Prefactor  = 131.12
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.3988
  Prefactor  = 5.58523
  norm       = 0.0001
  norm       = 52.6441
  Prefactor  = 0.0001
  norm       = 0.552882
  Prefactor  = 16.6968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.072
  Prefactor  = 154.377
  Normalizat = 0.529818
  Prefactor  = 0.89962
 **********
 **   18 **HESSE 
 **********

 FCN=   2361.077     FROM HESSE     STATUS=OK           616 CALLS     5391 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6169        .76692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    96.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.9627        .13286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0195        .26438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.576        .18106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.269        28.682        .72858E-04   -1.4607    
   7  Prefactor     9.0777        4.3060        .31547E-03   -1.5105    
   8  Prefactor     .10000E-03    15.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.8855        15.798        .12747E-03   -1.5079    
  11  Prefactor     17.688        13.005        .95247E-04   -1.4867    
  12  Prefactor     96.403        78.865        .40937E-04   -1.3741    
  13  Prefactor     .10000E-03    15.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2598        827.10        .14617E-03   -1.5169    
  15  Prefactor     5.3610        9.1003        .86787E-03   -1.5245    
  16  Prefactor     131.12        63.892        .35169E-04   -1.3413    
  17  Prefactor     .10000E-03    61.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     69.399        54.941        .48185E-04   -1.4040    
  20  Prefactor     5.5852        19.385        .17001E-03   -1.5235    
  21  norm          .10000E-03    2.0030        .66974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          52.644        59.162        .55278E-04   -1.4256    
  23  Prefactor     .10000E-03    24.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .55288        .77954        .49439E-03   -1.5559    
  25  Prefactor     16.697        15.018        .97996E-04   -1.4891    
  26  Prefactor     .10000E-03    17.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    89.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.072        24.008        .10676E-03   -1.4958    
  29  Prefactor     154.38        212.28        .16218E-03   -1.3217    
  30  Normalizat    .52982        .42252        .42730E-03   -1.1105    
  31  Prefactor     .89962        .28548        .23774E-03   -.96154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50398e-11
Minuit parameter uncertainties:
  1  2.10115e-06
  2  9.94347e-05
  3  6.3964e-06
  4  3.28997e-05
  5  1.72141e-05
  6  28.6954
  7  4.30614
  8  1.01573e-05
  9  7.5667e-05
  10  15.8051
  11  13.0074
  12  78.9508
  13  1.24357e-05
  14  157.258
  15  9.10265
  16  63.9255
  17  0.000151305
  18  5.46874e-05
  19  54.981
  20  19.4071
  21  2.62892e-07
  22  59.2278
  23  1.81173e-05
  24  0.779552
  25  15.0215
  26  1.47857e-05
  27  1.09317e-05
  28  24.0248
  29  213.344
  30  0.425114
  31  0.28596
Done.

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

Extracting fit parameters...

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.513e-04  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  8.996e-01  2.860e-01  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  5.298e-01  4.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.074 -7.163
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302472/likelihoodResults_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.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) = 2361.07732761
delta logL = -7.71441777943e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2361.07725079
delta logL = -3.26845565723e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2361.077     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      235 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.972        .90712E-02** at limit **
   2  Index         2.0655        7.9738        .50000        .26826E-05
   3  Normalizat    .52982        .75332E-02    .96400E-01    .11286E-04
   4  Prefactor     .89962        .54046E-02    .45000E-01    .57805E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06552
  Normalizat = 0.529816
  Prefactor  = 0.899622
 **********
 **   18 **HESSE 
 **********

 FCN=   2361.077     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    213.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0655        5.9727        .50000       -.62722    
   3  Normalizat    .52982        .17441E-01    .42733E-03   -1.1105    
   4  Prefactor     .89962        .12551E-01    .23774E-03   -.96154    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8031e-08
Minuit parameter uncertainties:
  1  0.000282377
  2  206.421
  3  0.0174415
  4  0.0125515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302472': 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): 102
logL (Free Index) = 2361.07725054
delta logL = -7.70414771978e-08

Extracting fit parameters...

4FGL J1204.2-0709
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.824e-04  1.000e-04  1.000e+04 ( 1.000e-14)
309        Index:  2.066e+00  2.064e+02  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  2.911e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  8.996e-01  1.255e-02  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  5.298e-01  1.744e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.074 -7.163

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/302472/cmap_HighResolution_608688001_608947201_4FGL_J1204.2-0709_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', job_status='DONE', photon_flux_upper_limit='1.72e-07', time_completed='2021-09-04 23:05:45.344260', job_id='302472', GAL2='0.90', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1630821945.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-7.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1425' AND source_name='4FGL J1204.2-0709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:05:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 302472: <4FGL_J1204.2-0709_daily_bin1425> in cluster <slac> Done

Job <4FGL_J1204.2-0709_daily_bin1425> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 22:50:46 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:50:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:50:48 2021
Terminated at Sat Sep  4 23:05:46 2021
Results reported at Sat Sep  4 23:05:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.2-0709_daily_bin1425 181.074 -7.1627 608688001 608947201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1204.2-0709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   559.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             235.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

