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


Performing analysis on: 4FGL_J1205.7-2635_daily_bin1581
RA = 181.432, Dec = -26.5946
tmin = 649123201, tmax = 649382401
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='319960', job_status='RUN', time_executed='2021-09-04 23:46:00.920025', time_epoch_executed='1630824360.92' WHERE source_name='4FGL J1205.7-2635' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319960

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319960/ft1_4FGL_J1205.7-2635_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319960/ft1_4FGL_J1205.7-2635_daily_bin1581.fits outfile=/scratch/kocevski/319960/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1581.fits ra=181.432 dec=-26.5946 rad=12.0 tmin=649123201.0 tmax=649382401.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 2.99
user 2.76
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.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/319960/ft1_filteredMKT_4FGL_J1205.7-2635_daily_bin1581.fits evtable="EVENTS" outfile="/scratch/kocevski/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/319960/ltcube_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.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/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits
.....................!
real 12.56
user 12.21
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/319960/ltcube_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.fits outfile=/scratch/kocevski/319960/expmap_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.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/319960/ltcube_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.fits
.....................!
real 190.62
user 185.09
sys 4.23

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

Setting source of interest to:
4FGL J1205.7-2635 @ 181.432 -26.5946

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.fits scfile=/scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits outfile=/scratch/kocevski/319960/cmap_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.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.432 yref=-26.5946 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.fits scfile=/scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits outfile=/scratch/kocevski/319960/cmap_HighResolution_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.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.432 yref=-26.5946 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/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319960/Model_4FGL_J1205.7-2635_daily_bin1581.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/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.fits.....................!
real 90.52
user 88.34
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.fits', '/scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits', expMap='/scratch/kocevski/319960/expmap_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.fits', expCube='/scratch/kocevski/319960/ltcube_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/319960/Model_4FGL_J1205.7-2635_daily_bin1581.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1205.7-2635'

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  2.173e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.083e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/319960/ft1_filtered_4FGL_J1205.7-2635_daily_bin1581.fits
Spacecraft file(s): /scratch/kocevski/319960/ft2_4FGL_J1205.7-2635_daily_bin1581.fits
Exposure map: /scratch/kocevski/319960/expmap_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.fits
Exposure cube: /scratch/kocevski/319960/ltcube_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/319960/Model_4FGL_J1205.7-2635_daily_bin1581.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) = 10752.5209074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    9.8735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9631       1.0000         .10000E-03   10000.    
     4 'norm      '    .61723       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9205       1.0000         .10000E-03   10000.    
    10 'norm      '    3.4939       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1843       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3581       1.0000         .10000E-03   10000.    
    19 'norm      '    .53031       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26841E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5812       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10752.51     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2030 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8824       -.26344E-06** at limit **
   2  Prefactor     9.8737        8.4840        .89760E-07    .32377E-05
   3  Prefactor     6.9742        61.124       -.45140E-05   -.43590E-05
   4  norm          .61737        1.2264        .33931E-06    .16622E-03
   5  Prefactor     22.345        12.456        .15414E-06    .10280E-05
   6  Prefactor     .10000E-03    1.1945       -.71222E-08** at limit **
   7  Prefactor     .10000E-03    9.0027        .34768E-06** at limit **
   8  norm          .10000E-03    4.5631        .38709E-07** at limit **
   9  Prefactor     5.9206        7.9630       -.34917E-06   -.81764E-06
  10  norm          3.4939        3.5265        .14201E-05   -.24731E-04
  11  Prefactor     .10000E-03    2.9463        .17120E-07** at limit **
  12  Prefactor     .10000E-03    17.446        .10677E-06** at limit **
  13  Prefactor     .10000E-03    3.7005       -.41172E-07** at limit **
  14  Prefactor     .10000E-03    6.5110       -.13380E-06** at limit **
  15  Prefactor     .10000E-03    9.5209        .49663E-06** at limit **
  16  Prefactor     5.1906        35.112       -.25792E-05   -.48257E-05
  17  Prefactor     10.120        14.071        .18022E-06    .21248E-05
  18  Prefactor     5.3581        5.7707       -.29256E-08   -.28501E-04
  19  norm          .53068        .59871       -.51173E-07   -.67127E-03
  20  Prefactor     .10000E-03    388.62        .22174E-04** at limit **
  21  Normalizat    1.5812        .18437       -.55185E-06   -.68527E-04
  22  Prefactor     .76556        .87060E-01    .10229E-06   -.15191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.87368
  Prefactor  = 6.97417
  norm       = 0.617375
  Prefactor  = 22.3448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.92062
  norm       = 3.49393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.19061
  Prefactor  = 10.12
  Prefactor  = 5.35811
  norm       = 0.530676
  Prefactor  = 0.000100002
  Normalizat = 1.58121
  Prefactor  = 0.765556
 **********
 **   18 **HESSE 
 **********

 FCN=   10752.51     FROM HESSE     STATUS=OK           346 CALLS     2376 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.8737        8.4935        .12753E-03   -1.5079    
   3  Prefactor     6.9742        60.264        .15203E-03   -1.5180    
   4  norm          .61737        1.1954        .15100E-03   -1.5551    
   5  Prefactor     22.345        12.457        .42368E-03   -1.4762    
   6  Prefactor     .10000E-03    1.1998        .11065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.5647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9206        7.9574        .82518E-03   -1.5221    
  10  norm          3.4939        3.5244        .88121E-03   -1.5334    
  11  Prefactor     .10000E-03    3.0415        .34730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1906        34.972        .17655E-03   -1.5252    
  17  Prefactor     10.120        14.073        .12596E-03   -1.5072    
  18  Prefactor     5.3581        5.7660        .17362E-03   -1.5245    
  19  norm          .53068        .53088        .82276E-03   -1.5562    
  20  Prefactor     .10000E-03    386.86        .21436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5812        .22021        .29043E-03   -.75521    
  22  Prefactor     .76556        .10438        .19129E-03   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80512e-10
Minuit parameter uncertainties:
  1  4.05123e-07
  2  8.49455
  3  41.0573
  4  1.19546
  5  12.4581
  6  2.16801e-07
  7  1.2175e-06
  8  5.52578e-07
  9  7.95877
  10  3.52462
  11  7.55981e-07
  12  1.28504e-05
  13  8.59269e-07
  14  2.5273e-07
  15  5.29417e-05
  16  26.969
  17  14.0774
  18  5.76661
  19  0.530886
  20  0.00190748
  21  0.220343
  22  0.104407
Done.

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

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  7.560e-07  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.529e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.083e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.656e-01  1.044e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.581e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.432 -26.595
Photon Flux Upper Limit: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/319960/likelihoodResults_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.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) = 10752.5081144
delta logL = -0.00156932615937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10752.5065454
delta logL = -3.06707079289e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5139       1.0000          .0000       10.000    
     3 'Normalizat'    1.5811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10752.51     FROM MIGRAD    STATUS=FAILED        85 CALLS      242 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10068E-03    165.87        .35041E-03** at limit **
   2  Index         2.4716        5.6562        .50000        .30955E-04
   3  Normalizat    1.5812        .36111E-01    .29043E-03    .34918E-03
   4  Prefactor     .76556        .17392E-01    .19129E-03    .68998E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10752.51     FROM SIMPLEX   STATUS=PROGRESS     145 CALLS      387 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10029E-03    165.87        .25479E-03** at limit **
   2  Index         2.4714        5.6562        .76695E-04    .30955E-04
   3  Normalizat    1.5812        .36111E-01    .17566E-05    .34918E-03
   4  Prefactor     .76556        .17392E-01    .69128E-06    .68998E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10752.51     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      433 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    706.82        .70083E-04** at limit **
   2  Index         2.3350        8.8322        .50000       -.15766E-06
   3  Normalizat    1.5812        .13281        .58087E-04    .14233E-03
   4  Prefactor     .76556        .63920E-01    .38258E-04    .26780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33495
  Normalizat = 1.58121
  Prefactor  = 0.765557
 **********
 **   18 **HESSE 
 **********

 FCN=   10752.51     FROM HESSE     STATUS=OK            29 CALLS      462 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4459        .14017E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3350        8.6435        .50000       -.56215    
   3  Normalizat    1.5812        .21546        .11617E-04   -.75521    
   4  Prefactor     .76556        .10381        .76516E-05   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0478e-11
Minuit parameter uncertainties:
  1  1.43565e-05
  2  69.0646
  3  0.215582
  4  0.103832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319960': 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) = 10752.5065441
delta logL = 9.69213942881e-07

Extracting fit parameters...

4FGL J1205.7-2635
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.436e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.335e+00  6.906e+01  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  7.083e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  7.656e-01  1.038e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.581e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.432 -26.595

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/319960/cmap_HighResolution_649123201_649382401_4FGL_J1205.7-2635_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-05 00:00:36.863710', job_id='319960', GAL2='0.77', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630825236.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='9.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1581' AND source_name='4FGL J1205.7-2635' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:00:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 319960: <4FGL_J1205.7-2635_daily_bin1581> in cluster <slac> Done

Job <4FGL_J1205.7-2635_daily_bin1581> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 23:45:49 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:45:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:45:51 2021
Terminated at Sun Sep  5 00:00:37 2021
Results reported at Sun Sep  5 00:00:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1205.7-2635_daily_bin1581 181.432 -26.5946 649123201 649382401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1205.7-2635 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   871.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

