/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 228 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0324.8-2043_daily_bin1710
RA = 51.2191, Dec = -20.7285
tmin = 682560001, tmax = 682819201
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='12661', job_status='RUN', time_executed='2022-09-16 10:49:55.267406', time_epoch_executed='1663350595.27' WHERE source_name='4FGL J0324.8-2043' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12661/ft1_4FGL_J0324.8-2043_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12661/ft1_4FGL_J0324.8-2043_daily_bin1710.fits outfile=/scratch/kocevski/12661/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1710.fits ra=51.2191 dec=-20.7285 rad=12.0 tmin=682560001.0 tmax=682819201.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.75
user 3.45
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.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/12661/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.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.53
user 0.36
sys 0.17

Number of photons that the gtmktime cut: 425

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/12661/ltcube_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.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/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits
.....................!
real 15.28
user 14.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/12661/ltcube_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.fits outfile=/scratch/kocevski/12661/expmap_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.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/12661/ltcube_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.fits
.....................!
real 191.43
user 185.78
sys 4.76

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 167 point sources and 1 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 J0324.8-2043 @ 51.2191 -20.7285

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.fits scfile=/scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits outfile=/scratch/kocevski/12661/cmap_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.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=51.2191 yref=-20.7285 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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.fits scfile=/scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits outfile=/scratch/kocevski/12661/cmap_HighResolution_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.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=51.2191 yref=-20.7285 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.61
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12661/Model_4FGL_J0324.8-2043_daily_bin1710.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.fits.....................!
real 107.38
user 105.87
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.fits', '/scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits', expMap='/scratch/kocevski/12661/expmap_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.fits', expCube='/scratch/kocevski/12661/ltcube_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/12661/Model_4FGL_J0324.8-2043_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0324.8-2043'

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  7.558e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
266        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.862e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/12661/ft1_filtered_4FGL_J0324.8-2043_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/12661/ft2_4FGL_J0324.8-2043_daily_bin1710.fits
Exposure map: /scratch/kocevski/12661/expmap_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.fits
Exposure cube: /scratch/kocevski/12661/ltcube_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/12661/Model_4FGL_J0324.8-2043_daily_bin1710.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) = 4803.88400229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85042E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    21.622       1.0000          .0000       .10000E+07
     3 'norm      '    1.5960       1.0000          .0000       .10000E+07
     4 'Prefactor '    .56563E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.8179       1.0000          .0000       .10000E+07
     6 'Prefactor '    224.12       1.0000          .0000       .10000E+07
     7 'Prefactor '    .43975E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    15.981       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16141E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .41813E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .45288E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .12177E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .40294E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0236       1.0000          .0000       .10000E+07
    15 'norm      '    2.5989       1.0000          .0000       .10000E+07
    16 'Prefactor '    26.224       1.0000          .0000       .10000E+07
    17 'norm      '    .31641E-08   1.0000          .0000       .10000E+07
    18 'Prefactor '    .88442E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .21303       1.0000          .0000       .10000E+07
    20 'norm      '    .79838E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    28.442       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0321       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79521       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4803.872     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     2703 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .70750       -.55855E-07** at limit **
   2  Prefactor     21.600        13.729        .11334E-06   -.47494E-02
   3  norm          1.5868        3.3738        .33706E-06   -.80120E-03
   4  Prefactor     .55511E-10    4.6803       -.25748E-06** at limit **
   5  Prefactor     4.7499        4.9161       -.35601E-06    .95260E-03
   6  Prefactor     224.07        8.6590       -.33724E-08    .11534    
   7  Prefactor      .0000        1.5383        .23483E-06** at limit **
   8  Prefactor     16.019        1.3078        .93028E-08    .64090E-02
   9  Prefactor      .0000        4.9399       -.11252E-06** at limit **
  10  Prefactor     .22204E-09    16.851       -.62908E-06** at limit **
  11  Prefactor     .34805E-07    15.779       -.61004E-06** at limit **
  12  Prefactor      .0000        .70220       -.85526E-07** at limit **
  13  Prefactor      .0000        2.1904        .19033E-06** at limit **
  14  Prefactor     4.0186        4.1345        .10381E-06    .12581E-03
  15  norm          2.5992        1.0314       -.82533E-08   -.16656E-03
  16  Prefactor     26.352        12.094        .44716E-08    .81887E-01
  17  norm           .0000        .59715        .11871E-06** at limit **
  18  Prefactor     .18199E-03    1645.0       -.14962E-06** at limit **
  19  Prefactor     .21290        8.1772       -.39534E-06** at limit **
  20  norm          .40917E-06    48.166        .23187E-05** at limit **
  21  Prefactor     28.438        6.7506       -.12782E-06   -.14422    
  22  Normalizat    1.0323        .20861       -.26612E-05   -.32625E-04
  23  Prefactor     .79534        .18469        .29387E-05   -.41497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 21.6003
  norm       = 1.58678
  Prefactor  = 5.55112e-11
  Prefactor  = 4.74994
  Prefactor  = 224.07
  Prefactor  = 0
  Prefactor  = 16.0191
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 3.48055e-08
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.01862
  norm       = 2.59915
  Prefactor  = 26.3525
  norm       = 0
  Prefactor  = 0.000181987
  Prefactor  = 0.212901
  norm       = 4.09173e-07
  Prefactor  = 28.4381
  Normalizat = 1.03231
  Prefactor  = 0.795338
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.872     FROM HESSE     STATUS=OK           418 CALLS     3121 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .70438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.600        13.858        .21512E-03   -1.5615    
   3  norm          1.5868        3.4154        .83920E-03   -1.5683    
   4  Prefactor     .55511E-10    4.6890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7499        4.9222        .45809E-03   -1.5664    
   6  Prefactor     224.07        198.27        .66806E-04   -1.5409    
   7  Prefactor      .0000        1.5383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.019        21.410        .25027E-03   -1.5628    
   9  Prefactor      .0000        4.9377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    16.879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .34805E-07    15.867        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .70210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.1871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0186        4.1503        .50249E-03   -1.5668    
  15  norm          2.5992        1.0330        .63260E-04   -1.5676    
  16  Prefactor     26.352        36.200        .19531E-03   -1.5605    
  17  norm           .0000        .59533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .18199E-03    28.858        .14251E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .21290        1.6946        .50830E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .40917E-06    48.219        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.438        24.574        .18754E-03   -1.5601    
  22  Normalizat    1.0323        .19051        .41964E-01   -.91956    
  23  Prefactor     .79534        .16308        .43655E-01   -.99900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07442e-06
Minuit parameter uncertainties:
  1  1.71274e-06
  2  13.858
  3  3.41536
  4  2.94384e-05
  5  4.92221
  6  198.273
  7  6.13811e-06
  8  21.4101
  9  9.48263e-06
  10  0.000114753
  11  0.00148573
  12  1.29871e-07
  13  6.09101e-06
  14  4.15029
  15  1.03302
  16  36.2003
  17  1.80904e-06
  18  0.144939
  19  1.20132
  20  0.00888381
  21  24.5743
  22  0.190639
  23  0.163179
Done.

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

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  2.241e+02  1.983e+02  0.000e+00  1.000e+06 ( 1.000e-15)
266        Index:  1.891e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  3.862e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  7.953e-01  1.632e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.032e+00  1.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 51.219 -20.729
Photon Index (Fixed Index): 1.89 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 2.05e-05

TS (Fixed Index): 3.21
Ra Dec: 51.219 -20.729
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12661/likelihoodResults_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.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) = 4803.61077846
delta logL = 0.261694342576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4803.60757006
delta logL = 0.264902741777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.461       1.0000          .0000       .10000E+07
     2 'Index     '    2.4233       1.0000          .0000       10.000    
     3 'Normalizat'    1.0094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   4803.608     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      301 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.541        228.97        .20157E-04    .10852E-02
   2  Index         2.4237        1.0231        .43944E-02    .12032E-03
   3  Normalizat    1.0087        .20857        .23692E-03   -.51877E-03
   4  Prefactor     .80552        .18448        .23707E-03   -.15595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.5408
  Index      = 2.42374
  Normalizat = 1.0087
  Prefactor  = 0.805524
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.608     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.541        171.53        .40314E-05   -1.5509    
   2  Index         2.4237        .76875        .17577E-03   -.54130    
   3  Normalizat    1.0087        .20586        .47385E-04   -.92740    
   4  Prefactor     .80552        .18358        .94830E-05   -.99525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92621e-10
Minuit parameter uncertainties:
  1  171.541
  2  0.772932
  3  0.206026
  4  0.183715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12661': 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) = 4803.60756313
delta logL = 0.264909672422

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  9.854e+01  1.715e+02  0.000e+00  1.000e+06 ( 1.000e-15)
266        Index:  2.424e+00  7.729e-01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  3.862e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  8.055e-01  1.837e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
523   Normalization:  1.009e+00  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 51.219 -20.729
Photon Index (Free Index): 2.42 +/- 0.77
Photon Flux (Free Index): 4.86e-08 +/- 5.13e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.26e-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/12661/cmap_HighResolution_682560001_682819201_4FGL_J0324.8-2043_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='1.54e-05', photon_flux_error='2.22e-08', dlogl='2.65e-01', energy_flux='2.31e-05', photon_flux2='4.86e-08', job_status='DONE', time_completed='2022-09-16 11:00:25.600095', photon_index_error2='0.77', photon_index2='2.42', ts='3.21', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.36e-08', energy_flux_error2='1.26e-05', EG='1.03', time_epoch_completed='1663351225.6', return_code='0', job_id='12661', GAL2='0.81', EG2='1.01', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='5.13e-08', ts2='3.73', photon_index='1.89' WHERE bin_id='1710' AND source_name='4FGL J0324.8-2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:00:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 12661: <4FGL_J0324.8-2043_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0324.8-2043_daily_bin1710> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep 16 10:45:24 2022
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:45:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:45:58 2022
Terminated at Fri Sep 16 11:00:26 2022
Results reported at Fri Sep 16 11:00:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0324.8-2043_daily_bin1710 51.2191 -20.7285 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0324.8-2043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            902 sec.

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

