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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin1153
RA = 68.2618, Dec = 5.3696
tmin = 538185601, tmax = 538444801
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='532383', job_status='RUN', time_executed='2021-08-20 19:51:16.741857', time_epoch_executed='1629514276.74' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532383

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532383/ft1_4FGL_J0433.0+0522_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532383/ft1_4FGL_J0433.0+0522_daily_bin1153.fits outfile=/scratch/kocevski/532383/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin1153.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=538185601.0 tmax=538444801.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.55
user 5.05
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.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/532383/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin1153.fits evtable="EVENTS" outfile="/scratch/kocevski/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.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.73
user 0.32
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/532383/ltcube_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.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/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits
.....................!
real 12.74
user 12.09
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/532383/ltcube_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.fits outfile=/scratch/kocevski/532383/expmap_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.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/532383/ltcube_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.fits
.....................!
real 190.57
user 185.43
sys 4.82

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/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.fits scfile=/scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits outfile=/scratch/kocevski/532383/cmap_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.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.73
user 0.38
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.fits scfile=/scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits outfile=/scratch/kocevski/532383/cmap_HighResolution_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.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.78
user 0.38
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/532383/Model_4FGL_J0433.0+0522_daily_bin1153.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/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.fits.....................!
real 163.89
user 162.06
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.fits', '/scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits', expMap='/scratch/kocevski/532383/expmap_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.fits', expCube='/scratch/kocevski/532383/ltcube_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532383/Model_4FGL_J0433.0+0522_daily_bin1153.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/532383/ft1_filtered_4FGL_J0433.0+0522_daily_bin1153.fits
Spacecraft file(s): /scratch/kocevski/532383/ft2_4FGL_J0433.0+0522_daily_bin1153.fits
Exposure map: /scratch/kocevski/532383/expmap_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.fits
Exposure cube: /scratch/kocevski/532383/ltcube_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532383/Model_4FGL_J0433.0+0522_daily_bin1153.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11082.3905569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.332       1.0000         .10000E-03   10000.    
     3 'norm      '    31.719       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9912       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6995       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .48891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.778       1.0000         .10000E-03   10000.    
    20 'norm      '    6.1721       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .48631       1.0000         .10000E-03   10000.    
    24 'norm      '    15.609       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16761E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0234       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0565       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.

 FCN=   11082.24     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     2828 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.701        .35610E-04** at limit **
   2  Prefactor     34.328        18.461       -.60568E-06   -.12404E-03
   3  norm          31.719        19.356       -.17208E-06    .10488E-05
   4  Prefactor     .10000E-03    12.454       -.62373E-05** at limit **
   5  norm          .10000E-03    1.0591        .32506E-07** at limit **
   6  Prefactor     .10000E-03    15.603        .65705E-05** at limit **
   7  norm          .10000E-03    12.789        .70316E-06** at limit **
   8  norm          1.9910        .99158        .23834E-07    .12329E-03
   9  Prefactor     .10000E-03    .60179       -.66879E-08** at limit **
  10  Prefactor     .10000E-03    18.180       -.14471E-04** at limit **
  11  Prefactor     .10000E-03    12.746       -.40479E-06** at limit **
  12  Prefactor     .10000E-03    8.0579        .12239E-06** at limit **
  13  Prefactor     .10000E-03    28.286       -.80682E-05** at limit **
  14  norm          1.6991        2.3490       -.33101E-06   -.81205E-03
  15  Prefactor     .10000E-03    59.220       -.30374E-04** at limit **
  16  norm          .48870        1.1993       -.53299E-06   -.16568E-02
  17  Prefactor     .10000E-03    3.7196       -.10169E-06** at limit **
  18  norm          .10000E-03    .73502        .22413E-07** at limit **
  19  Prefactor     14.780        36.031        .42910E-05    .22953E-04
  20  norm          6.1720        2.4048        .47937E-08    .40393E-04
  21  Prefactor     .10000E-03    14.800        .11082E-04** at limit **
  22  Prefactor     .10000E-03    28.845       -.13147E-05** at limit **
  23  norm          .48679        .77798       -.72494E-06   -.38920E-02
  24  norm          15.608        5.6801        .73979E-06    .22560E-03
  25  Prefactor     .10000E-03    2.1419       -.16688E-06** at limit **
  26  Normalizat    1.0233        .23347        .43740E-06    .18613E-03
  27  Prefactor     1.0566        .69148E-01    .86641E-07    .62064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.3278
  norm       = 31.7188
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.99104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.69915
  Prefactor  = 0.0001
  norm       = 0.488702
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.7802
  norm       = 6.17198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.486789
  norm       = 15.608
  Prefactor  = 0.0001
  Normalizat = 1.02332
  Prefactor  = 1.05657
 **********
 **   18 **HESSE 
 **********

 FCN=   11082.24     FROM HESSE     STATUS=OK           482 CALLS     3310 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.328        18.464        .68392E-04   -1.4535    
   3  norm          31.719        19.354        .71145E-04   -1.4581    
   4  Prefactor     .10000E-03    12.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0611        .10578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9910        .99027        .70625E-04   -1.5426    
   9  Prefactor     .10000E-03    .62160        .15923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6991        2.3324        .18032E-03   -1.5447    
  15  Prefactor     .10000E-03    59.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .48870        1.2940        .17098E-02   -1.5568    
  17  Prefactor     .10000E-03    3.7552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .75563        .17614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.780        35.608        .10419E-03   -1.4939    
  20  norm          6.1720        2.4077        .97344E-04   -1.5211    
  21  Prefactor     .10000E-03    14.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .48679        .73837        .98285E-04   -1.5568    
  24  norm          15.608        5.5364        .10138E-03   -1.4918    
  25  Prefactor     .10000E-03    5.1347        .29560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0233        .24763        .47666E-03   -.92253    
  27  Prefactor     1.0566        .74872E-01    .15213E-03   -.90867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09116e-09
Minuit parameter uncertainties:
  1  5.60411e-05
  2  18.4669
  3  19.358
  4  1.92223e-06
  5  9.798e-08
  6  4.00543e-06
  7  7.64897e-06
  8  0.990277
  9  6.98546e-07
  10  8.07071e-05
  11  4.90891e-06
  12  8.11756e-07
  13  6.04146e-05
  14  2.33255
  15  0.000204281
  16  1.29407
  17  6.32824e-06
  18  1.03431e-06
  19  35.6591
  20  2.40778
  21  2.53236e-05
  22  1.16303e-05
  23  0.738379
  24  5.53655
  25  3.69344e-05
  26  0.247909
  27  0.0748798
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.699e+00  2.333e+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.057e+00  7.488e-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:  1.023e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 68.262 5.370
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532383/likelihoodResults_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.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) = 11081.8959191
delta logL = 0.342744155867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11081.8798449
delta logL = 0.358818391456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2661       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3008       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0518       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.

 FCN=   11081.88     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      217 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2649        1.5447        .98960E-02    .62449E-03
   2  alpha         1.3003        .72667        .49772       -.79116E-04
   3  Normalizat    1.0489        .20960        .10635        .74394E-04
   4  Prefactor     1.0518        .68238E-01    .39807E-01    .12447E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26489
  alpha      = 1.30025
  Normalizat = 1.04886
  Prefactor  = 1.05179
 **********
 **   18 **HESSE 
 **********

 FCN=   11081.88     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2649        2.0382        .13674E-03   -1.5483    
   2  alpha         1.3003        1.0265        .33742E-01   -.50054    
   3  Normalizat    1.0489        .22669        .47144E-03   -.91411    
   4  Prefactor     1.0518        .74077E-01    .15240E-03   -.91023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91139e-11
Minuit parameter uncertainties:
  1  2.03828
  2  1.06818
  3  0.226895
  4  0.0740839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532383': 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) = 11081.8798447
delta logL = 0.358818548424

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.265e+00  2.038e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  1.300e+00  1.068e+00  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.052e+00  7.408e-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:  1.049e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 68.262 5.370
Photon Index (Free Index): 1.30 +/- 1.07
Photon Flux (Free Index): 1.49e-08 +/- 2.36e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.49e-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/532383/cmap_HighResolution_538185601_538444801_4FGL_J0433.0+0522_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-05', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='3.59e-01', photon_flux2='1.49e-08', job_status='DONE', time_completed='2021-08-20 20:07:09.472782', photon_index_error2='1.07', photon_index2='1.30', ts='0.65', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.49e-05', EG='1.02', time_epoch_completed='1629515229.47', return_code='0', job_id='532383', GAL2='1.05', EG2='1.05', return_code2='0', photon_flux_error2='2.36e-08', ts2='1.36', photon_index='2.56' WHERE bin_id='1153' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 20:07:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 532383: <4FGL_J0433.0+0522_daily_bin1153> in cluster <slac> Done

Job <4FGL_J0433.0+0522_daily_bin1153> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 20 19:51:00 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 19:51:02 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:51:02 2021
Terminated at Fri Aug 20 20:07:10 2021
Results reported at Fri Aug 20 20:07:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin1153 68.2618 5.3696 538185601 538444801 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 :                                   949.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             361.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

