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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin1599
RA = 351.436, Dec = 18.3654
tmin = 653788801, tmax = 654048001
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='888597', job_status='RUN', time_executed='2021-09-29 18:43:02.120313', time_epoch_executed='1632966182.12' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888597

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888597/ft1_4FGL_J2325.7+1821_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888597/ft1_4FGL_J2325.7+1821_daily_bin1599.fits outfile=/scratch/kocevski/888597/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin1599.fits ra=351.436 dec=18.3654 rad=12.0 tmin=653788801.0 tmax=654048001.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.85
user 3.63
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888597/ft1_filtered_4FGL_J2325.7+1821_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/888597/ltcube_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.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/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits
.....................!
real 11.88
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888597/ft1_filtered_4FGL_J2325.7+1821_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/888597/ltcube_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.fits outfile=/scratch/kocevski/888597/expmap_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.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/888597/ltcube_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.fits
.....................!
real 190.54
user 186.10
sys 4.12

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/888597/ft1_filtered_4FGL_J2325.7+1821_daily_bin1599.fits scfile=/scratch/kocevski/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits outfile=/scratch/kocevski/888597/cmap_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888597/ft1_filtered_4FGL_J2325.7+1821_daily_bin1599.fits scfile=/scratch/kocevski/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits outfile=/scratch/kocevski/888597/cmap_HighResolution_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/888597/ft1_filtered_4FGL_J2325.7+1821_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/888597/Model_4FGL_J2325.7+1821_daily_bin1599.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/888597/ft1_filtered_4FGL_J2325.7+1821_daily_bin1599.fits.....................!
real 92.40
user 90.99
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/888597/ft1_filtered_4FGL_J2325.7+1821_daily_bin1599.fits', '/scratch/kocevski/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits', expMap='/scratch/kocevski/888597/expmap_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.fits', expCube='/scratch/kocevski/888597/ltcube_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/888597/Model_4FGL_J2325.7+1821_daily_bin1599.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/888597/ft1_filtered_4FGL_J2325.7+1821_daily_bin1599.fits
Spacecraft file(s): /scratch/kocevski/888597/ft2_4FGL_J2325.7+1821_daily_bin1599.fits
Exposure map: /scratch/kocevski/888597/expmap_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.fits
Exposure cube: /scratch/kocevski/888597/ltcube_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/888597/Model_4FGL_J2325.7+1821_daily_bin1599.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) = 7986.81968939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8120       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3473       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3764       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.837       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11498E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22399       1.0000         .10000E-03   10000.    
    17 'norm      '    17.408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0293       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22472E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2196       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91900       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7985.888     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     2697 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4507        3.4832        .62937E-03   -.92489E-03
   2  Prefactor     .10000E-03    6.1078        .18142E-02** at limit **
   3  Prefactor     4.8146        12.148        .18340E-03   -.11313E-03
   4  norm          3.3473        1.8976        .90002E-04   -.32842E-05
   5  Prefactor     6.3881        46.686        .15895E-03   -.30398E-04
   6  Prefactor     .10000E-03    6.9272        .18142E-02** at limit **
   7  Prefactor     .10000E-03    7.9177        .18142E-02** at limit **
   8  Prefactor     1.2493        .23068        .16769E-04   -.80202E-03
   9  Prefactor     .10000E-03    6.0805        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.5511        .13918E-02** at limit **
  11  Prefactor     .10000E-03    6.3774        .18142E-02** at limit **
  12  Prefactor     2.2257        57.672        .27746E-03   -.86454E-05
  13  Prefactor     4.4305        38.172        .19141E-03    .10097E-04
  14  Prefactor     15.860        10.144        .10064E-03    .34792E-03
  15  Prefactor     .10011E-03    36.871        .46813E-02** at limit **
  16  Prefactor     .14723        26.682        .10065        .43699E-03
  17  norm          17.395        12.514        .95995E-04   -.61003E-03
  18  Prefactor     5.0330        9.8621        .17931E-03   -.28297E-03
  19  Prefactor     .10155E-03    25.872        .11922    ** at limit **
  20  norm          .10000E-03    12.207        .18142E-02** at limit **
  21  Prefactor     .10000E-03    13.807        .30924E-02** at limit **
  22  Normalizat    1.2196        .27533        .33116E-03   -.26935E-03
  23  Prefactor     .91901        .15131        .21438E-03   -.31381E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45071
  Prefactor  = 0.0001
  Prefactor  = 4.81458
  norm       = 3.34726
  Prefactor  = 6.38806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.2493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22566
  Prefactor  = 4.43052
  Prefactor  = 15.8598
  Prefactor  = 0.000100114
  Prefactor  = 0.147227
  norm       = 17.3952
  Prefactor  = 5.03302
  Prefactor  = 0.000101547
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.21962
  Prefactor  = 0.919009
 **********
 **   18 **HESSE 
 **********

 FCN=   7985.888     FROM HESSE     STATUS=OK           366 CALLS     3063 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4507        3.4826        .25175E-04   -1.5241    
   2  Prefactor     .10000E-03    6.1087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8146        12.146        .73358E-05   -1.5269    
   4  norm          3.3473        1.8976        .36001E-05   -1.5342    
   5  Prefactor     6.3881        46.680        .63580E-05   -1.5202    
   6  Prefactor     .10000E-03    6.9286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2493        .23066        .67077E-06   -1.5484    
   9  Prefactor     .10000E-03    6.0819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5512        .27837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2257        57.614        .11099E-04   -1.5410    
  13  Prefactor     4.4305        38.159        .76562E-05   -1.5287    
  14  Prefactor     15.860        10.104        .40257E-05   -1.4911    
  15  Prefactor     .10011E-03    37.380        .93627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14723        24.311        .10646       -1.5631    
  17  norm          17.395        12.500        .38398E-05   -1.4874    
  18  Prefactor     5.0330        9.8569        .71723E-05   -1.5259    
  19  Prefactor     .10155E-03    24.931        .12231       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.893        .61849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2196        .27557        .13247E-04   -.85999    
  23  Prefactor     .91901        .15146        .42875E-04   -.95480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65651e-09
Minuit parameter uncertainties:
  1  3.48277
  2  5.41979e-05
  3  12.1524
  4  1.8976
  5  34.5743
  6  9.83099e-06
  7  5.41404e-06
  8  0.230658
  9  1.46095e-06
  10  4.38259e-06
  11  1.3536e-05
  12  22.6715
  13  26.027
  14  10.1053
  15  0.00413719
  16  3.78408
  17  12.5022
  18  9.8601
  19  0.0124242
  20  3.07961e-05
  21  0.00030283
  22  0.2759
  23  0.151526
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.472e-01  3.784e+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

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  9.190e-01  1.515e-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:  1.220e+00  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/888597/likelihoodResults_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.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) = 7985.88763789
delta logL = 5.77343416808e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7985.88647668
delta logL = 0.00116699037335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15053       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0206       1.0000          .0000       10.000    
     3 'Normalizat'    1.2191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91913       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7985.883     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      316 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1321        58.777        .19499E-02   -.19374E-04
   2  Index         2.8631        6.4213        .99096E-02    .36207E-05
   3  Normalizat    1.2151        .26554        .33168E-03    .13412E-03
   4  Prefactor     .92007        .15005        .21425E-03    .12353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13208
  Index      = 2.86313
  Normalizat = 1.21508
  Prefactor  = 0.920067
 **********
 **   18 **HESSE 
 **********

 FCN=   7985.883     FROM HESSE     STATUS=OK            27 CALLS      343 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1321        41.186        .77996E-04   -1.5495    
   2  Index         2.8631        3.4583        .39639E-03   -.44159    
   3  Normalizat    1.2151        .26580        .13267E-04   -.86138    
   4  Prefactor     .92007        .15025        .85702E-05   -.95443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77131e-11
Minuit parameter uncertainties:
  1  13.6662
  2  3.93783
  3  0.2661
  4  0.150318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888597': 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) = 7985.88334827
delta logL = 0.00429539807465

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.132e+00  1.367e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.863e+00  3.938e+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:  9.201e-01  1.503e-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:  1.215e+00  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/888597/cmap_HighResolution_653788801_654048001_4FGL_J2325.7+1821_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.42e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-29 18:55:56.094359', job_id='888597', GAL2='0.92', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632966956.09', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.30e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1599' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 888597: <4FGL_J2325.7+1821_daily_bin1599> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin1599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 18:40:37 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:40:39 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:40:39 2021
Terminated at Wed Sep 29 18:55:56 2021
Results reported at Wed Sep 29 18:55:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin1599 351.436 18.3654 653788801 654048001 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 :                                   765.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

