/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 196 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0433.0+0522_daily_bin249
RA = 68.2618, Dec = 5.3696
tmin = 303868801, tmax = 304128001
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='524468', job_status='RUN', time_executed='2021-08-20 19:29:08.874384', time_epoch_executed='1629512948.87' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524468/ft1_4FGL_J0433.0+0522_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524468/ft1_4FGL_J0433.0+0522_daily_bin249.fits outfile=/scratch/kocevski/524468/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin249.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=303868801.0 tmax=304128001.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 2.76
user 2.35
sys 0.39

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.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/524468/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin249.fits evtable="EVENTS" outfile="/scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.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.61
user 0.25
sys 0.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/524468/ltcube_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.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/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits
.....................!
real 8.87
user 8.39
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/524468/ltcube_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.fits outfile=/scratch/kocevski/524468/expmap_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.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/524468/ltcube_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.fits
.....................!
real 141.22
user 136.75
sys 4.25

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
Added 134 point sources and 0 extended sources

Setting source of interest to:
4FGL J0433.0+0522 @ 68.2618 5.3696

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.fits scfile=/scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits outfile=/scratch/kocevski/524468/cmap_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.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=68.2618 yref=5.3696 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.64
user 0.28
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.fits scfile=/scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits outfile=/scratch/kocevski/524468/cmap_HighResolution_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.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=68.2618 yref=5.3696 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.64
user 0.29
sys 0.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524468/Model_4FGL_J0433.0+0522_daily_bin249.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 GAL_V02
Working on...
/scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.fits.....................!
real 143.43
user 141.98
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.fits', '/scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits', expMap='/scratch/kocevski/524468/expmap_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.fits', expCube='/scratch/kocevski/524468/ltcube_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524468/Model_4FGL_J0433.0+0522_daily_bin249.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0433.0+0522'

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.780e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  2.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
186         beta:  2.655e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
187           Eb:  4.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/524468/ft1_filtered_4FGL_J0433.0+0522_daily_bin249.fits
Spacecraft file(s): /scratch/kocevski/524468/ft2_4FGL_J0433.0+0522_daily_bin249.fits
Exposure map: /scratch/kocevski/524468/expmap_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.fits
Exposure cube: /scratch/kocevski/524468/ltcube_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524468/Model_4FGL_J0433.0+0522_daily_bin249.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) = 13267.148874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    83.942       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32449E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .18027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.130       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83305E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14881       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5261       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17132E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9561       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.674       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.930       1.0000         .10000E-03   10000.    
    16 'norm      '    .37800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .87145E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28547E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.3073       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.120       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .52372E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    16.444       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9225       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .45531       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2380       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13267.01     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2484 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.481        45.152       -.32508E-06   -.58047E-02
   2  Prefactor     .10000E-03    10.091       -.15284E-05** at limit **
   3  norm          .10000E-03    59.325        .32885E-05** at limit **
   4  Prefactor     43.958        13.456       -.11647E-05    .83837E-02
   5  norm          .10000E-03    2.6117       -.11817E-05** at limit **
   6  Prefactor     .10012E-03    47.597        .40403E-05** at limit **
   7  norm          .13416        45.029       -.69309E-05    .13528E-02
   8  norm          1.5065        1.0148        .79742E-07    .13583E-03
   9  Prefactor     .10000E-03    1.0437        .16053E-06** at limit **
  10  Prefactor     .10000E-03    6.1527        .15832E-05** at limit **
  11  Prefactor     69.828        45.725        .30644E-05    .42995E-02
  12  Prefactor     1.9411        6.5840        .18637E-06    .59089E-05
  13  Prefactor     18.667        13.156       -.80393E-06   -.41790E-02
  14  norm          4.9865        2.7217       -.27713E-06   -.49479E-04
  15  Prefactor     15.988        1.5007        .10952E-06   -.35711E-03
  16  norm          .37343        1.1429        .59083E-06    .60811E-04
  17  Prefactor     .10000E-03    2.7357       -.18501E-06** at limit **
  18  norm          .10000E-03    20.327       -.27006E-05** at limit **
  19  Prefactor     .10000E-03    10.654       -.91631E-06** at limit **
  20  norm          7.3138        2.0958       -.32497E-06   -.13781E-03
  21  Prefactor     33.508        28.410       -.48290E-06    .23942E-02
  22  Prefactor     .10000E-03    6.4612        .49144E-06** at limit **
  23  norm          .57488E-01    1.3646       -.31498E-06   -.32201E-04
  24  norm          16.460        5.1122        .15051E-06   -.10431E-04
  25  Prefactor     2.9400        3.7790       -.16875E-07   -.98681E-05
  26  Normalizat    .45145        .25238        .24257E-05    .15253E-04
  27  Prefactor     1.2385        .76712E-01   -.72418E-08    .48783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.4808
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 43.9578
  norm       = 0.0001
  Prefactor  = 0.000100116
  norm       = 0.134163
  norm       = 1.5065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.8284
  Prefactor  = 1.94109
  Prefactor  = 18.6673
  norm       = 4.98648
  Prefactor  = 15.988
  norm       = 0.373428
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.3138
  Prefactor  = 33.5082
  Prefactor  = 0.0001
  norm       = 0.0574878
  norm       = 16.4604
  Prefactor  = 2.93998
  Normalizat = 0.451451
  Prefactor  = 1.23851
 **********
 **   18 **HESSE 
 **********

 FCN=   13267.01     FROM HESSE     STATUS=OK           578 CALLS     3062 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.481        51.245        .10961E-02   -1.3856    
   2  Prefactor     .10000E-03    10.001        .10678E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.5818        .13999       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.958        31.281        .15088E-02   -1.4381    
   5  norm          .10000E-03    2.5589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10012E-03    47.015        .10439E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .13416        6.8477        .16083       -1.5635    
   8  norm          1.5065        1.0585        .86413E-02   -1.5462    
   9  Prefactor     .10000E-03    .72846        .34815E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     69.828        50.949        .12270E-02   -1.4035    
  12  Prefactor     1.9411        6.8192        .74162E-02   -1.5429    
  13  Prefactor     18.667        13.385        .23171E-02   -1.4844    
  14  norm          4.9865        2.7746        .45002E-02   -1.5261    
  15  Prefactor     15.988        31.556        .25088E-02   -1.4908    
  16  norm          .37343        .97418        .47945E-01   -1.5586    
  17  Prefactor     .10000E-03    2.7210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .69128        .71856E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.643        .10705E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.3138        2.1255        .37094E-02   -1.5167    
  21  Prefactor     33.508        29.568        .17151E-02   -1.4550    
  22  Prefactor     .10000E-03    6.4033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .57488E-01    .27694        .28378E-01   -1.5660    
  24  norm          16.460        5.0422        .24692E-02   -1.4896    
  25  Prefactor     2.9400        3.8063        .59408E-02   -1.5365    
  26  Normalizat    .45145        .30807        .15903       -1.1472    
  27  Prefactor     1.2385        .85491E-01    .33789E-01   -.85154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85758e-07
Minuit parameter uncertainties:
  1  51.2715
  2  1.13267e-05
  3  0.000296732
  4  31.2928
  5  6.72067e-06
  6  0.00467943
  7  1.9165
  8  1.05853
  9  4.31205e-07
  10  1.51878e-05
  11  50.9808
  12  6.82196
  13  13.3868
  14  2.77468
  15  31.5891
  16  0.97422
  17  1.72163e-06
  18  9.00537e-06
  19  1.58198e-05
  20  2.1255
  21  29.5806
  22  3.90428e-06
  23  0.252138
  24  5.04232
  25  3.80659
  26  0.309236
  27  0.0855008
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  4.986e+00  2.775e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  2.556e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
186         beta:  2.655e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
187           Eb:  4.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
444    Prefactor:  1.239e+00  8.550e-02  0.000e+00  1.000e+01 ( 1.000e+00)
445        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
446        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
443   Normalization:  4.515e-01  3.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.08
Ra Dec: 68.262 5.370
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 9.95e-08 +/- 5.53e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.41e-05

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) = 13265.9125939
delta logL = 1.09657369859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13265.8060633
delta logL = 1.2031043367

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74363       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .33294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2685       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4470E+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=   13265.81     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      330 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74359        .47999        .42137E-04   -.11558E-02
   2  alpha         5.0000        1.0994        .50000    ** at limit **
   3  Normalizat    .33309        .22290        .81260E-03   -.83104E-05
   4  Prefactor     1.2685        .74076E-01    .14902E-03   -.28837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.743587
  alpha      = 5
  Normalizat = 0.33309
  Prefactor  = 1.26853
 **********
 **   18 **HESSE 
 **********

 FCN=   13265.81     FROM HESSE     STATUS=OK            29 CALLS      359 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74359        .47737        .16855E-05   -1.5536    
   2  alpha         5.0000        1.0885        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .33309        .22271        .32504E-04   -1.2092    
   4  Prefactor     1.2685        .74009E-01    .59610E-05   -.84248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18799e-11
Minuit parameter uncertainties:
  1  0.477373
  2  3.98964e-05
  3  0.2233
  4  0.0740148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524468': 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) = 13265.806062
delta logL = 1.203105658

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  7.436e-01  4.774e-01  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  5.000e+00  3.990e-05  0.000e+00  5.000e+00 ( 1.000e+00)
186         beta:  2.655e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
187           Eb:  4.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
444    Prefactor:  1.269e+00  7.401e-02  0.000e+00  1.000e+01 ( 1.000e+00)
445        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
446        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
443   Normalization:  3.331e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.17
Ra Dec: 68.262 5.370
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.75e-07 +/- 1.12e-07
Energy Flux (Free Index): 2.42e-05 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/524468/cmap_HighResolution_303868801_304128001_4FGL_J0433.0+0522_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.95e-08', energy_flux2='2.42e-05', photon_flux_error='5.53e-08', dlogl='1.20e+00', energy_flux='2.54e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-08-20 19:40:42.499408', photon_index_error2='0.00', photon_index2='5.00', ts='5.08', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.45', time_epoch_completed='1629513642.5', return_code='0', job_id='524468', GAL2='1.27', EG2='0.33', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='1.12e-07', ts2='8.17', photon_index='2.56' WHERE bin_id='249' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:40:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 524468: <4FGL_J0433.0+0522_daily_bin249> in cluster <slac> Done

Job <4FGL_J0433.0+0522_daily_bin249> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 19:25:39 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 19:25:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 19:25:41 2021
Terminated at Fri Aug 20 19:40:43 2021
Results reported at Fri Aug 20 19:40:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin249 68.2618 5.3696 303868801 304128001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0433.0+0522 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   694.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

