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


Performing analysis on: 4FGL_J0324.8-2043_daily_bin1607
RA = 51.2191, Dec = -20.7285
tmin = 655862401, tmax = 656121601
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='173631', job_status='RUN', time_executed='2021-12-07 14:01:19.955309', time_epoch_executed='1638914479.96' WHERE source_name='4FGL J0324.8-2043' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173631

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173631/ft1_4FGL_J0324.8-2043_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173631/ft1_4FGL_J0324.8-2043_daily_bin1607.fits outfile=/scratch/kocevski/173631/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1607.fits ra=51.2191 dec=-20.7285 rad=12.0 tmin=655862401.0 tmax=656121601.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.62
user 4.36
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.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/173631/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1607.fits evtable="EVENTS" outfile="/scratch/kocevski/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/173631/ltcube_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.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/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits
.....................!
real 14.16
user 13.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/173631/ltcube_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.fits outfile=/scratch/kocevski/173631/expmap_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.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/173631/ltcube_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.fits
.....................!
real 193.97
user 188.11
sys 4.71

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/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.fits scfile=/scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits outfile=/scratch/kocevski/173631/cmap_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.fits scfile=/scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits outfile=/scratch/kocevski/173631/cmap_HighResolution_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/173631/Model_4FGL_J0324.8-2043_daily_bin1607.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/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.fits.....................!
real 114.47
user 112.70
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.fits', '/scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits', expMap='/scratch/kocevski/173631/expmap_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.fits', expCube='/scratch/kocevski/173631/ltcube_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/173631/Model_4FGL_J0324.8-2043_daily_bin1607.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/173631/ft1_filtered_4FGL_J0324.8-2043_daily_bin1607.fits
Spacecraft file(s): /scratch/kocevski/173631/ft2_4FGL_J0324.8-2043_daily_bin1607.fits
Exposure map: /scratch/kocevski/173631/expmap_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.fits
Exposure cube: /scratch/kocevski/173631/ltcube_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/173631/Model_4FGL_J0324.8-2043_daily_bin1607.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) = 4984.16490385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7307       1.0000         .10000E-03   10000.    
     9 'Prefactor '    102.25       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.790       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16513       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.7898       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3934       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.222       1.0000         .10000E-03   10000.    
    24 'norm      '    8.5800       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.073       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1283       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .61656       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=   4984.142     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3249 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.955       -.63392E-06** at limit **
   2  norm          .10000E-03    1.1153       -.21969E-06** at limit **
   3  Prefactor     5.2368        10.569       -.22872E-05   -.10404E-03
   4  Prefactor     .10000E-03    83.963        .79804E-06** at limit **
   5  Prefactor     .10000E-03    3.9297       -.77823E-06** at limit **
   6  norm          .10000E-03    1.1344       -.28942E-08** at limit **
   7  Prefactor     .10000E-03    7.1433        .13245E-05** at limit **
   8  Prefactor     2.7300        4.3754       -.12726E-05   -.29037E-03
   9  Prefactor     102.16        172.09       -.88483E-04    .46817E-05
  10  Prefactor     .10000E-03    1.1175        .43199E-07** at limit **
  11  Prefactor     .10000E-03    11.239        .35101E-05** at limit **
  12  Prefactor     .10000E-03    3.8934        .93395E-06** at limit **
  13  Prefactor     .10000E-03    14.497        .86140E-06** at limit **
  14  Prefactor     .10000E-03    18.359       -.36774E-05** at limit **
  15  Prefactor     53.771        43.408       -.16487E-04    .11902E-04
  16  Prefactor     .10000E-03    .83841        .18894E-06** at limit **
  17  Prefactor     .19655        2.4904       -.13077E-05    .95422E-03
  18  Prefactor     .10000E-03    2.3857        .45915E-07** at limit **
  19  norm          7.7880        1.5446       -.28500E-07    .17697E-02
  20  Prefactor     .10000E-03    7.0641       -.86452E-06** at limit **
  21  norm          1.3923        1.5660       -.50090E-06   -.42331E-03
  22  Prefactor     .10000E-03    9.3084       -.19172E-05** at limit **
  23  Prefactor     12.223        4.1612        .12748E-05    .22354E-03
  24  norm          8.5790        11.478        .29957E-07   -.18224E-04
  25  Prefactor     19.069        18.742        .86534E-07    .49977E-04
  26  Normalizat    1.1278        .18217        .16256E-05    .31184E-03
  27  Prefactor     .61696        .16499        .30534E-05    .14785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.23681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.73003
  Prefactor  = 102.161
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.7708
  Prefactor  = 0.0001
  Prefactor  = 0.196545
  Prefactor  = 0.0001
  norm       = 7.78801
  Prefactor  = 0.0001
  norm       = 1.39232
  Prefactor  = 0.0001
  Prefactor  = 12.2233
  norm       = 8.57896
  Prefactor  = 19.0686
  Normalizat = 1.12776
  Prefactor  = 0.616957
 **********
 **   18 **HESSE 
 **********

 FCN=   4984.142     FROM HESSE     STATUS=OK           482 CALLS     3731 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.6452        .14362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2368        10.578        .17559E-03   -1.5250    
   4  Prefactor     .10000E-03    84.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9318        .13668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1422        .73417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7300        4.3662        .17973E-03   -1.5377    
   9  Prefactor     102.16        172.07        .19881E-03   -1.3683    
  10  Prefactor     .10000E-03    1.1189        .72884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.8996        .13604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.771        43.420        .54689E-04   -1.4240    
  16  Prefactor     .10000E-03    .84544        .63054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19655        26.286        .20209E-02   -1.5619    
  18  Prefactor     .10000E-03    2.4179        .10608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.7880        1.5514        .36411E-04   -1.5150    
  20  Prefactor     .10000E-03    7.0672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3923        1.5330        .85776E-04   -1.5472    
  22  Prefactor     .10000E-03    9.3296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.223        4.1375        .77217E-04   -1.5009    
  24  norm          8.5790        11.474        .13685E-03   -1.5122    
  25  Prefactor     19.069        18.731        .91711E-04   -1.4834    
  26  Normalizat    1.1278        .20870        .22202E-03   -.88865    
  27  Prefactor     .61696        .18932        .26595E-03   -1.0688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.838e-09
Minuit parameter uncertainties:
  1  1.71517e-05
  2  2.95507e-05
  3  10.5821
  4  9.24142e-05
  5  4.16971e-06
  6  1.88326e-06
  7  5.98268e-06
  8  4.36669
  9  172.926
  10  4.4785e-06
  11  0.000170658
  12  3.48959e-06
  13  1.19639e-05
  14  8.11383e-06
  15  43.4458
  16  9.92644e-06
  17  4.54683
  18  1.52811e-05
  19  1.55143
  20  1.30583e-05
  21  1.53306
  22  7.8963e-06
  23  4.13764
  24  11.4772
  25  18.7368
  26  0.208856
  27  0.189515
Done.

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

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  1.022e+02  1.729e+02  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:  6.170e-01  1.895e-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.128e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/173631/likelihoodResults_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.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) = 4983.67300034
delta logL = 0.469162315775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4983.63903413
delta logL = 0.50312853216

Fit tolerance = 1e-08

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

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

 FCN=   4983.639     FROM MIGRAD    STATUS=FAILED        92 CALLS      319 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.785        658.15        .82115E-04   -.47765E-04
   2  Index         2.8498        3.3648        .43718E-02    .62442E-03
   3  Normalizat    1.0927        .22626        .22504E-03    .51665E-03
   4  Prefactor     .63247        .19686        .26277E-03    .19088E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4983.639     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      406 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.785        658.15        .24433E-03   -1.4732    
   2  Index         2.8498        3.3648        .50523E-03   -.44453    
   3  Normalizat    1.0927        .22626        .13457E-03   -.89988    
   4  Prefactor     .63247        .19686        .17449E-03   -1.0624    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4983.639     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      435 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.784        71.098        .32846E-05   -.80993E-04
   2  Index         2.8498        1.0582        .87436E-03   -.32506E-05
   3  Normalizat    1.0927        .20721        .45007E-04    .41385E-03
   4  Prefactor     .63247        .18548        .10511E-04    .15186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7841
  Index      = 2.84985
  Normalizat = 1.09265
  Prefactor  = 0.632473
 **********
 **   18 **HESSE 
 **********

 FCN=   4983.639     FROM HESSE     STATUS=OK            23 CALLS      458 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.784        63.270        .65692E-06   -1.4732    
   2  Index         2.8498        .94575        .34974E-04   -.44453    
   3  Normalizat    1.0927        .20679        .90015E-05   -.89988    
   4  Prefactor     .63247        .18514        .21022E-05   -1.0624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2556e-10
Minuit parameter uncertainties:
  1  63.4492
  2  0.952813
  3  0.206944
  4  0.185319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173631': 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) = 4983.63901488
delta logL = 0.503147775828

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  2.378e+01  6.345e+01  1.000e-04  1.000e+04 ( 1.000e-15)
266        Index:  2.850e+00  9.528e-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:  6.325e-01  1.853e-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.093e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 51.219 -20.729
Photon Index (Free Index): 2.85 +/- 0.95
Photon Flux (Free Index): 4.29e-08 +/- 4.88e-08
Energy Flux (Free Index): 9.29e-06 +/- 9.53e-06

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/173631/cmap_HighResolution_655862401_656121601_4FGL_J0324.8-2043_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', comment='SUCCESS', energy_flux2='9.29e-06', dlogl='5.03e-01', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-12-07 14:13:29.357079', photon_index_error2='0.95', photon_index2='2.85', ts='0.55', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='7.07e-08', energy_flux_error2='9.53e-06', EG='1.13', time_epoch_completed='1638915209.36', return_code='0', job_id='173631', GAL2='0.63', EG2='1.09', return_code2='0', photon_flux_error2='4.88e-08', ts2='1.57', photon_index='1.89' WHERE bin_id='1607' AND source_name='4FGL J0324.8-2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:13:29 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 173631: <4FGL_J0324.8-2043_daily_bin1607> in cluster <slac> Done

Job <4FGL_J0324.8-2043_daily_bin1607> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  7 14:00:15 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:00:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:00:34 2021
Terminated at Tue Dec  7 14:13:30 2021
Results reported at Tue Dec  7 14:13:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0324.8-2043_daily_bin1607 51.2191 -20.7285 655862401 656121601 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 :                                   727.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            795 sec.

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

