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


Performing analysis on: 4FGL_J0333.0-3044_daily_bin1601
RA = 53.2633, Dec = -30.7449
tmin = 654307201, tmax = 654566401
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='539749', job_status='RUN', time_executed='2021-09-29 00:06:00.671172', time_epoch_executed='1632899160.67' WHERE source_name='4FGL J0333.0-3044' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/539749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/539749/ft1_4FGL_J0333.0-3044_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/539749/ft1_4FGL_J0333.0-3044_daily_bin1601.fits outfile=/scratch/kocevski/539749/ft1_filteredMKT_4FGL_J0333.0-3044_daily_bin1601.fits ra=53.2633 dec=-30.7449 rad=12.0 tmin=654307201.0 tmax=654566401.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.23
user 3.99
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.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/539749/ft1_filteredMKT_4FGL_J0333.0-3044_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/539749/ltcube_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.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/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits
.....................!
real 16.26
user 15.91
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/539749/ltcube_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.fits outfile=/scratch/kocevski/539749/expmap_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.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/539749/ltcube_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.fits
.....................!
real 189.94
user 185.34
sys 4.18

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 168 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 J0333.0-3044 @ 53.2633 -30.7449

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.fits scfile=/scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits outfile=/scratch/kocevski/539749/cmap_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.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=53.2633 yref=-30.7449 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.fits scfile=/scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits outfile=/scratch/kocevski/539749/cmap_HighResolution_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.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=53.2633 yref=-30.7449 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/539749/Model_4FGL_J0333.0-3044_daily_bin1601.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/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.fits.....................!
real 106.07
user 104.55
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.fits', '/scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits', expMap='/scratch/kocevski/539749/expmap_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.fits', expCube='/scratch/kocevski/539749/ltcube_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/539749/Model_4FGL_J0333.0-3044_daily_bin1601.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0333.0-3044'

4FGL J0333.0-3044
   Spectrum: PowerLaw
259    Prefactor:  2.039e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
260        Index:  2.028e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/539749/ft1_filtered_4FGL_J0333.0-3044_daily_bin1601.fits
Spacecraft file(s): /scratch/kocevski/539749/ft2_4FGL_J0333.0-3044_daily_bin1601.fits
Exposure map: /scratch/kocevski/539749/expmap_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.fits
Exposure cube: /scratch/kocevski/539749/ltcube_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/539749/Model_4FGL_J0333.0-3044_daily_bin1601.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) = 4845.88604743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11457E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.247       1.0000         .10000E-03   10000.    
     5 'norm      '    8.7817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .63104E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2001       1.0000         .10000E-03   10000.    
    10 'norm      '    .71191       1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .51547       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.244       1.0000         .10000E-03   10000.    
    16 'norm      '    8.5476       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.306       1.0000         .10000E-03   10000.    
    19 'norm      '    6.3287       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .33501       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0299       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4906       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74095       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4845.836     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     2270 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8723        .20744E-05** at limit **
   2  Prefactor     .10184E-03    78.716       -.26806E-03** at limit **
   3  Prefactor     .10005E-03    37.109        .13879E-03** at limit **
   4  Prefactor     13.262        1.8421        .68561E-05    .25547E-04
   5  norm          8.7803        4.6181        .12601E-04   -.24970E-03
   6  Prefactor     21.016        2.5725        .90657E-05   -.37420E-02
   7  Prefactor     .27642E-03    2.2164       -.50715E-04** at limit **
   8  Prefactor     .10001E-03    15.481       -.54750E-04** at limit **
   9  norm          3.1994        3.0679       -.21982E-05   -.39170E-03
  10  norm          .71198        .66656        .11578E-06    .65513E-03
  11  Prefactor     66.476        4.0017        .87587E-05   -.20488E-01
  12  Prefactor     1.7059        2.0098        .16601E-05    .20000E-03
  13  Prefactor     .54835        10.784       -.12317E-04    .20339E-03
  14  Prefactor     .10000E-03    1.8474       -.21923E-05** at limit **
  15  Prefactor     14.262        2.0563        .74517E-05   -.25664E-03
  16  norm          8.5471        1.9051       -.56817E-06    .20945E-03
  17  norm          .10000E-03    .46706       -.12866E-05** at limit **
  18  Prefactor     51.303        1.0896       -.11248E-05    .23303E-02
  19  norm          6.3408        1.2051       -.18867E-05    .11740E-03
  20  Prefactor     .10000E-03    10.297        .39383E-04** at limit **
  21  norm          .33467        .40023        .68875E-06   -.12843E-02
  22  norm          4.0397        1.2830       -.58611E-05   -.11173E-02
  23  Normalizat    1.4903        .27933        .16362E-04    .16525E-03
  24  Prefactor     .74096        .28254       -.28856E-04   -.96668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000101836
  Prefactor  = 0.000100054
  Prefactor  = 13.2624
  norm       = 8.78031
  Prefactor  = 21.0159
  Prefactor  = 0.000276415
  Prefactor  = 0.000100005
  norm       = 3.19941
  norm       = 0.711979
  Prefactor  = 66.4758
  Prefactor  = 1.7059
  Prefactor  = 0.548348
  Prefactor  = 0.0001
  Prefactor  = 14.2623
  norm       = 8.54713
  norm       = 0.0001
  Prefactor  = 51.3032
  norm       = 6.34076
  Prefactor  = 0.000100001
  norm       = 0.334672
  norm       = 4.03974
  Normalizat = 1.49026
  Prefactor  = 0.740962
 **********
 **   18 **HESSE 
 **********

 FCN=   4845.836     FROM HESSE     STATUS=OK           457 CALLS     2727 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8539        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10184E-03    81.159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    37.338        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.262        19.621        .27513E-02   -1.4979    
   5  norm          8.7803        4.6330        .33815E-02   -1.5115    
   6  Prefactor     21.016        26.681        .21852E-02   -1.4791    
   7  Prefactor     .27642E-03    446.93        .10518E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    15.483        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1994        3.0854        .56624E-02   -1.5350    
  10  norm          .71198        .64387        .12089E-01   -1.5539    
  11  Prefactor     66.476        51.039        .12309E-02   -1.4075    
  12  Prefactor     1.7059        2.0237        .80446E-02   -1.5447    
  13  Prefactor     .54835        3.3422        .64888E-01   -1.5560    
  14  Prefactor     .10000E-03    1.8428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.262        20.446        .26532E-02   -1.4952    
  16  norm          8.5471        1.9226        .34278E-02   -1.5123    
  17  norm          .10000E-03    .46460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.303        134.13        .13998E-02   -1.4274    
  19  norm          6.3408        13.800        .39889E-02   -1.5204    
  20  Prefactor     .10000E-03    10.289        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .33467        .46809        .10359E-01   -1.5592    
  22  norm          4.0397        12.456        .50219E-02   -1.5306    
  23  Normalizat    1.4903        .23792        .55554E-01   -.78052    
  24  Prefactor     .74096        .23985        .78332E-01   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33395e-06
Minuit parameter uncertainties:
  1  1.51919e-05
  2  0.0244444
  3  0.00283267
  4  19.6303
  5  4.63317
  6  26.6962
  7  0.565857
  8  0.000558569
  9  3.08554
  10  0.643873
  11  51.073
  12  2.02378
  13  2.70752
  14  2.75812e-05
  15  20.4561
  16  1.92266
  17  1.80484e-06
  18  134.928
  19  13.8068
  20  0.000211488
  21  0.468098
  22  12.4639
  23  0.238098
  24  0.240189
Done.

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

Extracting fit parameters...

4FGL J0333.0-3044
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.586e-04  1.000e-04  1.000e+04 ( 1.000e-14)
260        Index:  2.028e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  7.410e-01  2.402e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.490e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 53.263 -30.745
Photon Flux Upper Limit: 5.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/539749/likelihoodResults_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.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) = 4845.83604002
delta logL = -0.000303508773868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4845.83573781
delta logL = -1.29707586893e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2786       1.0000          .0000       10.000    
     3 'Normalizat'    1.4902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   4845.836     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      273 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10172E-03    66.608        .18142E-02** at limit **
   2  Index         2.2203        8.6972        .50000        .21959E-04
   3  Normalizat    1.4903        .13342E-01    .24563E-03   -.26585E-04
   4  Prefactor     .74097        .13876E-01    .34679E-03    .84251E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101715
  Index      = 2.2203
  Normalizat = 1.49026
  Prefactor  = 0.740969
 **********
 **   18 **HESSE 
 **********

 FCN=   4845.836     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10172E-03    291.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2203        7.1553        .50000       -.58949    
   3  Normalizat    1.4903        .28601E-01    .49127E-04   -.78053    
   4  Prefactor     .74097        .29744E-01    .13872E-04   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78476e-08
Minuit parameter uncertainties:
  1  0.0449809
  2  361.848
  3  0.028601
  4  0.0297446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/539749': 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) = 4845.83573738
delta logL = -8.6322597781e-07

Extracting fit parameters...

4FGL J0333.0-3044
   Spectrum: PowerLaw
259    Prefactor:  1.017e-04  4.498e-02  1.000e-04  1.000e+04 ( 1.000e-14)
260        Index:  2.220e+00  3.618e+02  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  7.410e-01  2.974e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.490e+00  2.860e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 53.263 -30.745

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/539749/cmap_HighResolution_654307201_654566401_4FGL_J0333.0-3044_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.32e-08', time_completed='2021-09-29 00:16:52.983268', job_id='539749', GAL2='0.74', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632899812.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-8.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='1601' AND source_name='4FGL J0333.0-3044' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:16:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 539749: <4FGL_J0333.0-3044_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0333.0-3044_daily_bin1601> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 00:05:33 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:05:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:05:35 2021
Terminated at Wed Sep 29 00:16:53 2021
Results reported at Wed Sep 29 00:16:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0333.0-3044_daily_bin1601 53.2633 -30.7449 654307201 654566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0333.0-3044 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   623.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            680 sec.

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

