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


Performing analysis on: 4FGL_J0723.5+2900_daily_bin1240
RA = 110.885, Dec = 29.0075
tmin = 560736001, tmax = 560995201
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='307384', job_status='RUN', time_executed='2021-08-27 05:04:02.782835', time_epoch_executed='1630065842.78' WHERE source_name='4FGL J0723.5+2900' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307384/ft1_4FGL_J0723.5+2900_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307384/ft1_4FGL_J0723.5+2900_daily_bin1240.fits outfile=/scratch/kocevski/307384/ft1_filteredMKT_4FGL_J0723.5+2900_daily_bin1240.fits ra=110.885 dec=29.0075 rad=12.0 tmin=560736001.0 tmax=560995201.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 6.13
user 3.57
sys 2.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.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/307384/ft1_filteredMKT_4FGL_J0723.5+2900_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.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 2.89
user 0.33
sys 2.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/307384/ltcube_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.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/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits
.....................!
real 14.06
user 11.10
sys 2.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/307384/ltcube_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.fits outfile=/scratch/kocevski/307384/expmap_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.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/307384/ltcube_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.fits
.....................!
real 193.32
user 184.96
sys 7.18

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
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 182 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0723.5+2900 @ 110.885 29.0075

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.fits scfile=/scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits outfile=/scratch/kocevski/307384/cmap_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.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=110.885 yref=29.0075 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 2.81
user 0.36
sys 2.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.fits scfile=/scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits outfile=/scratch/kocevski/307384/cmap_HighResolution_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.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=110.885 yref=29.0075 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 2.80
user 0.38
sys 2.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307384/Model_4FGL_J0723.5+2900_daily_bin1240.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
adding source IC 443
Working on...
/scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.fits.....................!
real 77.95
user 73.03
sys 4.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.fits', '/scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits', expMap='/scratch/kocevski/307384/expmap_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.fits', expCube='/scratch/kocevski/307384/ltcube_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307384/Model_4FGL_J0723.5+2900_daily_bin1240.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0723.5+2900'

4FGL J0723.5+2900
   Spectrum: PowerLaw
302    Prefactor:  1.024e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  2.672e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  5.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/307384/ft1_filtered_4FGL_J0723.5+2900_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/307384/ft2_4FGL_J0723.5+2900_daily_bin1240.fits
Exposure map: /scratch/kocevski/307384/expmap_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.fits
Exposure cube: /scratch/kocevski/307384/ltcube_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307384/Model_4FGL_J0723.5+2900_daily_bin1240.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) = 5161.65113849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.7337       1.0000         .10000E-03   10000.    
     3 'norm      '    2.9088       1.0000         .10000E-03   10000.    
     4 'norm      '    .11666E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16053E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11404E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.306       1.0000         .10000E-03   10000.    
    13 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.1178       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5161.600     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1504 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4643        8.2303       -.68181E-05    .59058E-04
   2  Prefactor     8.7363        9.2979        .14630E-05   -.19167E-04
   3  norm          2.9111        7.9038        .12274E-05   -.24513E-03
   4  norm          .10000E-03    1.2728        .12138E-06** at limit **
   5  Prefactor     20.576        16.779        .10875E-06    .61810E-04
   6  Prefactor     .10001E-03    504.78       -.70788E-04** at limit **
   7  norm          .10000E-03    1.1358       -.56009E-07** at limit **
   8  Prefactor     .10000E-03    6.3441       -.83229E-07** at limit **
   9  norm          .10000E-03    2.4807       -.25085E-07** at limit **
  10  Prefactor     .10000E-03    39.091        .29794E-04** at limit **
  11  Prefactor     .10000E-03    31.821       -.76468E-05** at limit **
  12  Prefactor     45.276        56.776       -.89218E-05   -.24827E-04
  13  norm          .10000E-03    53.783       -.76352E-04** at limit **
  14  Prefactor     .10000E-03    64.984        .64436E-04** at limit **
  15  Normalizat    1.1177        .30181        .62682E-06    .18900E-03
  16  Prefactor     1.0963        .13666        .32706E-06    .31748E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.46425
  Prefactor  = 8.73627
  norm       = 2.91112
  norm       = 0.0001
  Prefactor  = 20.5763
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.2761
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.11768
  Prefactor  = 1.09632
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.600     FROM HESSE     STATUS=OK           199 CALLS     1703 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4643        8.2330        .13780E-03   -1.5126    
   2  Prefactor     8.7363        9.2907        .13563E-03   -1.5117    
   3  norm          2.9111        7.8676        .23823E-03   -1.5367    
   4  norm          .10000E-03    4.6187        .15226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.576        16.672        .88303E-04   -1.4800    
   6  Prefactor     .10001E-03    516.09        .36412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3251        .14859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3608        .17665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.4906        .11045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.276        56.831        .59565E-04   -1.4361    
  13  norm          .10000E-03    53.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    65.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1177        .33651        .39798E-03   -.89186    
  16  Prefactor     1.0963        .15375        .18700E-03   -.89584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6091e-10
Minuit parameter uncertainties:
  1  8.23411
  2  9.29228
  3  7.87039
  4  1.98522e-05
  5  16.6753
  6  0.005218
  7  6.5217e-06
  8  4.09112e-06
  9  1.08005e-05
  10  0.000119349
  11  8.97007e-05
  12  56.8996
  13  0.000401253
  14  4.15522e-05
  15  0.337159
  16  0.153812
Done.

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

Extracting fit parameters...

4FGL J0723.5+2900
   Spectrum: PowerLaw
302    Prefactor:  2.058e+01  1.668e+01  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  2.672e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  5.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.096e+00  1.538e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.118e+00  3.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 110.885 29.008
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 1.12e-07
Energy Flux (Fixed Index): 3.41e-05 +/- 2.76e-05

TS (Fixed Index): 2.06
Ra Dec: 110.885 29.008
Photon Flux Upper Limit: 3.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307384/likelihoodResults_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5161.45874724
delta logL = 0.141553806122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5161.45857105
delta logL = 0.141729996146

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5161.459     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      265 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.124        654.68        .19973E-02    .18283E-04
   2  Index         2.3695        5.9838        .19161        .29079E-04
   3  Normalizat    1.1359        .18200        .89213E-01    .10264E-04
   4  Prefactor     1.0887        .11449        .38030E-01   -.25075E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.124
  Index      = 2.36954
  Normalizat = 1.13595
  Prefactor  = 1.08873
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.459     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.124        20.108        .79890E-04   -1.4705    
   2  Index         2.3695        .53594        .72797E-02   -.55400    
   3  Normalizat    1.1359        .33420        .39511E-03   -.88606    
   4  Prefactor     1.0887        .15356        .18752E-03   -.89828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3787e-12
Minuit parameter uncertainties:
  1  20.1136
  2  0.537371
  3  0.334829
  4  0.153622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307384': 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) = 5161.45856978
delta logL = 0.141731268264

Extracting fit parameters...

4FGL J0723.5+2900
   Spectrum: PowerLaw
302    Prefactor:  2.512e+01  2.011e+01  1.000e-04  1.000e+04 ( 1.000e-12)
303        Index:  2.370e+00  5.374e-01  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  5.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.089e+00  1.536e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.136e+00  3.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 110.885 29.008
Photon Index (Free Index): 2.37 +/- 0.54
Photon Flux (Free Index): 1.21e-07 +/- 1.05e-07
Energy Flux (Free Index): 4.13e-05 +/- 3.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/307384/cmap_HighResolution_560736001_560995201_4FGL_J0723.5+2900_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-02', comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='4.13e-05', photon_flux_error='1.12e-07', dlogl='1.42e-01', energy_flux='3.41e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-08-27 05:13:32.201748', photon_index_error2='0.54', photon_index2='2.37', ts='2.06', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='3.58e-07', energy_flux_error2='3.56e-05', EG='1.12', time_epoch_completed='1630066412.2', return_code='0', job_id='307384', GAL2='1.09', EG2='1.14', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='1.05e-07', ts2='2.32', photon_index='2.67' WHERE bin_id='1240' AND source_name='4FGL J0723.5+2900' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 05:13:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 307384: <4FGL_J0723.5+2900_daily_bin1240> in cluster <slac> Done

Job <4FGL_J0723.5+2900_daily_bin1240> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 27 05:00:40 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 05:00:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 05:00:41 2021
Terminated at Fri Aug 27 05:13:33 2021
Results reported at Fri Aug 27 05:13:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0723.5+2900_daily_bin1240 110.885 29.0075 560736001 560995201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0723.5+2900 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            773 sec.

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

