/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 108 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 = 7413
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.7+1821_daily_bin32
RA = 351.436, Dec = 18.3654
tmin = 247622401, tmax = 247881601
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='880405', job_status='RUN', time_executed='2021-09-29 18:17:32.171620', time_epoch_executed='1632964652.17' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880405/ft1_4FGL_J2325.7+1821_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880405/ft1_4FGL_J2325.7+1821_daily_bin32.fits outfile=/scratch/kocevski/880405/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin32.fits ra=351.436 dec=18.3654 rad=12.0 tmin=247622401.0 tmax=247881601.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 1.42
user 1.27
sys 0.14

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.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/880405/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/880405/ltcube_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.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/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits
.....................!
real 12.61
user 12.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/880405/ltcube_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.fits outfile=/scratch/kocevski/880405/expmap_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.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/880405/ltcube_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.fits
.....................!
real 189.38
user 185.10
sys 3.96

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

Setting source of interest to:
4FGL J2325.7+1821 @ 351.436 18.3654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits scfile=/scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits outfile=/scratch/kocevski/880405/cmap_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.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=351.436 yref=18.3654 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits scfile=/scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits outfile=/scratch/kocevski/880405/cmap_HighResolution_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.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=351.436 yref=18.3654 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880405/Model_4FGL_J2325.7+1821_daily_bin32.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/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits.....................!
real 100.39
user 99.05
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits', '/scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits', expMap='/scratch/kocevski/880405/expmap_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.fits', expCube='/scratch/kocevski/880405/ltcube_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/880405/Model_4FGL_J2325.7+1821_daily_bin32.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.7+1821'

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  3.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/880405/ft1_filtered_4FGL_J2325.7+1821_daily_bin32.fits
Spacecraft file(s): /scratch/kocevski/880405/ft2_4FGL_J2325.7+1821_daily_bin32.fits
Exposure map: /scratch/kocevski/880405/expmap_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.fits
Exposure cube: /scratch/kocevski/880405/ltcube_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/880405/Model_4FGL_J2325.7+1821_daily_bin32.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8908.34417864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10723E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4709       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1391       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.194       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8633       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.959       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7524       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4295       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41552       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0448       1.0000         .10000E-03   10000.    
    17 'norm      '    42.986       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.680       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.191       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97073       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8908.271     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2194 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2401       -.22004E-06** at limit **
   2  Prefactor     5.4717        8.6270       -.69645E-06   -.10133E-03
   3  Prefactor     .10000E-03    4.3583        .24665E-05** at limit **
   4  norm          2.1395        2.0574       -.13103E-07   -.46849E-03
   5  Prefactor     44.196        37.668        .23103E-05   -.13712E-04
   6  Prefactor     2.8609        12.298       -.35148E-05   -.19131E-03
   7  Prefactor     31.962        23.344        .37729E-05   -.20827E-04
   8  Prefactor     2.7522        .29812       -.51364E-07    .27683E-03
   9  Prefactor     .10000E-03    2.4925        .91292E-08** at limit **
  10  Prefactor     3.4298        6.0711       -.58654E-06   -.43717E-03
  11  Prefactor     .10000E-03    7.6739        .18190E-05** at limit **
  12  Prefactor     .10000E-03    8.5133       -.38622E-05** at limit **
  13  Prefactor     .10000E-03    16.345        .93490E-06** at limit **
  14  Prefactor     .41559        4.0169        .21366E-05   -.44552E-03
  15  Prefactor     .10000E-03    11.506        .75364E-06** at limit **
  16  Prefactor     6.0320        18.946       -.25622E-04   -.18329E-03
  17  norm          42.984        14.277       -.46051E-06   -.36703E-04
  18  Prefactor     22.680        11.003        .57257E-06   -.43027E-04
  19  Prefactor     19.186        21.059       -.62125E-05   -.99821E-05
  20  norm          .10000E-03    7.8390        .94481E-06** at limit **
  21  Prefactor     .10000E-03    4.3367       -.26426E-05** at limit **
  22  Normalizat    .97087        .21509        .33895E-05   -.12971E-03
  23  Prefactor     1.0310        .12355        .30611E-06    .67734E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.47173
  Prefactor  = 0.0001
  norm       = 2.13948
  Prefactor  = 44.1963
  Prefactor  = 2.86092
  Prefactor  = 31.9624
  Prefactor  = 2.75224
  Prefactor  = 0.0001
  Prefactor  = 3.42978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.415589
  Prefactor  = 0.0001
  Prefactor  = 6.03196
  norm       = 42.9836
  Prefactor  = 22.68
  Prefactor  = 19.1857
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.970865
  Prefactor  = 1.03096
 **********
 **   18 **HESSE 
 **********

 FCN=   8908.271     FROM HESSE     STATUS=OK           376 CALLS     2570 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8554        .19791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4717        8.5499        .17179E-03   -1.5240    
   3  Prefactor     .10000E-03    4.3669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1395        2.0325        .12412E-03   -1.5415    
   5  Prefactor     44.196        37.750        .60307E-04   -1.4377    
   6  Prefactor     2.8609        12.177        .24024E-03   -1.5370    
   7  Prefactor     31.962        23.347        .70878E-04   -1.4577    
   8  Prefactor     2.7522        .29944        .15561E-04   -1.5376    
   9  Prefactor     .10000E-03    2.4945        .14552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4298        6.0786        .21842E-03   -1.5338    
  11  Prefactor     .10000E-03    7.7276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .41559        11.381        .34437E-02   -1.5579    
  15  Prefactor     .10000E-03    11.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0320        18.760        .16331E-03   -1.5217    
  17  norm          42.984        14.273        .61145E-04   -1.4396    
  18  Prefactor     22.680        11.028        .84108E-04   -1.4755    
  19  Prefactor     19.186        21.034        .91428E-04   -1.4832    
  20  norm          .10000E-03    7.8531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .97087        .24497        .36788E-03   -.94013    
  23  Prefactor     1.0310        .14402        .21505E-03   -.91705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95861e-10
Minuit parameter uncertainties:
  1  6.62541e-05
  2  8.55184
  3  6.6374e-06
  4  2.03259
  5  37.7704
  6  11.8083
  7  23.3538
  8  0.299443
  9  1.10546e-06
  10  6.0797
  11  2.17608e-05
  12  5.70632e-06
  13  3.11694e-05
  14  4.35011
  15  1.91709e-05
  16  18.7784
  17  14.2744
  18  11.0291
  19  21.0425
  20  9.01238e-06
  21  3.14953e-07
  22  0.245256
  23  0.14407
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  6.032e+00  1.878e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.031e+00  1.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  9.709e-01  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 351.436 18.365
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/880405/likelihoodResults_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.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) = 8908.25051725
delta logL = 0.0208762933908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8908.24467678
delta logL = 0.0267167626625

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8908.245     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      219 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2073        379.83        .49003E-02   -.15629E-03
   2  Index         2.8239        6.4102        .22551        .13334E-04
   3  Normalizat    .96364        .44560E-01    .83378E-01   -.37774E-03
   4  Prefactor     1.0338        .26577E-01    .40987E-01   -.57913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.2073
  Index      = 2.82392
  Normalizat = 0.963643
  Prefactor  = 1.03376
 **********
 **   18 **HESSE 
 **********

 FCN=   8908.245     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2073        47.283        .19601E-03   -1.5298    
   2  Index         2.8239        2.9929        .13716E-01   -.45028    
   3  Normalizat    .96364        .23951        .36913E-03   -.94259    
   4  Prefactor     1.0338        .14327        .21480E-03   -.91613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07332e-10
Minuit parameter uncertainties:
  1  28.2366
  2  3.27401
  3  0.239773
  4  0.143323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880405': 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) = 8908.2446731
delta logL = 0.0267204427619

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  4.207e+00  2.824e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.824e+00  3.274e+00  0.000e+00  1.000e+01 (-1.000e+00)
423        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.034e+00  1.433e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  9.636e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 351.436 18.365

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/880405/cmap_HighResolution_247622401_247881601_4FGL_J2325.7+1821_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-29 18:30:21.092966', job_id='880405', GAL2='1.03', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1632965421.09', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.67e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='32' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:30:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 880405: <4FGL_J2325.7+1821_daily_bin32> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin32> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:15:33 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 18:15:34 2021
Terminated at Wed Sep 29 18:30:21 2021
Results reported at Wed Sep 29 18:30:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin32 351.436 18.3654 247622401 247881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.7+1821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   768.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

