/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 119 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2325.7+1821_daily_bin240
RA = 351.436, Dec = 18.3654
tmin = 301536001, tmax = 301795201
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='882921', job_status='RUN', time_executed='2021-09-29 18:22:25.037545', time_epoch_executed='1632964945.04' WHERE source_name='4FGL J2325.7+1821' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/882921

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/882921/ft1_4FGL_J2325.7+1821_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/882921/ft2_4FGL_J2325.7+1821_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/882921/ft1_4FGL_J2325.7+1821_daily_bin240.fits outfile=/scratch/kocevski/882921/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin240.fits ra=351.436 dec=18.3654 rad=12.0 tmin=301536001.0 tmax=301795201.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 4.81
user 4.32
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/882921/ft2_4FGL_J2325.7+1821_daily_bin240.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/882921/ft1_filteredMKT_4FGL_J2325.7+1821_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/882921/ft1_filtered_4FGL_J2325.7+1821_daily_bin240.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/882921/ft1_filtered_4FGL_J2325.7+1821_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/882921/ft2_4FGL_J2325.7+1821_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/882921/ltcube_301536001_301795201_4FGL_J2325.7+1821_daily_bin240.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/882921/ft2_4FGL_J2325.7+1821_daily_bin240.fits
.....................!
real 11.73
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/882921/ft1_filtered_4FGL_J2325.7+1821_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/882921/ft2_4FGL_J2325.7+1821_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/882921/ltcube_301536001_301795201_4FGL_J2325.7+1821_daily_bin240.fits outfile=/scratch/kocevski/882921/expmap_301536001_301795201_4FGL_J2325.7+1821_daily_bin240.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/882921/ltcube_301536001_301795201_4FGL_J2325.7+1821_daily_bin240.fits
.....................!
real 190.91
user 185.10
sys 5.45

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/882921/ft1_filtered_4FGL_J2325.7+1821_daily_bin240.fits scfile=/scratch/kocevski/882921/ft2_4FGL_J2325.7+1821_daily_bin240.fits outfile=/scratch/kocevski/882921/cmap_301536001_301795201_4FGL_J2325.7+1821_daily_bin240.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/882921/ft1_filtered_4FGL_J2325.7+1821_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/882921/ft2_4FGL_J2325.7+1821_daily_bin240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/882921/Model_4FGL_J2325.7+1821_daily_bin240.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/882921/ft1_filtered_4FGL_J2325.7+1821_daily_bin240.fits.....................!
real 98.67
user 97.13
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5463       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0178       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4422       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.554       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23269E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10817E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.893       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11279E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8896       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74929       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0546       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=   8269.243     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2141 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.900        4.2514       -.29542E-07   -.29795E-04
   2  Prefactor     .10000E-03    2.9621       -.62613E-07** at limit **
   3  Prefactor     2.5462        6.2381       -.54929E-06   -.34758E-03
   4  norm          2.0180        1.6134        .16214E-07    .46687E-04
   5  Prefactor     .10000E-03    8.6174        .21616E-05** at limit **
   6  Prefactor     .10000E-03    22.046       -.85278E-06** at limit **
   7  Prefactor     .10000E-03    33.131       -.84917E-05** at limit **
   8  Prefactor     4.4422        .37440       -.54594E-08   -.31775E-02
   9  Prefactor     39.556        17.285        .23155E-07    .35415E-04
  10  Prefactor     .10040E-03    5.6311        .17577E-05** at limit **
  11  Prefactor     .10000E-03    6.2335        .10066E-06** at limit **
  12  Prefactor     .10000E-03    11.431       -.68826E-05** at limit **
  13  Prefactor     .10000E-03    59.374       -.13958E-04** at limit **
  14  Prefactor     5.5908        7.9290       -.19434E-06   -.26932E-03
  15  Prefactor     .10000E-03    12.349        .67944E-05** at limit **
  16  Prefactor     .10000E-03    7.6749       -.10778E-05** at limit **
  17  norm          14.886        10.700       -.21299E-06   -.33201E-03
  18  Prefactor     .10000E-03    3.9961       -.91457E-07** at limit **
  19  Prefactor     .10000E-03    38.751        .59730E-05** at limit **
  20  norm          16.501        14.781        .17831E-07   -.23760E-04
  21  Prefactor     6.8896        6.3675       -.30589E-07   -.68492E-04
  22  Normalizat    .74920        .23651       -.20136E-06   -.13950E-03
  23  Prefactor     1.0547        .13126       -.13794E-06   -.15044E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.9002
  Prefactor  = 0.0001
  Prefactor  = 2.54619
  norm       = 2.01797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44223
  Prefactor  = 39.5555
  Prefactor  = 0.0001004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.5011
  Prefactor  = 6.88963
  Normalizat = 0.749196
  Prefactor  = 1.05466
 **********
 **   18 **HESSE 
 **********

 FCN=   8269.243     FROM HESSE     STATUS=OK           366 CALLS     2507 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.900        4.2565        .88973E-04   -1.4886    
   2  Prefactor     .10000E-03    2.9639        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5462        6.2569        .25590E-03   -1.5389    
   4  norm          2.0180        1.6163        .10051E-03   -1.5424    
   5  Prefactor     .10000E-03    8.6180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4422        .37071        .15157E-04   -1.5286    
   9  Prefactor     39.556        17.277        .63732E-04   -1.4449    
  10  Prefactor     .10040E-03    45.057        .40221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    59.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5908        7.9331        .16990E-03   -1.5235    
  15  Prefactor     .10000E-03    12.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.886        10.711        .10379E-03   -1.4936    
  18  Prefactor     .10000E-03    4.0145        .17725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.501        14.781        .98592E-04   -1.4895    
  21  Prefactor     6.8896        6.3696        .15285E-03   -1.5183    
  22  Normalizat    .74920        .26193        .42490E-03   -1.0198    
  23  Prefactor     1.0547        .14705        .21476E-03   -.90929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86672e-09
Minuit parameter uncertainties:
  1  4.25662
  2  1.42168e-06
  3  6.25847
  4  1.6163
  5  3.17618e-07
  6  1.98878e-05
  7  1.67689e-05
  8  0.370706
  9  17.2796
  10  0.00849819
  11  2.11018e-06
  12  1.24368e-05
  13  0.000281187
  14  7.93461
  15  1.74898e-05
  16  2.7224e-06
  17  10.7126
  18  1.33376e-06
  19  2.39204e-05
  20  14.7847
  21  6.37023
  22  0.262367
  23  0.147107
Done.

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

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  2.722e-06  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.055e+00  1.471e-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:  7.492e-01  2.624e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/882921/likelihoodResults_301536001_301795201_4FGL_J2325.7+1821_daily_bin240.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) = 8269.24396514
delta logL = -0.000619647888016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8269.24334548
delta logL = 1.25583028421e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4225       1.0000          .0000       10.000    
     3 'Normalizat'    .74920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0547       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8269.243     FROM MIGRAD    STATUS=FAILED        90 CALLS      242 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    291.65        .18142E-02** at limit **
   2  Index         2.2982        5.2426        .50000        .71866E-05
   3  Normalizat    .74920        .35147E-01    .42490E-03   -.16589E-04
   4  Prefactor     1.0547        .20929E-01    .21476E-03   -.55055E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8269.243     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      382 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    291.65        .52463E-03** at limit **
   2  Index         2.2982        5.2426        .85674E-04    .71866E-05
   3  Normalizat    .74920        .35147E-01    .14073E-05   -.16589E-04
   4  Prefactor     1.0547        .20929E-01    .60314E-06   -.55055E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8269.243     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      423 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1577.2        .36285E-03** at limit **
   2  Index         2.0401        6.0433        .50000        .11664E-06
   3  Normalizat    .74920        .12424        .16996E-04    .55920E-04
   4  Prefactor     1.0547        .73938E-01    .85903E-05    .12493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04007
  Normalizat = 0.749197
  Prefactor  = 1.05466
 **********
 **   18 **HESSE 
 **********

 FCN=   8269.243     FROM HESSE     STATUS=OK            29 CALLS      452 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1482        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0401        7.6391        .50000       -.63352    
   3  Normalizat    .74920        .24488        .33992E-05   -1.0198    
   4  Prefactor     1.0547        .14596        .17181E-05   -.90929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67348e-11
Minuit parameter uncertainties:
  1  3.46122e-06
  2  239.926
  3  0.245241
  4  0.14601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/882921': 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) = 8269.24334499
delta logL = 5.040801625e-07

Extracting fit parameters...

4FGL J2325.7+1821
   Spectrum: PowerLaw
421    Prefactor:  1.000e-04  3.461e-06  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.040e+00  2.399e+02  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.055e+00  1.460e-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:  7.492e-01  2.452e-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/882921/cmap_HighResolution_301536001_301795201_4FGL_J2325.7+1821_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-29 18:35:23.398489', job_id='882921', GAL2='1.05', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632965723.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='240' AND source_name='4FGL J2325.7+1821' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 18:35:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 882921: <4FGL_J2325.7+1821_daily_bin240> in cluster <slac> Done

Job <4FGL_J2325.7+1821_daily_bin240> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 18:20:14 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 18:20:16 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:20:16 2021
Terminated at Wed Sep 29 18:35:24 2021
Results reported at Wed Sep 29 18:35:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2325.7+1821_daily_bin240 351.436 18.3654 301536001 301795201 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 :                                   776.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

