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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin256
RA = 68.2618, Dec = 5.3696
tmin = 305683201, tmax = 305942401
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='524479', job_status='RUN', time_executed='2021-08-20 19:28:06.583162', time_epoch_executed='1629512886.58' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524479

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524479/ft1_4FGL_J0433.0+0522_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524479/ft2_4FGL_J0433.0+0522_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524479/ft1_4FGL_J0433.0+0522_daily_bin256.fits outfile=/scratch/kocevski/524479/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin256.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=305683201.0 tmax=305942401.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.25
user 4.46
sys 0.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524479/ft1_filtered_4FGL_J0433.0+0522_daily_bin256.fits" evtable="EVENTS" scfile=/scratch/kocevski/524479/ft2_4FGL_J0433.0+0522_daily_bin256.fits sctable="SC_DATA" outfile=/scratch/kocevski/524479/ltcube_305683201_305942401_4FGL_J0433.0+0522_daily_bin256.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/524479/ft2_4FGL_J0433.0+0522_daily_bin256.fits
.....................!
real 12.18
user 11.22
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524479/ft1_filtered_4FGL_J0433.0+0522_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/524479/ft2_4FGL_J0433.0+0522_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/524479/ltcube_305683201_305942401_4FGL_J0433.0+0522_daily_bin256.fits outfile=/scratch/kocevski/524479/expmap_305683201_305942401_4FGL_J0433.0+0522_daily_bin256.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/524479/ltcube_305683201_305942401_4FGL_J0433.0+0522_daily_bin256.fits
.....................!
real 191.37
user 186.04
sys 4.94

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/524479/ft1_filtered_4FGL_J0433.0+0522_daily_bin256.fits scfile=/scratch/kocevski/524479/ft2_4FGL_J0433.0+0522_daily_bin256.fits outfile=/scratch/kocevski/524479/cmap_305683201_305942401_4FGL_J0433.0+0522_daily_bin256.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.03
user 0.37
sys 0.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524479/ft1_filtered_4FGL_J0433.0+0522_daily_bin256.fits scfile=/scratch/kocevski/524479/ft2_4FGL_J0433.0+0522_daily_bin256.fits outfile=/scratch/kocevski/524479/cmap_HighResolution_305683201_305942401_4FGL_J0433.0+0522_daily_bin256.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.09
user 0.38
sys 0.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18266E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.765       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0515       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22570E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10341E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11705E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .86295       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3043       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.134       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52646E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17207E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1956       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0470       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27974E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5013       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6425       1.0000         .10000E-03   10000.    
    18 'norm      '    6.7272       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.844       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0508       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21058E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9480       1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.907       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10687E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .86954       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97512       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=   8838.074     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     2392 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.895       -.66131E-06** at limit **
   2  Prefactor     16.020        17.623       -.31667E-07    .17598E-03
   3  norm          7.1892        11.039        .84481E-07   -.30596E-04
   4  Prefactor     .10002E-03    119.50       -.40553E-06** at limit **
   5  norm          .10000E-03    1.5162       -.17183E-07** at limit **
   6  Prefactor     .10000E-03    10.229       -.19807E-06** at limit **
   7  norm          .14342        22.846        .61108E-05   -.40625E-03
   8  norm          .10000E-03    .32679       -.34802E-07** at limit **
   9  Prefactor     1.3114        1.2850        .12536E-06    .32124E-03
  10  Prefactor     34.749        29.334        .32530E-05    .77614E-04
  11  Prefactor     .10000E-03    26.318        .55329E-07** at limit **
  12  Prefactor     .10000E-03    1.8696       -.17233E-07** at limit **
  13  Prefactor     8.2472        8.8265       -.80856E-08   -.64304E-05
  14  norm          2.0983        3.9762       -.21218E-05   -.73162E-03
  15  Prefactor     .10000E-03    56.845        .62115E-06** at limit **
  16  norm          1.5025        2.1017        .10042E-06    .38533E-04
  17  Prefactor     2.6406        7.0464        .70115E-05    .12763E-03
  18  norm          6.7270        2.7325       -.17054E-06    .77559E-05
  19  Prefactor     12.669        22.392       -.13977E-05    .11609E-03
  20  norm          5.0435        2.5780        .54420E-08    .68486E-04
  21  Prefactor     .10000E-03    8.8541        .23584E-06** at limit **
  22  Prefactor     9.9545        8.4927        .18409E-07   -.22749E-04
  23  norm          .10000E-03    .16067        .73996E-07** at limit **
  24  norm          14.863        4.7868       -.47615E-07   -.21007E-03
  25  Prefactor     .10000E-03    1.2178       -.10561E-08** at limit **
  26  Normalizat    .87064        .26358       -.63108E-06    .27991E-03
  27  Prefactor     .97502        .76903E-01    .22221E-06    .60571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 16.0198
  norm       = 7.18921
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.143424
  norm       = 0.0001
  Prefactor  = 1.3114
  Prefactor  = 34.7487
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.24718
  norm       = 2.09835
  Prefactor  = 0.000100003
  norm       = 1.50254
  Prefactor  = 2.64058
  norm       = 6.72697
  Prefactor  = 12.6691
  norm       = 5.04346
  Prefactor  = 0.0001
  Prefactor  = 9.95453
  norm       = 0.0001
  norm       = 14.8629
  Prefactor  = 0.0001
  Normalizat = 0.870637
  Prefactor  = 0.975016
 **********
 **   18 **HESSE 
 **********

 FCN=   8838.074     FROM HESSE     STATUS=OK           500 CALLS     2892 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.937        .20309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.020        17.608        .10087E-03   -1.4907    
   3  norm          7.1892        11.032        .15107E-03   -1.5172    
   4  Prefactor     .10002E-03    122.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.5278        .11304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .14342        19.620        .11482       -1.5632    
   8  norm          .10000E-03    .34137        .10484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3114        1.2779        .10084E-03   -1.5479    
  10  Prefactor     34.749        29.669        .67609E-04   -1.4528    
  11  Prefactor     .10000E-03    26.390        .19130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.8705        .12554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2472        8.8297        .14004E-03   -1.5134    
  14  norm          2.0983        3.9705        .20041E-03   -1.5418    
  15  Prefactor     .10000E-03    56.940        .19903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5025        2.0770        .15255E-03   -1.5463    
  17  Prefactor     2.6406        7.0814        .12540E-02   -1.5383    
  18  norm          6.7270        2.7301        .92777E-04   -1.5189    
  19  Prefactor     12.669        22.348        .11177E-03   -1.4996    
  20  norm          5.0435        2.5816        .10277E-03   -1.5259    
  21  Prefactor     .10000E-03    8.8611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.9545        8.4904        .12705E-03   -1.5077    
  23  norm          .10000E-03    .19284        .72485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.863        4.7393        .10374E-03   -1.4937    
  25  Prefactor     .10000E-03    1.2355        .10128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87064        .27999        .48793E-03   -.97500    
  27  Prefactor     .97502        .82792E-01    .14733E-03   -.93567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9459e-09
Minuit parameter uncertainties:
  1  0.000495034
  2  17.6141
  3  11.0356
  4  0.00310123
  5  1.99019e-06
  6  3.45987e-05
  7  3.35498
  8  1.57087e-06
  9  1.2779
  10  29.682
  11  0.00027362
  12  1.09827e-06
  13  8.83112
  14  3.97104
  15  0.000880086
  16  2.07715
  17  7.08369
  18  2.73014
  19  22.3628
  20  2.58161
  21  4.19591e-05
  22  8.49143
  23  1.18732e-06
  24  4.73941
  25  4.02062e-07
  26  0.280457
  27  0.0828032
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  2.098e+00  3.971e+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:  9.750e-01  8.280e-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:  8.706e-01  2.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/524479/likelihoodResults_305683201_305942401_4FGL_J0433.0+0522_daily_bin256.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) = 8837.78090367
delta logL = 0.292739465614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8837.7806494
delta logL = 0.292993733521

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1794       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9201       1.0000          .0000       5.0000    
     3 'Normalizat'    .82199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98443       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=   8837.781     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      304 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1794        3.0041        .10008E-03   -.10898E-02
   2  alpha         3.9194        3.8283        .41434E-02   -.23668E-04
   3  Normalizat    .82205        .26419        .50048E-03    .25033E-04
   4  Prefactor     .98442        .82223E-01    .14667E-03    .30382E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17937
  alpha      = 3.91942
  Normalizat = 0.822053
  Prefactor  = 0.984421
 **********
 **   18 **HESSE 
 **********

 FCN=   8837.781     FROM HESSE     STATUS=OK            23 CALLS      327 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1794        2.7300        .40033E-05   -1.5491    
   2  alpha         3.9194        3.7139        .16573E-03    .60379    
   3  Normalizat    .82205        .26429        .20019E-04   -.99256    
   4  Prefactor     .98442        .82178E-01    .29334E-04   -.93251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95564e-10
Minuit parameter uncertainties:
  1  2.73025
  2  2.09706
  3  0.264702
  4  0.0821889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524479': 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) = 8837.78064913
delta logL = 0.292994003461

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.179e+00  2.730e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  3.919e+00  2.097e+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:  9.844e-01  8.219e-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:  8.221e-01  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 68.262 5.370
Photon Index (Free Index): 3.92 +/- 2.10
Photon Flux (Free Index): 8.31e-08 +/- 8.89e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.46e-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/524479/cmap_HighResolution_305683201_305942401_4FGL_J0433.0+0522_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-05', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='2.93e-01', photon_flux2='8.31e-08', job_status='DONE', time_completed='2021-08-20 19:41:11.963318', photon_index_error2='2.10', photon_index2='3.92', ts='0.46', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.46e-05', EG='0.87', time_epoch_completed='1629513671.96', return_code='0', job_id='524479', GAL2='0.98', EG2='0.82', return_code2='0', photon_flux_error2='8.89e-08', ts2='1.12', photon_index='2.56' WHERE bin_id='256' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:41:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 524479: <4FGL_J0433.0+0522_daily_bin256> in cluster <slac> Done

Job <4FGL_J0433.0+0522_daily_bin256> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 19:25:41 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 19:25:42 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:42 2021
Terminated at Fri Aug 20 19:41:12 2021
Results reported at Fri Aug 20 19:41:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin256 68.2618 5.3696 305683201 305942401 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 :                                   791.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             310.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

