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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin848
RA = 160.805, Dec = 24.146
tmin = 459129601, tmax = 459388801
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='75692', job_status='RUN', time_executed='2021-09-02 09:04:44.956975', time_epoch_executed='1630598684.96' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75692/ft1_4FGL_J1043.2+2408_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75692/ft1_4FGL_J1043.2+2408_daily_bin848.fits outfile=/scratch/kocevski/75692/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin848.fits ra=160.805 dec=24.146 rad=12.0 tmin=459129601.0 tmax=459388801.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.91
user 3.69
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.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/75692/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/75692/ltcube_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.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/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits
.....................!
real 17.50
user 16.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/75692/ltcube_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.fits outfile=/scratch/kocevski/75692/expmap_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.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/75692/ltcube_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.fits
.....................!
real 193.99
user 187.17
sys 4.87

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

Setting source of interest to:
4FGL J1043.2+2408 @ 160.805 24.146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.fits scfile=/scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits outfile=/scratch/kocevski/75692/cmap_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.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=160.805 yref=24.146 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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.fits scfile=/scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits outfile=/scratch/kocevski/75692/cmap_HighResolution_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.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=160.805 yref=24.146 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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75692/Model_4FGL_J1043.2+2408_daily_bin848.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/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.fits.....................!
real 51.64
user 50.26
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.fits', '/scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits', expMap='/scratch/kocevski/75692/expmap_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.fits', expCube='/scratch/kocevski/75692/ltcube_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75692/Model_4FGL_J1043.2+2408_daily_bin848.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1043.2+2408'

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.079e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75692/ft1_filtered_4FGL_J1043.2+2408_daily_bin848.fits
Spacecraft file(s): /scratch/kocevski/75692/ft2_4FGL_J1043.2+2408_daily_bin848.fits
Exposure map: /scratch/kocevski/75692/expmap_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.fits
Exposure cube: /scratch/kocevski/75692/ltcube_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75692/Model_4FGL_J1043.2+2408_daily_bin848.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) = 5478.60919332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    91.275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.702       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8464       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11045E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5478.608     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1884 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.208        8.7135       -.91450E-06   -.12573E-02
   2  Prefactor     .10000E-03    1.3557       -.46870E-07** at limit **
   3  norm          .10000E-03    4.0245       -.35201E-07** at limit **
   4  Prefactor     .10000E-03    14.941       -.18688E-05** at limit **
   5  Prefactor     91.266        69.099       -.79392E-05    .12549E-03
   6  Prefactor     .10000E-03    8.2537       -.11093E-05** at limit **
   7  Prefactor     .10000E-03    1.3416       -.15145E-06** at limit **
   8  Prefactor     .10000E-03    4.6460        .10756E-06** at limit **
   9  Prefactor     .10000E-03    14.763        .19167E-05** at limit **
  10  Prefactor     .10000E-03    112.95       -.17308E-05** at limit **
  11  Prefactor     30.702        14.263        .47462E-06   -.10129E-03
  12  Prefactor     .10000E-03    6.6473        .75100E-07** at limit **
  13  Prefactor     .10000E-03    20.871       -.11108E-05** at limit **
  14  Prefactor     6.8464        4.3214       -.27589E-05    .53407E-03
  15  Prefactor     .10000E-03    3.7159        .22513E-06** at limit **
  16  norm          .10000E-03    7.6687        .98931E-06** at limit **
  17  Prefactor     .10002E-03    7.7572       -.19455E-06** at limit **
  18  Normalizat    1.0894        .18950        .26402E-05   -.36624E-04
  19  Prefactor     .90246        .19201       -.22405E-06    .10464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2082
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.2656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 30.7024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.84636
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  Normalizat = 1.08943
  Prefactor  = 0.902457
 **********
 **   18 **HESSE 
 **********

 FCN=   5478.608     FROM HESSE     STATUS=OK           260 CALLS     2144 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.208        9.0440        .53140E-03   -1.4954    
   2  Prefactor     .10000E-03    2.2937        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.0423        .14499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     91.266        68.628        .42061E-04   -1.3794    
   6  Prefactor     .10000E-03    8.4474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3719        .83636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6877        .15574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.084        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    117.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.702        14.216        .72311E-04   -1.4599    
  12  Prefactor     .10000E-03    6.6684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8464        4.3263        .11464E-03   -1.5185    
  15  Prefactor     .10000E-03    3.7619        .13928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.7079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    58.522        .39833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0894        .21742        .23482E-03   -.90092    
  19  Prefactor     .90246        .22168        .26714E-03   -.96055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5403e-09
Minuit parameter uncertainties:
  1  9.04488
  2  3.09107e-08
  3  4.01072e-06
  4  4.32962e-05
  5  68.6878
  6  1.85259e-05
  7  3.28053e-06
  8  2.29285e-05
  9  0.000202211
  10  0.000395981
  11  14.2172
  12  7.86592e-05
  13  5.33425e-05
  14  4.32647
  15  1.0774e-05
  16  1.22092e-05
  17  0.00189268
  18  0.217603
  19  0.221906
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  3.281e-06  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.025e-01  2.219e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.089e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 7.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75692/likelihoodResults_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.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) = 5478.61140535
delta logL = -0.00346357239414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5478.6079419
delta logL = -1.22516212286e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3089       1.0000          .0000       10.000    
     3 'Normalizat'    1.0895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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=   5478.608     FROM MIGRAD    STATUS=FAILED        83 CALLS      228 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    31.264        .84294E-03** at limit **
   2  Index         2.2674        8.5782        .50000        .67667E-04
   3  Normalizat    1.0894        .21694E-01    .23482E-03    .13102E-03
   4  Prefactor     .90246        .22795E-01    .26714E-03    .10950E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5478.608     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      364 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10065E-03    31.264        .22962E-03** at limit **
   2  Index         2.2674        8.5782        .21165E-03    .67667E-04
   3  Normalizat    1.0894        .21694E-01    .29691E-05    .13102E-03
   4  Prefactor     .90246        .22795E-01    .46852E-05    .10950E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5478.608     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      407 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    184.65        .16859E-03** at limit **
   2  Index         2.0734        5.8909        .50000       -.15705E-06
   3  Normalizat    1.0894        .61126E-01    .46964E-04   -.15094E-02
   4  Prefactor     .90245        .64205E-01    .10686E-04   -.13165E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07344
  Normalizat = 1.08943
  Prefactor  = 0.902452
 **********
 **   18 **HESSE 
 **********

 FCN=   5478.608     FROM HESSE     STATUS=OK            29 CALLS      436 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2793        .33718E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0734        5.4878        .50000       -.62526    
   3  Normalizat    1.0894        .21037        .93928E-05   -.90092    
   4  Prefactor     .90245        .22096        .21371E-05   -.96055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54046e-09
Minuit parameter uncertainties:
  1  6.56755e-08
  2  59.5209
  3  0.210535
  4  0.221182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75692': 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) = 5478.60793925
delta logL = 2.53175767284e-06

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.000e-04  6.568e-08  1.000e-04  1.000e+04 ( 1.000e-12)
248        Index:  2.073e+00  5.952e+01  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  9.025e-01  2.212e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.089e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 160.805 24.146

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/75692/cmap_HighResolution_459129601_459388801_4FGL_J1043.2+2408_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.18e-08', time_completed='2021-09-02 09:14:23.641307', job_id='75692', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630599263.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='848' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 09:14:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 75692: <4FGL_J1043.2+2408_daily_bin848> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin848> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  2 09:01:23 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 09:01:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 09:01:54 2021
Terminated at Thu Sep  2 09:14:24 2021
Results reported at Thu Sep  2 09:14:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin848 160.805 24.146 459129601 459388801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1043.2+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   565.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            781 sec.

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

