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


Performing analysis on: 4FGL_J2325.2+3957_daily_bin33
RA = 351.315, Dec = 39.9542
tmin = 247881601, tmax = 248140801
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='854881', job_status='RUN', time_executed='2021-09-29 16:58:35.854010', time_epoch_executed='1632959915.85' WHERE source_name='4FGL J2325.2+3957' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854881/ft1_4FGL_J2325.2+3957_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854881/ft1_4FGL_J2325.2+3957_daily_bin33.fits outfile=/scratch/kocevski/854881/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin33.fits ra=351.315 dec=39.9542 rad=12.0 tmin=247881601.0 tmax=248140801.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.12
user 0.93
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.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/854881/ft1_filteredMKT_4FGL_J2325.2+3957_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.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.41
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/854881/ltcube_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.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/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits
.....................!
real 9.55
user 9.25
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/854881/ltcube_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.fits outfile=/scratch/kocevski/854881/expmap_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.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/854881/ltcube_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.fits
.....................!
real 145.88
user 142.04
sys 3.58

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 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 J2325.2+3957 @ 351.315 39.9542

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.fits scfile=/scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits outfile=/scratch/kocevski/854881/cmap_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.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.315 yref=39.9542 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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.fits scfile=/scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits outfile=/scratch/kocevski/854881/cmap_HighResolution_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.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.315 yref=39.9542 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.45
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854881/Model_4FGL_J2325.2+3957_daily_bin33.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.fits....................!
real 87.99
user 86.80
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.fits', '/scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits', expMap='/scratch/kocevski/854881/expmap_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.fits', expCube='/scratch/kocevski/854881/ltcube_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/854881/Model_4FGL_J2325.2+3957_daily_bin33.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2325.2+3957'

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/854881/ft1_filtered_4FGL_J2325.2+3957_daily_bin33.fits
Spacecraft file(s): /scratch/kocevski/854881/ft2_4FGL_J2325.2+3957_daily_bin33.fits
Exposure map: /scratch/kocevski/854881/expmap_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.fits
Exposure cube: /scratch/kocevski/854881/ltcube_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/854881/Model_4FGL_J2325.2+3957_daily_bin33.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) = 10091.6032013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.805       1.0000         .10000E-03   10000.    
     3 'norm      '    .21753E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1488       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0813       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5435       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.216       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0735       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92194       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10091.57     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2960 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.206        43.881        .26794E-05    .24195E-05
   2  Prefactor     10.803        27.773       -.16848E-05   -.16585E-04
   3  norm          .10000E-03    25.918        .78203E-06** at limit **
   4  Prefactor     1.5661        5.9367        .41037E-06   -.20321E-04
   5  Prefactor     .10000E-03    2.0516       -.14466E-07** at limit **
   6  Prefactor     .10000E-03    35.811       -.74329E-06** at limit **
   7  Prefactor     5.1468        7.6205        .13438E-06   -.86995E-06
   8  norm          4.2336        3.9992       -.50209E-09   -.26353E-05
   9  Prefactor     19.225        15.476        .46758E-07   -.98203E-06
  10  Prefactor     4.9481        5.8243        .66328E-07   -.21161E-05
  11  Prefactor     .10000E-03    10.625        .59247E-07** at limit **
  12  norm          5.7388        2.0155       -.68231E-08   -.29975E-04
  13  Prefactor     27.276        13.819        .95864E-07   -.82217E-05
  14  Prefactor     .10000E-03    7.7419       -.53328E-07** at limit **
  15  norm          4.0819        4.3281        .10942E-05   -.30971E-04
  16  norm          .10000E-03    4.1448        .33699E-08** at limit **
  17  Prefactor     .10000E-03    7.8204        .35934E-06** at limit **
  18  norm          1.5434        1.7129        .98521E-08   -.42448E-05
  19  Prefactor     .10000E-03    6.2291        .25662E-07** at limit **
  20  Prefactor     23.190        52.019        .39349E-05   -.81514E-06
  21  Prefactor     .10000E-03    15.657       -.12719E-06** at limit **
  22  Prefactor     .10000E-03    41.278       -.21476E-08** at limit **
  23  Prefactor     .10000E-03    2.0819        .95514E-08** at limit **
  24  Normalizat    1.0737        .20499       -.60602E-06   -.16986E-04
  25  Prefactor     .92192        .77293E-01   -.10744E-06   -.31965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.206
  Prefactor  = 10.8028
  norm       = 0.0001
  Prefactor  = 1.56612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1468
  norm       = 4.23359
  Prefactor  = 19.2251
  Prefactor  = 4.94808
  Prefactor  = 0.0001
  norm       = 5.73883
  Prefactor  = 27.2757
  Prefactor  = 0.0001
  norm       = 4.08191
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54337
  Prefactor  = 0.0001
  Prefactor  = 23.1896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07369
  Prefactor  = 0.921917
 **********
 **   18 **HESSE 
 **********

 FCN=   10091.57     FROM HESSE     STATUS=OK           427 CALLS     3387 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.206        43.872        .53972E-04   -1.4221    
   2  Prefactor     10.803        27.768        .12188E-03   -1.5050    
   3  norm          .10000E-03    26.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5661        5.9283        .34020E-03   -1.5458    
   5  Prefactor     .10000E-03    2.0729        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1468        7.5295        .17717E-03   -1.5254    
   8  norm          4.2336        3.9539        .16292E-03   -1.5296    
   9  Prefactor     19.225        15.473        .91345E-04   -1.4831    
  10  Prefactor     4.9481        5.8034        .18080E-03   -1.5263    
  11  Prefactor     .10000E-03    10.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7388        2.0164        .79381E-04   -1.5229    
  13  Prefactor     27.276        13.807        .76705E-04   -1.4663    
  14  Prefactor     .10000E-03    7.7479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0819        4.3288        .99783E-03   -1.5304    
  16  norm          .10000E-03    4.1507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5434        1.7062        .13373E-03   -1.5459    
  19  Prefactor     .10000E-03    6.2343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.190        52.008        .83134E-04   -1.4744    
  21  Prefactor     .10000E-03    15.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0908        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0737        .23398        .38176E-03   -.90601    
  25  Prefactor     .92192        .88924E-01    .16109E-03   -.95379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65659e-11
Minuit parameter uncertainties:
  1  43.8981
  2  27.8013
  3  3.94892e-06
  4  5.93049
  5  8.282e-08
  6  5.54354e-06
  7  7.53088
  8  3.95417
  9  15.4767
  10  5.80406
  11  1.1382e-06
  12  2.01646
  13  13.8086
  14  1.37485e-06
  15  4.32908
  16  3.4006e-07
  17  4.09391e-06
  18  1.70625
  19  1.52598e-06
  20  52.1102
  21  6.28988e-06
  22  9.82172e-06
  23  3.74156e-07
  24  0.23421
  25  0.0889385
Done.

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

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  1.543e+00  1.706e+00  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  1.993e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.219e-01  8.894e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.074e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 351.315 39.954
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.57e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 1.12e-05

TS (Fixed Index): 2.13
Ra Dec: 351.315 39.954
Photon Flux Upper Limit: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854881/likelihoodResults_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.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) = 10089.6209672
delta logL = 1.95095787136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10089.5961912
delta logL = 1.97573390201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22115       1.0000         .10000E-03   10000.    
     2 'alpha     '    .27126       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10089.60     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      219 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22098        .57339        .10074E-01   -.15701E-02
   2  alpha         .27076        2.5672        .50000        .51123E-04
   3  Normalizat    1.0777        .19348        .86068E-01    .26871E-04
   4  Prefactor     .92363        .76698E-01    .45306E-01   -.98491E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.220985
  alpha      = 0.270755
  Normalizat = 1.07767
  Prefactor  = 0.92363
 **********
 **   18 **HESSE 
 **********

 FCN=   10089.60     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22098        .45644        .46247E-04   -1.5614    
   2  alpha         .27076        .69328        .39688E-01   -1.1011    
   3  Normalizat    1.0777        .22165        .38111E-03   -.90472    
   4  Prefactor     .92363        .88051E-01    .16095E-03   -.95320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96348e-11
Minuit parameter uncertainties:
  1  0.456448
  2  0.7462
  3  0.22184
  4  0.0880644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854881': 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) = 10089.5961909
delta logL = 1.97573426014

Extracting fit parameters...

4FGL J2325.2+3957
   Spectrum: LogParabola
467         norm:  2.210e-01  4.564e-01  1.000e-04  1.000e+04 ( 1.000e-12)
468        alpha:  2.708e-01  7.462e-01  0.000e+00  5.000e+00 ( 1.000e+00)
469         beta:  1.156e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
470           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  9.236e-01  8.806e-02  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  1.078e+00  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 351.315 39.954
Photon Index (Free Index): 0.27 +/- 0.75
Photon Flux (Free Index): 3.17e-09 +/- 3.26e-09
Energy Flux (Free Index): 7.58e-05 +/- 9.88e-05

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/854881/cmap_HighResolution_247881601_248140801_4FGL_J2325.2+3957_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-05', comment='SUCCESS', photon_flux='1.57e-08', energy_flux2='7.58e-05', photon_flux_error='1.73e-08', dlogl='1.98e+00', energy_flux='1.01e-05', photon_flux2='3.17e-09', job_status='DONE', time_completed='2021-09-29 17:11:11.313950', photon_index_error2='0.75', photon_index2='0.27', ts='2.13', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='6.77e-08', energy_flux_error2='9.88e-05', EG='1.07', time_epoch_completed='1632960671.31', return_code='0', job_id='854881', GAL2='0.92', EG2='1.08', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.26e-09', ts2='6.07', photon_index='1.99' WHERE bin_id='33' AND source_name='4FGL J2325.2+3957' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 17:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 854881: <4FGL_J2325.2+3957_daily_bin33> in cluster <slac> Done

Job <4FGL_J2325.2+3957_daily_bin33> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:55:40 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:55:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 16:55:41 2021
Terminated at Wed Sep 29 17:11:12 2021
Results reported at Wed Sep 29 17:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.2+3957_daily_bin33 351.315 39.9542 247881601 248140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2325.2+3957 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   748.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

