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


Performing analysis on: 4FGL_J0324.8-2043_daily_bin1656
RA = 51.2191, Dec = -20.7285
tmin = 668563201, tmax = 668822401
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='371301', job_status='RUN', time_executed='2022-03-13 00:08:53.721964', time_epoch_executed='1647158933.72' WHERE source_name='4FGL J0324.8-2043' and cadence='daily' and bin_id='1656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/371301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/371301/ft1_4FGL_J0324.8-2043_daily_bin1656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/371301/ft2_4FGL_J0324.8-2043_daily_bin1656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/371301/ft1_4FGL_J0324.8-2043_daily_bin1656.fits outfile=/scratch/kocevski/371301/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1656.fits ra=51.2191 dec=-20.7285 rad=12.0 tmin=668563201.0 tmax=668822401.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.34
user 5.05
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/371301/ft2_4FGL_J0324.8-2043_daily_bin1656.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/371301/ft1_filteredMKT_4FGL_J0324.8-2043_daily_bin1656.fits evtable="EVENTS" outfile="/scratch/kocevski/371301/ft1_filtered_4FGL_J0324.8-2043_daily_bin1656.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.51
user 0.35
sys 0.15
Number of photons that survived the gtmktime cut: 311

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/371301/ft1_filtered_4FGL_J0324.8-2043_daily_bin1656.fits" evtable="EVENTS" scfile=/scratch/kocevski/371301/ft2_4FGL_J0324.8-2043_daily_bin1656.fits sctable="SC_DATA" outfile=/scratch/kocevski/371301/ltcube_668563201_668822401_4FGL_J0324.8-2043_daily_bin1656.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/371301/ft2_4FGL_J0324.8-2043_daily_bin1656.fits
.....................!
real 15.87
user 15.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/371301/ft1_filtered_4FGL_J0324.8-2043_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/371301/ft2_4FGL_J0324.8-2043_daily_bin1656.fits sctable="SC_DATA" expcube=/scratch/kocevski/371301/ltcube_668563201_668822401_4FGL_J0324.8-2043_daily_bin1656.fits outfile=/scratch/kocevski/371301/expmap_668563201_668822401_4FGL_J0324.8-2043_daily_bin1656.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/371301/ltcube_668563201_668822401_4FGL_J0324.8-2043_daily_bin1656.fits
.....................!
real 192.08
user 185.98
sys 5.38

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/371301/ft1_filtered_4FGL_J0324.8-2043_daily_bin1656.fits scfile=/scratch/kocevski/371301/ft2_4FGL_J0324.8-2043_daily_bin1656.fits outfile=/scratch/kocevski/371301/cmap_668563201_668822401_4FGL_J0324.8-2043_daily_bin1656.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/371301/ft1_filtered_4FGL_J0324.8-2043_daily_bin1656.fits scfile=/scratch/kocevski/371301/ft2_4FGL_J0324.8-2043_daily_bin1656.fits outfile=/scratch/kocevski/371301/cmap_HighResolution_668563201_668822401_4FGL_J0324.8-2043_daily_bin1656.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/371301/ft1_filtered_4FGL_J0324.8-2043_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/371301/ft2_4FGL_J0324.8-2043_daily_bin1656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/371301/Model_4FGL_J0324.8-2043_daily_bin1656.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/371301/ft1_filtered_4FGL_J0324.8-2043_daily_bin1656.fits.....................!
real 83.76
user 81.08
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .93899       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5627       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23467E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12426E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14963E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    76.946       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.322       1.0000         .10000E-03   10000.    
    14 'Prefactor '    70.229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12732E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22815       1.0000         .10000E-03   10000.    
    19 'norm      '    7.2150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12234E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12340E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93623       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1246       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=   3621.927     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3351 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.932       -.68121E-06** at limit **
   2  norm          .93895        2.9552       -.25749E-06   -.33697E-04
   3  Prefactor     3.5606        12.091       -.19596E-05   -.54262E-04
   4  Prefactor     9.8571        262.34       -.26747E-05   -.28221E-06
   5  Prefactor     .10000E-03    9.2070        .70015E-08** at limit **
   6  norm          .10000E-03    1.9158        .29882E-07** at limit **
   7  Prefactor     .10000E-03    9.5531       -.16644E-07** at limit **
   8  Prefactor     .10011E-03    16.971        .37585E-05** at limit **
   9  Prefactor     .10000E-03    102.43       -.24317E-06** at limit **
  10  Prefactor     .10000E-03    4.9061       -.20233E-06** at limit **
  11  Prefactor     76.880        39.350        .27848E-07    .82938E-04
  12  Prefactor     .10000E-03    8.5860        .21112E-07** at limit **
  13  Prefactor     67.509        91.964        .91383E-05    .10045E-03
  14  Prefactor     70.128        78.806       -.60005E-05   -.63951E-04
  15  Prefactor     .10000E-03    26.655       -.13022E-06** at limit **
  16  Prefactor     .10000E-03    1.5569        .18429E-07** at limit **
  17  Prefactor     .10000E-03    2.1031        .25926E-07** at limit **
  18  Prefactor     .22598        3.3269        .38888E-06   -.14696E-03
  19  norm          7.2147        2.0722       -.46435E-07   -.32706E-03
  20  Prefactor     .10000E-03    25.242       -.12805E-05** at limit **
  21  norm          .10000E-03    .82444        .61803E-07** at limit **
  22  Prefactor     .10000E-03    19.356        .45517E-06** at limit **
  23  Prefactor     .10000E-03    1.1545        .45758E-07** at limit **
  24  norm          .10000E-03    16.070       -.27278E-07** at limit **
  25  Prefactor     .10079E-03    173.09        .20772E-04** at limit **
  26  Normalizat    .93638        .25785        .34106E-05    .12304E-03
  27  Prefactor     1.1243        .21465       -.19287E-05    .23266E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.938955
  Prefactor  = 3.56057
  Prefactor  = 9.85707
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.88
  Prefactor  = 0.0001
  Prefactor  = 67.5095
  Prefactor  = 70.1278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.225976
  norm       = 7.21473
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100793
  Normalizat = 0.936385
  Prefactor  = 1.12434
 **********
 **   18 **HESSE 
 **********

 FCN=   3621.927     FROM HESSE     STATUS=OK           480 CALLS     3831 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .93895        2.9225        .17023E-03   -1.5514    
   3  Prefactor     3.5606        12.183        .10706E-02   -1.5331    
   4  Prefactor     9.8571        262.68        .12759E-03   -1.5080    
   5  Prefactor     .10000E-03    9.2140        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9279        .81330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10011E-03    28.977        .32427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    102.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9260        .13002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     76.880        39.432        .45778E-04   -1.3952    
  12  Prefactor     .10000E-03    8.6030        .17223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     67.509        93.215        .24458E-03   -1.4063    
  14  Prefactor     70.128        79.207        .23950E-03   -1.4031    
  15  Prefactor     .10000E-03    26.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5730        .73277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.1067        .85197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .22598        19.630        .20682E-02   -1.5613    
  19  norm          7.2147        2.0708        .43812E-04   -1.5171    
  20  Prefactor     .10000E-03    25.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .84132        .53288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1586        .63137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    16.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10079E-03    254.77        .65655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93638        .28594        .28676E-03   -.95193    
  27  Prefactor     1.1243        .24096        .23520E-03   -.88692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01269e-09
Minuit parameter uncertainties:
  1  8.09202e-05
  2  2.9229
  3  12.1912
  4  102.27
  5  7.95548e-06
  6  8.73343e-07
  7  6.06598e-06
  8  0.00355303
  9  3.86142e-05
  10  8.10805e-06
  11  39.4454
  12  8.18034e-06
  13  93.4171
  14  79.3262
  15  9.4472e-06
  16  9.61098e-07
  17  1.55729e-06
  18  4.21283
  19  2.07083
  20  8.78511e-05
  21  3.32407e-07
  22  2.53238e-05
  23  2.24787e-07
  24  2.34473e-05
  25  0.0285459
  26  0.286411
  27  0.241196
Done.

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

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.861e-05  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.124e+00  2.412e-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:  9.364e-01  2.864e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/371301/likelihoodResults_668563201_668822401_4FGL_J0324.8-2043_daily_bin1656.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3621.92674474
delta logL = -4.63860928903e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3621.92669917
delta logL = -8.21088178782e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19323E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0938       1.0000          .0000       10.000    
     3 'Normalizat'    .93639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1243       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=   3621.927     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10264E-03    27.022        .18142E-01** at limit **
   2  Index         2.0179        6.0082        .50000        .40978E-05
   3  Normalizat    .93639        .35786E-02    .28677E-03   -.28286E-04
   4  Prefactor     1.1243        .32025E-02    .23520E-03   -.41545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102639
  Index      = 2.01795
  Normalizat = 0.936386
  Prefactor  = 1.12434
 **********
 **   18 **HESSE 
 **********

 FCN=   3621.927     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10264E-03    223.50        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0179        5.2615        .50000       -.63902    
   3  Normalizat    .93639        .10350E-01    .11471E-04   -.95193    
   4  Prefactor     1.1243        .92620E-02    .47040E-04   -.88692    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24093e-10
Minuit parameter uncertainties:
  1  0.0487576
  2  302.102
  3  0.0103496
  4  0.00926203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/371301': 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): 102
logL (Free Index) = 3621.92669848
delta logL = -1.23740846902e-07

Extracting fit parameters...

4FGL J0324.8-2043
   Spectrum: PowerLaw
265    Prefactor:  1.026e-04  4.876e-02  1.000e-04  1.000e+04 ( 1.000e-15)
266        Index:  2.018e+00  3.021e+02  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.124e+00  9.262e-03  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:  9.364e-01  1.035e-02  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/371301/cmap_HighResolution_668563201_668822401_4FGL_J0324.8-2043_daily_bin1656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2022-03-13 00:19:04.581577', job_id='371301', GAL2='1.12', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1647159544.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-1.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.89' WHERE bin_id='1656' AND source_name='4FGL J0324.8-2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar 13 00:19:04 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 371301: <4FGL_J0324.8-2043_daily_bin1656> in cluster <slac> Done

Job <4FGL_J0324.8-2043_daily_bin1656> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Mar 13 00:05:04 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar 13 00:08:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar 13 00:08:36 2022
Terminated at Sun Mar 13 00:19:05 2022
Results reported at Sun Mar 13 00:19:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0324.8-2043_daily_bin1656 51.2191 -20.7285 668563201 668822401 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 :                                   610.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            841 sec.

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

