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


Performing analysis on: 4FGL_J2324.7-4041_daily_bin402
RA = 351.182, Dec = -40.6834
tmin = 343526401, tmax = 343785601
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='847090', job_status='RUN', time_executed='2021-09-29 16:37:45.222833', time_epoch_executed='1632958665.22' WHERE source_name='4FGL J2324.7-4041' and cadence='daily' and bin_id='402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847090/ft1_4FGL_J2324.7-4041_daily_bin402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847090/ft1_4FGL_J2324.7-4041_daily_bin402.fits outfile=/scratch/kocevski/847090/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin402.fits ra=351.182 dec=-40.6834 rad=12.0 tmin=343526401.0 tmax=343785601.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.43
user 3.22
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.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/847090/ft1_filteredMKT_4FGL_J2324.7-4041_daily_bin402.fits evtable="EVENTS" outfile="/scratch/kocevski/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.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.56
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.fits" evtable="EVENTS" scfile=/scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits sctable="SC_DATA" outfile=/scratch/kocevski/847090/ltcube_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.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/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits
.....................!
real 12.82
user 12.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits sctable="SC_DATA" expcube=/scratch/kocevski/847090/ltcube_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.fits outfile=/scratch/kocevski/847090/expmap_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.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/847090/ltcube_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.fits
.....................!
real 192.64
user 185.75
sys 5.70

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

Setting source of interest to:
4FGL J2324.7-4041 @ 351.182 -40.6834

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.fits scfile=/scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits outfile=/scratch/kocevski/847090/cmap_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.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.182 yref=-40.6834 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.fits scfile=/scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits outfile=/scratch/kocevski/847090/cmap_HighResolution_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.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.182 yref=-40.6834 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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.fits evtable="EVENTS" scfile=/scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/847090/Model_4FGL_J2324.7-4041_daily_bin402.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/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.fits.....................!
real 38.11
user 36.64
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.fits', '/scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits', expMap='/scratch/kocevski/847090/expmap_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.fits', expCube='/scratch/kocevski/847090/ltcube_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/847090/Model_4FGL_J2324.7-4041_daily_bin402.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2324.7-4041'

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  1.376e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/847090/ft1_filtered_4FGL_J2324.7-4041_daily_bin402.fits
Spacecraft file(s): /scratch/kocevski/847090/ft2_4FGL_J2324.7-4041_daily_bin402.fits
Exposure map: /scratch/kocevski/847090/expmap_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.fits
Exposure cube: /scratch/kocevski/847090/ltcube_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/847090/Model_4FGL_J2324.7-4041_daily_bin402.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) = 4545.03889837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.135       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.114       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11766E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.305       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5813       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17946       1.0000         .10000E-03   10000.    
    11 'Prefactor '    117.31       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16515E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.510       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.9313       1.0000         .10000E-03   10000.    
    17 'norm      '    .60370E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7975       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33216E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.510       1.0000         .10000E-03   10000.    
    24 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11489E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.316       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.658       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.3373       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3432       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .65028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4545.011     FROM MIGRAD    STATUS=CONVERGED    827 CALLS     4317 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.252        91.505        .52608E-05    .33768E-03
   2  Prefactor     19.132        29.881       -.44630E-06   -.58365E-06
   3  Prefactor     .10000E-03    31.801        .17216E-07** at limit **
   4  Prefactor     .10000E-03    4.2942       -.45227E-06** at limit **
   5  Prefactor     .10000E-03    20.258        .61170E-07** at limit **
   6  Prefactor     9.5318        8.1068        .19365E-06   -.14807E-03
   7  Prefactor     .10000E-03    8.2421       -.11540E-06** at limit **
   8  Prefactor     19.297        32.162        .11939E-05   -.90439E-04
   9  Prefactor     2.5922        25.371        .24025E-04   -.30461E-04
  10  Prefactor     .17299        7.3105        .12115E-05   -.27015E-03
  11  Prefactor     117.30        63.243        .24293E-06   -.85289E-04
  12  Prefactor     .10001E-03    65.019        .10081E-05** at limit **
  13  Prefactor     .10000E-03    6.1136       -.54764E-07** at limit **
  14  norm          12.516        14.209        .21165E-06   -.83243E-05
  15  norm          .10000E-03    2.7721       -.16421E-07** at limit **
  16  norm          7.9359        6.6697        .23333E-06    .69101E-04
  17  norm          .10012E-03    10.062       -.10548E-05** at limit **
  18  Prefactor     3.8001        5.4358        .16895E-06   -.20518E-04
  19  Prefactor     .10000E-03    91.682        .22124E-06** at limit **
  20  Prefactor     .10000E-03    34.745       -.10504E-05** at limit **
  21  norm          .10000E-03    4.6763        .41317E-07** at limit **
  22  Prefactor     .10000E-03    7.1162        .37595E-07** at limit **
  23  norm          14.510        2.7348        .45725E-07   -.29189E-03
  24  norm          .10000E-03    2.5725        .53823E-07** at limit **
  25  Prefactor     .10000E-03    2.3258        .58629E-06** at limit **
  26  Prefactor     26.406        29.538        .12498E-05    .30385E-03
  27  Prefactor     .10000E-03    19.595       -.36170E-06** at limit **
  28  Prefactor     12.655        9.0943        .48133E-06   -.66364E-04
  29  Prefactor     1.3295        5.3117        .28481E-05    .89170E-04
  30  Prefactor     .10000E-03    25.376        .86677E-06** at limit **
  31  Normalizat    1.3433        .24336       -.51846E-05    .58995E-04
  32  Prefactor     .65041        .24569        .32202E-05   -.20822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.2517
  Prefactor  = 19.1319
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.5318
  Prefactor  = 0.0001
  Prefactor  = 19.2971
  Prefactor  = 2.59218
  Prefactor  = 0.172987
  Prefactor  = 117.299
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 12.516
  norm       = 0.0001
  norm       = 7.93591
  norm       = 0.000100117
  Prefactor  = 3.80011
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4056
  Prefactor  = 0.0001
  Prefactor  = 12.6553
  Prefactor  = 1.32954
  Prefactor  = 0.000100002
  Normalizat = 1.34325
  Prefactor  = 0.650406
 **********
 **   18 **HESSE 
 **********

 FCN=   4545.011     FROM HESSE     STATUS=OK           651 CALLS     4968 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.252        91.875        .22295E-03   -1.3903    
   2  Prefactor     19.132        29.565        .91612E-04   -1.4833    
   3  Prefactor     .10000E-03    31.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4817        .27239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5318        8.1117        .64888E-03   -1.5090    
   7  Prefactor     .10000E-03    8.2451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.297        32.175        .91158E-04   -1.4829    
   9  Prefactor     2.5922        25.539        .12701E-02   -1.5386    
  10  Prefactor     .17299        56.218        .34478E-02   -1.5625    
  11  Prefactor     117.30        63.198        .18575E-03   -1.3538    
  12  Prefactor     .10001E-03    65.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1177        .16280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.516        14.207        .11326E-03   -1.5000    
  15  norm          .10000E-03    2.7732        .10962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.9359        6.6593        .14237E-03   -1.5144    
  17  norm          .10012E-03    49.565        .40461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8001        5.4240        .18085E-03   -1.5318    
  19  Prefactor     .10000E-03    92.465        .21346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.7367        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.1245        .17562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.510        2.7372        .45407E-04   -1.4946    
  24  norm          .10000E-03    2.5923        .10556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.3380        .10032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     26.406        29.507        .78091E-04   -1.4680    
  27  Prefactor     .10000E-03    19.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.655        9.1369        .11259E-03   -1.4996    
  29  Prefactor     1.3295        5.2397        .27963E-03   -1.5477    
  30  Prefactor     .10000E-03    25.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3433        .29111        .23437E-03   -.82284    
  32  Prefactor     .65041        .29233        .34161E-03   -1.0550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75578e-09
Minuit parameter uncertainties:
  1  92.036
  2  29.5876
  3  0.000259598
  4  1.84723e-05
  5  7.5821e-05
  6  8.11263
  7  1.82825e-06
  8  32.2043
  9  16.2818
  10  6.24112
  11  63.2341
  12  0.00117964
  13  5.04874e-06
  14  14.2105
  15  3.85577e-07
  16  6.65995
  17  0.00482979
  18  5.42467
  19  0.000553799
  20  0.000441266
  21  1.90567e-05
  22  3.27096e-06
  23  2.73724
  24  5.85877e-06
  25  1.3507e-06
  26  29.5228
  27  0.000154617
  28  9.13791
  29  5.2415
  30  0.000455751
  31  0.291462
  32  0.293017
Done.

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

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  7.936e+00  6.660e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  1.623e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.504e-01  2.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.343e+00  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.42
Ra Dec: 351.182 -40.683
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.95e-08 +/- 1.63e-08
Energy Flux (Fixed Index): 4.21e-05 +/- 3.53e-05

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) = 4544.33722422
delta logL = 0.673305704821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4544.33099434
delta logL = 0.679535591384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1141       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3609       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65478       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   4544.331     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1148        5.7391        .95440E-04   -.19833E-03
   2  alpha         2.3610        .61108        .74496E-02   -.25235E-04
   3  Normalizat    1.3122        .27550        .23656E-03    .27275E-03
   4  Prefactor     .65455        .28751        .34010E-03    .25238E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.1148
  alpha      = 2.36095
  Normalizat = 1.31223
  Prefactor  = 0.654547
 **********
 **   18 **HESSE 
 **********

 FCN=   4544.331     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1148        5.2850        .38176E-05   -1.5256    
   2  alpha         2.3610        .56317        .29798E-03   -.55649E-01
   3  Normalizat    1.3122        .27526        .47312E-04   -.83202    
   4  Prefactor     .65455        .28757        .13604E-04   -1.0534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38447e-10
Minuit parameter uncertainties:
  1  5.28548
  2  0.568066
  3  0.275567
  4  0.288221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847090': 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) = 4544.33099341
delta logL = 0.679536519571

Extracting fit parameters...

4FGL J2324.7-4041
   Spectrum: LogParabola
418         norm:  5.115e+00  5.285e+00  1.000e-04  1.000e+04 ( 1.000e-13)
419        alpha:  2.361e+00  5.681e-01  0.000e+00  5.000e+00 ( 1.000e+00)
420         beta:  8.462e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
421           Eb:  2.868e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  6.545e-01  2.882e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.312e+00  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.75
Ra Dec: 351.182 -40.683
Photon Index (Free Index): 2.36 +/- 0.57
Photon Flux (Free Index): 5.73e-08 +/- 4.99e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.79e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/847090/cmap_HighResolution_343526401_343785601_4FGL_J2324.7-4041_daily_bin402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.95e-08', energy_flux2='2.57e-05', photon_flux_error='1.63e-08', dlogl='6.80e-01', energy_flux='4.21e-05', photon_flux2='5.73e-08', job_status='DONE', time_completed='2021-09-29 16:48:55.988122', photon_index_error2='0.57', photon_index2='2.36', ts='5.42', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='1.34', time_epoch_completed='1632959335.99', return_code='0', job_id='847090', GAL2='0.65', EG2='1.31', return_code2='0', energy_flux_error='3.53e-05', photon_flux_error2='4.99e-08', ts2='6.75', photon_index='1.62' WHERE bin_id='402' AND source_name='4FGL J2324.7-4041' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 16:48:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 847090: <4FGL_J2324.7-4041_daily_bin402> in cluster <slac> Done

Job <4FGL_J2324.7-4041_daily_bin402> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 16:35:42 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 16:35:44 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:35:44 2021
Terminated at Wed Sep 29 16:48:56 2021
Results reported at Wed Sep 29 16:48:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2324.7-4041_daily_bin402 351.182 -40.6834 343526401 343785601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2324.7-4041 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

