/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 169 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 = 7431
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0324.8-2043_daily_bin1055
RA = 51.2191, Dec = -20.7285
tmin = 512784001, tmax = 513043201
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='430165', job_status='RUN', time_executed='2021-08-18 05:38:40.084710', time_epoch_executed='1629290320.08' WHERE source_name='4FGL J0324.8-2043' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430165/ft1_4FGL_J0324.8-2043_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430165/ft1_4FGL_J0324.8-2043_daily_bin1055.fits outfile=/scratch/kocevski/430165/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1055.fits ra=51.2191 dec=-20.7285 rad=12.0 tmin=512784001.0 tmax=513043201.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 5.28
user 3.31
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430165/ft1_filtered_4FGL_J0324.8-2043_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/430165/ltcube_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.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/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits
.....................!
real 12.70
user 10.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430165/ft1_filtered_4FGL_J0324.8-2043_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/430165/ltcube_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.fits outfile=/scratch/kocevski/430165/expmap_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.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/430165/ltcube_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.fits
.....................!
real 165.21
user 151.37
sys 4.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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/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/430165/ft1_filtered_4FGL_J0324.8-2043_daily_bin1055.fits scfile=/scratch/kocevski/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits outfile=/scratch/kocevski/430165/cmap_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.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 1.70
user 0.33
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430165/ft1_filtered_4FGL_J0324.8-2043_daily_bin1055.fits scfile=/scratch/kocevski/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits outfile=/scratch/kocevski/430165/cmap_HighResolution_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.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 3.32
user 0.34
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430165/ft1_filtered_4FGL_J0324.8-2043_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430165/Model_4FGL_J0324.8-2043_daily_bin1055.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/430165/ft1_filtered_4FGL_J0324.8-2043_daily_bin1055.fits.....................!
real 75.87
user 67.30
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430165/ft1_filtered_4FGL_J0324.8-2043_daily_bin1055.fits', '/scratch/kocevski/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits', expMap='/scratch/kocevski/430165/expmap_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.fits', expCube='/scratch/kocevski/430165/ltcube_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430165/Model_4FGL_J0324.8-2043_daily_bin1055.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  1.000e-04  1.000e+04 ( 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/430165/ft1_filtered_4FGL_J0324.8-2043_daily_bin1055.fits
Spacecraft file(s): /scratch/kocevski/430165/ft2_4FGL_J0324.8-2043_daily_bin1055.fits
Exposure map: /scratch/kocevski/430165/expmap_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.fits
Exposure cube: /scratch/kocevski/430165/ltcube_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430165/Model_4FGL_J0324.8-2043_daily_bin1055.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) = 3743.71769719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.089       1.0000         .10000E-03   10000.    
     2 'norm      '    .25942E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13960E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10283E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16912E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.466       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16619       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4938       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8233       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11729E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.7739       1.0000         .10000E-03   10000.    
    24 'norm      '    22.249       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80927       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2178       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.

 FCN=   3743.707     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3321 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.101        58.323        .24333E-05   -.15989E-04
   2  norm          .10000E-03    1.3154        .42770E-06** at limit **
   3  Prefactor     2.7770        19.258        .18335E-06   -.32852E-04
   4  Prefactor     .10003E-03    719.78       -.13243E-04** at limit **
   5  Prefactor     .10000E-03    29.957        .13071E-05** at limit **
   6  norm          .10000E-03    2.6779        .25951E-06** at limit **
   7  Prefactor     .10000E-03    12.614       -.19204E-06** at limit **
   8  Prefactor     .10000E-03    2.6745        .11504E-07** at limit **
   9  Prefactor     .10000E-03    159.02       -.50608E-06** at limit **
  10  Prefactor     .10000E-03    4.4277       -.16918E-06** at limit **
  11  Prefactor     .10000E-03    50.853       -.12107E-05** at limit **
  12  Prefactor     11.469        10.070        .90882E-07   -.16713E-04
  13  Prefactor     17.910        48.045        .55236E-06   -.22981E-04
  14  Prefactor     .10000E-03    58.219       -.63381E-07** at limit **
  15  Prefactor     .10000E-03    28.832        .73670E-07** at limit **
  16  Prefactor     3.0720        3.6565       -.86322E-07   -.36717E-03
  17  Prefactor     .21456        7.4273        .20524E-05   -.80726E-03
  18  Prefactor     3.4797        7.2106       -.62176E-07   -.51206E-03
  19  norm          1.6931        1.4105        .32462E-07   -.95705E-03
  20  Prefactor     .10000E-03    24.617       -.14765E-08** at limit **
  21  norm          1.8237        1.8361        .63098E-06    .51449E-03
  22  Prefactor     .10000E-03    77.225        .85541E-06** at limit **
  23  Prefactor     5.7753        5.1779        .45679E-06    .28365E-04
  24  norm          22.250        18.978        .38186E-06   -.12734E-04
  25  Prefactor     .10000E-03    75.113        .77727E-06** at limit **
  26  Normalizat    .80913        .24646       -.32253E-05   -.40584E-03
  27  Prefactor     1.2179        .20743        .13628E-06   -.48292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1007
  norm       = 0.000100005
  Prefactor  = 2.777
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4688
  Prefactor  = 17.9104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07197
  Prefactor  = 0.214563
  Prefactor  = 3.47971
  norm       = 1.69306
  Prefactor  = 0.0001
  norm       = 1.8237
  Prefactor  = 0.000100001
  Prefactor  = 5.77526
  norm       = 22.2497
  Prefactor  = 0.0001
  Normalizat = 0.809134
  Prefactor  = 1.21788
 **********
 **   18 **HESSE 
 **********

 FCN=   3743.707     FROM HESSE     STATUS=OK           486 CALLS     3807 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.101        58.495        .83361E-04   -1.4746    
   2  norm          .10000E-03    9.8684        .13234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7770        19.177        .24428E-03   -1.5375    
   4  Prefactor     .10003E-03    727.81        .20526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0857        .19415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6860        .97718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    159.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5148        .12558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    51.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.469        10.071        .11831E-03   -1.5031    
  13  Prefactor     17.910        48.024        .94648E-04   -1.4861    
  14  Prefactor     .10000E-03    58.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0720        3.6224        .11410E-03   -1.5357    
  17  Prefactor     .21456        66.755        .22964E-02   -1.5615    
  18  Prefactor     3.4797        7.4746        .18482E-03   -1.5335    
  19  norm          1.6931        1.4227        .60584E-04   -1.5448    
  20  Prefactor     .10000E-03    24.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8237        1.8387        .38758E-03   -1.5438    
  22  Prefactor     .10000E-03    78.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.7753        5.1534        .12238E-03   -1.5227    
  24  norm          22.250        18.983        .84918E-04   -1.4764    
  25  Prefactor     .10000E-03    75.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .80913        .28295        .28606E-03   -.99731    
  27  Prefactor     1.2179        .24521        .22192E-03   -.85783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33525e-08
Minuit parameter uncertainties:
  1  58.641
  2  0.000431708
  3  14.6015
  4  0.0101298
  5  0.000194066
  6  1.01518e-05
  7  2.12062e-06
  8  4.10941e-06
  9  0.000513286
  10  6.13579e-07
  11  0.000203397
  12  10.0723
  13  48.1283
  14  7.91868e-05
  15  4.96071e-05
  16  3.62261
  17  7.57597
  18  7.47658
  19  1.42272
  20  1.31126e-05
  21  1.83878
  22  0.000494761
  23  5.15381
  24  18.9882
  25  0.000317512
  26  0.283472
  27  0.245445
Done.

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

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  5.133e-04  1.000e-04  1.000e+04 ( 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:  1.218e+00  2.454e-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:  8.091e-01  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/430165/likelihoodResults_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.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) = 3743.70659885
delta logL = -2.97660062643e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3743.70656912
delta logL = -3.09573806589e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11121E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9231       1.0000          .0000       10.000    
     3 'Normalizat'    .80913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2179       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.

 FCN=   3743.707     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      242 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9517.8        .90712E-02** at limit **
   2  Index         1.9336        8.9904        .50000       -.55301E-06
   3  Normalizat    .80914        .67431E-01    .64666E-01    .15722E-04
   4  Prefactor     1.2179        .63155E-01    .50200E-01   -.61094E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93361
  Normalizat = 0.809136
  Prefactor  = 1.21788
 **********
 **   18 **HESSE 
 **********

 FCN=   3743.707     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    152.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9336        5.9562        .50000       -.66020    
   3  Normalizat    .80914        .25386        .28606E-03   -.99731    
   4  Prefactor     1.2179        .23819        .22192E-03   -.85783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59809e-12
Minuit parameter uncertainties:
  1  0.00039557
  2  3.95936
  3  0.254235
  4  0.238402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430165': 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) = 3743.70656908
delta logL = 5.37920641364e-09

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.956e-04  1.000e-04  1.000e+04 ( 1.000e-15)
266        Index:  1.934e+00  3.959e+00  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:  1.218e+00  2.384e-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:  8.091e-01  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 51.219 -20.729

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/430165/cmap_HighResolution_512784001_513043201_4FGL_J0324.8-2043_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-08-18 05:47:41.009159', job_id='430165', GAL2='1.22', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1629290861.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.38e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1055' AND source_name='4FGL J0324.8-2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 05:47:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 430165: <4FGL_J0324.8-2043_daily_bin1055> in cluster <slac> Done

Job <4FGL_J0324.8-2043_daily_bin1055> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Aug 18 05:33:42 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 05:34:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 05:34:42 2021
Terminated at Wed Aug 18 05:47:41 2021
Results reported at Wed Aug 18 05:47:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0324.8-2043_daily_bin1055 51.2191 -20.7285 512784001 513043201 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 :                                   501.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            839 sec.

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

