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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin435
RA = 68.2618, Dec = 5.3696
tmin = 352080001, tmax = 352339201
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='525814', job_status='RUN', time_executed='2021-08-20 19:32:58.194712', time_epoch_executed='1629513178.19' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525814

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525814/ft1_4FGL_J0433.0+0522_daily_bin435.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525814/ft2_4FGL_J0433.0+0522_daily_bin435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525814/ft1_4FGL_J0433.0+0522_daily_bin435.fits outfile=/scratch/kocevski/525814/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin435.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=352080001.0 tmax=352339201.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.03
user 3.18
sys 0.81

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/525814/ft2_4FGL_J0433.0+0522_daily_bin435.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/525814/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin435.fits evtable="EVENTS" outfile="/scratch/kocevski/525814/ft1_filtered_4FGL_J0433.0+0522_daily_bin435.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 1.09
user 0.34
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/525814/ft1_filtered_4FGL_J0433.0+0522_daily_bin435.fits" evtable="EVENTS" scfile=/scratch/kocevski/525814/ft2_4FGL_J0433.0+0522_daily_bin435.fits sctable="SC_DATA" outfile=/scratch/kocevski/525814/ltcube_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.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/525814/ft2_4FGL_J0433.0+0522_daily_bin435.fits
.....................!
real 12.53
user 11.54
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525814/ft1_filtered_4FGL_J0433.0+0522_daily_bin435.fits evtable="EVENTS" scfile=/scratch/kocevski/525814/ft2_4FGL_J0433.0+0522_daily_bin435.fits sctable="SC_DATA" expcube=/scratch/kocevski/525814/ltcube_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.fits outfile=/scratch/kocevski/525814/expmap_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.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/525814/ltcube_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.fits
.....................!
real 190.78
user 185.24
sys 5.19

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/525814/ft1_filtered_4FGL_J0433.0+0522_daily_bin435.fits scfile=/scratch/kocevski/525814/ft2_4FGL_J0433.0+0522_daily_bin435.fits outfile=/scratch/kocevski/525814/cmap_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.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 1.13
user 0.37
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525814/ft1_filtered_4FGL_J0433.0+0522_daily_bin435.fits scfile=/scratch/kocevski/525814/ft2_4FGL_J0433.0+0522_daily_bin435.fits outfile=/scratch/kocevski/525814/cmap_HighResolution_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.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 1.13
user 0.38
sys 0.74

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/525814/ft1_filtered_4FGL_J0433.0+0522_daily_bin435.fits', '/scratch/kocevski/525814/ft2_4FGL_J0433.0+0522_daily_bin435.fits', expMap='/scratch/kocevski/525814/expmap_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.fits', expCube='/scratch/kocevski/525814/ltcube_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/525814/Model_4FGL_J0433.0+0522_daily_bin435.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/525814/ft1_filtered_4FGL_J0433.0+0522_daily_bin435.fits
Spacecraft file(s): /scratch/kocevski/525814/ft2_4FGL_J0433.0+0522_daily_bin435.fits
Exposure map: /scratch/kocevski/525814/expmap_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.fits
Exposure cube: /scratch/kocevski/525814/ltcube_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/525814/Model_4FGL_J0433.0+0522_daily_bin435.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) = 8939.43488835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.765       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20812E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.097       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.657       1.0000         .10000E-03   10000.    
     5 'norm      '    6.2491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39686E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .89676E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17175E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22144E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28407E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32786E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.717       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11704E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9465       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37391E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.845       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .45420       1.0000         .10000E-03   10000.    
    24 'norm      '    .11503E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73500       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0640       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=   8939.356     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     2902 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.420        50.951       -.16396E-05    .25526E-04
   2  Prefactor     .10000E-03    15.292       -.45079E-06** at limit **
   3  norm          20.705        18.432        .14403E-06   -.72336E-06
   4  Prefactor     31.490        33.897        .26884E-05   -.29796E-04
   5  norm          6.2569        4.2231        .28234E-07   -.35740E-04
   6  Prefactor     .10000E-03    6.5261        .41622E-07** at limit **
   7  norm          .10000E-03    40.569       -.10948E-05** at limit **
   8  norm          1.0414        1.2535        .21720E-06   -.54748E-03
   9  Prefactor     .10000E-03    .99978        .14372E-06** at limit **
  10  Prefactor     .10000E-03    14.586        .15089E-07** at limit **
  11  Prefactor     .10000E-03    53.155        .38815E-05** at limit **
  12  Prefactor     .10000E-03    2.9413       -.46562E-07** at limit **
  13  Prefactor     .10001E-03    4.8750       -.13901E-06** at limit **
  14  norm          .10000E-03    1.2228        .17810E-06** at limit **
  15  Prefactor     50.332        53.083        .69665E-05   -.41601E-04
  16  norm          1.0497        2.1466        .61992E-06   -.27027E-03
  17  Prefactor     .10000E-03    5.2439        .85728E-06** at limit **
  18  norm          2.9442        2.1236        .16721E-06   -.17638E-03
  19  Prefactor     .10000E-03    19.037        .26796E-05** at limit **
  20  norm          .10000E-03    .52126       -.31855E-07** at limit **
  21  Prefactor     40.958        39.990       -.38914E-05    .15632E-03
  22  Prefactor     .10000E-03    4.3005        .38433E-08** at limit **
  23  norm          .46529        .80215        .18551E-05    .57625E-03
  24  norm          .10016E-03    2.0321       -.10539E-05** at limit **
  25  Prefactor     .10000E-03    1.8835        .32565E-06** at limit **
  26  Normalizat    .73638        .25809       -.48042E-05   -.27629E-04
  27  Prefactor     1.0636        .76879E-01   -.50606E-07    .10764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.4196
  Prefactor  = 0.0001
  norm       = 20.7047
  Prefactor  = 31.4895
  norm       = 6.25692
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.04139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 50.3321
  norm       = 1.04967
  Prefactor  = 0.0001
  norm       = 2.94423
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 40.958
  Prefactor  = 0.0001
  norm       = 0.465294
  norm       = 0.000100158
  Prefactor  = 0.0001
  Normalizat = 0.73638
  Prefactor  = 1.06362
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.356     FROM HESSE     STATUS=OK           486 CALLS     3388 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.420        50.825        .45250E-04   -1.3935    
   2  Prefactor     .10000E-03    15.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.705        18.432        .87204E-04   -1.4798    
   4  Prefactor     31.490        33.677        .72364E-04   -1.4585    
   5  norm          6.2569        4.2192        .15408E-03   -1.5208    
   6  Prefactor     .10000E-03    6.5324        .21267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    40.928        .18275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0414        1.1731        .10444E-03   -1.5504    
   9  Prefactor     .10000E-03    1.6063        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    53.356        .20135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9484        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    22.450        .40487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2498        .10200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.332        52.837        .56874E-04   -1.4288    
  16  norm          1.0497        2.1024        .18161E-03   -1.5503    
  17  Prefactor     .10000E-03    5.3318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9442        2.1144        .11096E-03   -1.5365    
  19  Prefactor     .10000E-03    19.008        .21294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .52535        .66634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.958        39.616        .61969E-04   -1.4427    
  22  Prefactor     .10000E-03    4.3227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .46529        .80018        .85188E-04   -1.5572    
  24  norm          .10016E-03    33.721        .24092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.9202        .12665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .73638        .26974        .51166E-03   -1.0247    
  27  Prefactor     1.0636        .82315E-01    .14185E-03   -.90638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44322e-09
Minuit parameter uncertainties:
  1  50.8529
  2  0.000168058
  3  18.4373
  4  33.6972
  5  4.21945
  6  4.69811e-06
  7  8.97266e-05
  8  1.17317
  9  3.39044e-05
  10  1.72224e-05
  11  9.2729e-05
  12  5.71552e-06
  13  0.00112636
  14  2.72526e-06
  15  52.8861
  16  2.10251
  17  5.32287e-05
  18  2.11441
  19  0.00025094
  20  1.89883e-06
  21  39.6418
  22  1.05637e-05
  23  0.800202
  24  0.00461775
  25  2.77364e-06
  26  0.270228
  27  0.0823249
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.000e-04  2.725e-06  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.064e+00  8.232e-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:  7.364e-01  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 68.262 5.370
Photon Flux Upper Limit: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/525814/likelihoodResults_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.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) = 8939.35974654
delta logL = -0.00381291459962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8939.35593361
delta logL = 7.26322468836e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5540       1.0000          .0000       5.0000    
     3 'Normalizat'    .73638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0636       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8939.356     FROM MIGRAD    STATUS=FAILED        81 CALLS      224 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    8.7476        .10202E-02** at limit **
   2  alpha         2.5102        3.4877        .16466        .47148E-05
   3  Normalizat    .73638        .24147        .51167E-03   -.88653E-04
   4  Prefactor     1.0636        .79996E-01    .14185E-03   -.25942E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8939.356     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      351 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10010E-03    8.7476        .18147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5102        3.4877        .22302E-03    .40604E-02
   3  Normalizat    .73638        .24147        .25298E-04   -1.0247    
   4  Prefactor     1.0636        .79996E-01    .73351E-05   -.90638    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8939.356     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      381 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2557        .20405E-03** at limit **
   2  alpha         2.4649        3.5394        .65862E-02   -.69045E-09
   3  Normalizat    .73638        .24151        .20467E-04    .10221E-03
   4  Prefactor     1.0636        .80009E-01    .28370E-04    .29734E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.46488
  Normalizat = 0.736382
  Prefactor  = 1.06362
 **********
 **   18 **HESSE 
 **********

 FCN=   8939.356     FROM HESSE     STATUS=OK            23 CALLS      404 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2556        .40809E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4649        3.6002        .13172E-02   -.14048E-01
   3  Normalizat    .73638        .24141        .40933E-05   -1.0247    
   4  Prefactor     1.0636        .79991E-01    .56740E-05   -.90638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18034e-11
Minuit parameter uncertainties:
  1  4.53393e-08
  2  154.411
  3  0.241763
  4  0.0799995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525814': 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) = 8939.35593345
delta logL = 1.74055458046e-07

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.000e-04  4.534e-08  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  2.465e+00  1.544e+02  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.064e+00  8.000e-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:  7.364e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 68.262 5.370

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/525814/cmap_HighResolution_352080001_352339201_4FGL_J0433.0+0522_daily_bin435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-08-20 19:46:56.585573', job_id='525814', GAL2='1.06', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1629514016.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='435' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 525814: <4FGL_J0433.0+0522_daily_bin435> in cluster <slac> Done

Job <4FGL_J0433.0+0522_daily_bin435> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 19:30:37 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 19:30:38 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:30:38 2021
Terminated at Fri Aug 20 19:46:57 2021
Results reported at Fri Aug 20 19:46:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin435 68.2618 5.3696 352080001 352339201 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 :                                   846.20 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             342.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

