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


Performing analysis on: 4FGL_J2325.7+1821_daily_bin48
RA = 351.436, Dec = 18.3654
tmin = 251769601, tmax = 252028801
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='880443', job_status='RUN', time_executed='2021-09-29 18:18:41.469769', time_epoch_executed='1632964721.47' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880443

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880443/ft1_4FGL_J2325.7+1821_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880443/ft2_4FGL_J2325.7+1821_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880443/ft1_4FGL_J2325.7+1821_daily_bin48.fits outfile=/scratch/kocevski/880443/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin48.fits ra=351.436 dec=18.3654 rad=12.0 tmin=251769601.0 tmax=252028801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.16
user 1.95
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880443/ft1_filtered_4FGL_J2325.7+1821_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/880443/ft2_4FGL_J2325.7+1821_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/880443/ltcube_251769601_252028801_4FGL_J2325.7+1821_daily_bin48.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/880443/ft2_4FGL_J2325.7+1821_daily_bin48.fits
.....................!
real 12.28
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880443/ft1_filtered_4FGL_J2325.7+1821_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/880443/ft2_4FGL_J2325.7+1821_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/880443/ltcube_251769601_252028801_4FGL_J2325.7+1821_daily_bin48.fits outfile=/scratch/kocevski/880443/expmap_251769601_252028801_4FGL_J2325.7+1821_daily_bin48.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/880443/ltcube_251769601_252028801_4FGL_J2325.7+1821_daily_bin48.fits
.....................!
real 190.94
user 184.87
sys 5.67

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/880443/ft1_filtered_4FGL_J2325.7+1821_daily_bin48.fits scfile=/scratch/kocevski/880443/ft2_4FGL_J2325.7+1821_daily_bin48.fits outfile=/scratch/kocevski/880443/cmap_251769601_252028801_4FGL_J2325.7+1821_daily_bin48.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880443/ft1_filtered_4FGL_J2325.7+1821_daily_bin48.fits scfile=/scratch/kocevski/880443/ft2_4FGL_J2325.7+1821_daily_bin48.fits outfile=/scratch/kocevski/880443/cmap_HighResolution_251769601_252028801_4FGL_J2325.7+1821_daily_bin48.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880443/ft1_filtered_4FGL_J2325.7+1821_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/880443/ft2_4FGL_J2325.7+1821_daily_bin48.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880443/Model_4FGL_J2325.7+1821_daily_bin48.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/880443/ft1_filtered_4FGL_J2325.7+1821_daily_bin48.fits.....................!
real 78.05
user 76.61
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2639       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14441E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5421       1.0000         .10000E-03   10000.    
     4 'norm      '    5.6184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4876       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.952       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7733       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.070       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.259       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.763       1.0000         .10000E-03   10000.    
    20 'norm      '    15.526       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1329       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87132       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93557       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=   7037.746     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2544 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2579        3.3257       -.43499E-07    .12741E-03
   2  Prefactor     .10001E-03    10.048       -.56836E-06** at limit **
   3  Prefactor     2.5219        11.165        .29673E-05    .18794E-03
   4  norm          5.6182        2.2865        .83713E-08   -.42122E-04
   5  Prefactor     3.8771        21.091        .18986E-06   -.17314E-04
   6  Prefactor     .10000E-03    6.2393        .10187E-05** at limit **
   7  Prefactor     21.787        22.497        .22998E-06    .12439E-04
   8  Prefactor     1.4876        .23251       -.18611E-09   -.20062E-03
   9  Prefactor     12.802        12.964        .20109E-06   -.30694E-05
  10  Prefactor     .10000E-03    5.5786       -.23685E-06** at limit **
  11  Prefactor     .10000E-03    7.5728        .24087E-05** at limit **
  12  Prefactor     47.162        28.020        .14748E-06   -.35328E-04
  13  Prefactor     19.952        28.563        .20854E-06    .21332E-06
  14  Prefactor     7.7744        5.6860        .95785E-06   -.14918E-02
  15  Prefactor     .10000E-03    6.8700       -.27586E-05** at limit **
  16  Prefactor     .10000E-03    10.811       -.77709E-06** at limit **
  17  norm          17.070        9.2130       -.85321E-07    .59740E-04
  18  Prefactor     11.260        7.7554        .46158E-06   -.71489E-03
  19  Prefactor     32.763        23.044       -.13961E-06   -.29486E-05
  20  norm          15.527        16.228       -.47730E-07   -.17430E-04
  21  Prefactor     3.1329        3.1553       -.23042E-07    .97620E-04
  22  Normalizat    .87127        .21418       -.87233E-06    .35129E-04
  23  Prefactor     .93556        .12505       -.86495E-07    .25360E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.25786
  Prefactor  = 0.00010001
  Prefactor  = 2.52191
  norm       = 5.61821
  Prefactor  = 3.87712
  Prefactor  = 0.0001
  Prefactor  = 21.7872
  Prefactor  = 1.48758
  Prefactor  = 12.8017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 47.1624
  Prefactor  = 19.9525
  Prefactor  = 7.77444
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 17.0695
  Prefactor  = 11.2596
  Prefactor  = 32.7629
  norm       = 15.527
  Prefactor  = 3.13291
  Normalizat = 0.871268
  Prefactor  = 0.935558
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.746     FROM HESSE     STATUS=OK           382 CALLS     2926 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2579        3.1974        .12094E-03   -1.5295    
   2  Prefactor     .10001E-03    64.599        .46280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5219        10.653        .25613E-03   -1.5390    
   4  norm          5.6182        2.2869        .78718E-04   -1.5234    
   5  Prefactor     3.8771        21.099        .20496E-03   -1.5314    
   6  Prefactor     .10000E-03    6.3002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.787        22.537        .85814E-04   -1.4774    
   8  Prefactor     1.4876        .23318        .14979E-04   -1.5464    
   9  Prefactor     12.802        12.974        .11195E-03   -1.4992    
  10  Prefactor     .10000E-03    5.6398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.8272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.162        28.039        .29194E-03   -1.4333    
  13  Prefactor     19.952        28.591        .89668E-04   -1.4814    
  14  Prefactor     7.7744        7.0999        .71912E-03   -1.5150    
  15  Prefactor     .10000E-03    7.1506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.070        9.2366        .96941E-04   -1.4881    
  18  Prefactor     11.260        8.0942        .59697E-03   -1.5037    
  19  Prefactor     32.763        23.035        .70005E-04   -1.4563    
  20  norm          15.527        16.231        .10165E-03   -1.4920    
  21  Prefactor     3.1329        3.1644        .14574E-03   -1.5354    
  22  Normalizat    .87127        .24750        .34545E-03   -.97477    
  23  Prefactor     .93556        .14503        .20226E-03   -.94909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45412e-09
Minuit parameter uncertainties:
  1  3.19751
  2  0.00158131
  3  10.3695
  4  2.28698
  5  18.0988
  6  7.09817e-05
  7  22.5463
  8  0.233182
  9  12.9765
  10  1.36832e-05
  11  0.000183835
  12  28.0473
  13  28.6101
  14  7.10064
  15  0.000193173
  16  6.54335e-05
  17  9.23734
  18  8.09499
  19  23.0408
  20  16.2358
  21  3.16455
  22  0.24782
  23  0.145086
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  6.543e-05  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.356e-01  1.451e-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:  8.713e-01  2.478e-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: 7.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/880443/likelihoodResults_251769601_252028801_4FGL_J2325.7+1821_daily_bin48.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) = 7037.74673785
delta logL = -0.000438703401414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7037.74629989
delta logL = -7.38315065973e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4271       1.0000          .0000       10.000    
     3 'Normalizat'    .87111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93557       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=   7037.746     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1266.4        .90712E-02** at limit **
   2  Index         2.4226        8.3277        .50000        .35100E-05
   3  Normalizat    .87127        .69928E-01    .78043E-01    .24924E-04
   4  Prefactor     .93556        .42456E-01    .45457E-01    .47305E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42261
  Normalizat = 0.871267
  Prefactor  = 0.935558
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.746     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4226        6.2104        .50000       -.54157    
   3  Normalizat    .87127        .23163        .34545E-03   -.97477    
   4  Prefactor     .93556        .14128        .20226E-03   -.94909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24572e-11
Minuit parameter uncertainties:
  1  1.80511e-05
  2  4.52649
  3  0.231898
  4  0.141337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880443': 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) = 7037.74629914
delta logL = 7.60155671742e-09

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  1.805e-05  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.423e+00  4.526e+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.356e-01  1.413e-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:  8.713e-01  2.319e-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/880443/cmap_HighResolution_251769601_252028801_4FGL_J2325.7+1821_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-09-29 18:30:41.295844', job_id='880443', GAL2='0.94', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632965441.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.60e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='48' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:30:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 880443: <4FGL_J2325.7+1821_daily_bin48> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin48> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 18:15:35 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:15:36 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:36 2021
Terminated at Wed Sep 29 18:30:42 2021
Results reported at Wed Sep 29 18:30:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin48 351.436 18.3654 251769601 252028801 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 :                                   719.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

