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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin274
RA = 68.2618, Dec = 5.3696
tmin = 310348801, tmax = 310608001
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='524506', job_status='RUN', time_executed='2021-08-20 19:28:11.590219', time_epoch_executed='1629512891.59' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524506

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524506/ft1_4FGL_J0433.0+0522_daily_bin274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524506/ft2_4FGL_J0433.0+0522_daily_bin274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524506/ft1_4FGL_J0433.0+0522_daily_bin274.fits outfile=/scratch/kocevski/524506/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin274.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=310348801.0 tmax=310608001.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 3.05
user 2.37
sys 0.66

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524506/ft1_filtered_4FGL_J0433.0+0522_daily_bin274.fits" evtable="EVENTS" scfile=/scratch/kocevski/524506/ft2_4FGL_J0433.0+0522_daily_bin274.fits sctable="SC_DATA" outfile=/scratch/kocevski/524506/ltcube_310348801_310608001_4FGL_J0433.0+0522_daily_bin274.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/524506/ft2_4FGL_J0433.0+0522_daily_bin274.fits
.....................!
real 9.24
user 8.44
sys 0.78

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524506/ft1_filtered_4FGL_J0433.0+0522_daily_bin274.fits evtable="EVENTS" scfile=/scratch/kocevski/524506/ft2_4FGL_J0433.0+0522_daily_bin274.fits sctable="SC_DATA" expcube=/scratch/kocevski/524506/ltcube_310348801_310608001_4FGL_J0433.0+0522_daily_bin274.fits outfile=/scratch/kocevski/524506/expmap_310348801_310608001_4FGL_J0433.0+0522_daily_bin274.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/524506/ltcube_310348801_310608001_4FGL_J0433.0+0522_daily_bin274.fits
.....................!
real 141.09
user 136.59
sys 4.26

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/524506/ft1_filtered_4FGL_J0433.0+0522_daily_bin274.fits scfile=/scratch/kocevski/524506/ft2_4FGL_J0433.0+0522_daily_bin274.fits outfile=/scratch/kocevski/524506/cmap_310348801_310608001_4FGL_J0433.0+0522_daily_bin274.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.91
user 0.29
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524506/ft1_filtered_4FGL_J0433.0+0522_daily_bin274.fits scfile=/scratch/kocevski/524506/ft2_4FGL_J0433.0+0522_daily_bin274.fits outfile=/scratch/kocevski/524506/cmap_HighResolution_310348801_310608001_4FGL_J0433.0+0522_daily_bin274.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.91
user 0.30
sys 0.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.743       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .70068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3832       1.0000         .10000E-03   10000.    
     7 'norm      '    28.746       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5179       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7738       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8024       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11776E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7636       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.046       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7013       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .14001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.459       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95636       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0260       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=   9154.390     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3357 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.703        37.530        .45872E-06    .10336E-03
   2  Prefactor     .10000E-03    5.4706        .88036E-07** at limit **
   3  norm          .10000E-03    9.5463       -.43895E-07** at limit **
   4  Prefactor     .10000E-03    11.016       -.27011E-06** at limit **
   5  norm          .69825        4.3865        .37662E-05    .12341E-03
   6  Prefactor     7.3610        25.550        .12299E-07   -.41230E-04
   7  norm          28.742        25.360        .11308E-06   -.34237E-04
   8  norm          1.5207        1.2413        .19283E-07    .72743E-03
   9  Prefactor     .10000E-03    .56551       -.16826E-06** at limit **
  10  Prefactor     8.8218        28.366       -.12337E-06    .15483E-04
  11  Prefactor     .23167E-02    51.932       -.40416E-05** at limit **
  12  Prefactor     .10000E-03    4.6711       -.20242E-07** at limit **
  13  Prefactor     .10000E-03    3.5635        .14806E-07** at limit **
  14  norm          3.7981        3.5373        .10768E-06    .13256E-03
  15  Prefactor     .10000E-03    36.913       -.20830E-06** at limit **
  16  norm          1.7655        2.5126        .58508E-06    .36033E-03
  17  Prefactor     .10000E-03    1.9862        .24203E-07** at limit **
  18  norm          .10000E-03    .81858        .54164E-07** at limit **
  19  Prefactor     16.044        27.931        .26879E-07    .11001E-04
  20  norm          5.6997        2.8489        .31632E-07    .30630E-04
  21  Prefactor     .10000E-03    9.9576        .15176E-06** at limit **
  22  Prefactor     .10000E-03    3.4393        .44024E-07** at limit **
  23  norm          .10000E-03    .25928        .31766E-07** at limit **
  24  norm          10.464        4.4485       -.65709E-07   -.84954E-04
  25  Prefactor     .10000E-03    1.4721        .73039E-07** at limit **
  26  Normalizat    .95692        .26502       -.75172E-06    .10451E-03
  27  Prefactor     1.0259        .74663E-01    .35967E-07    .11192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.7028
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.698251
  Prefactor  = 7.36099
  norm       = 28.7424
  norm       = 1.5207
  Prefactor  = 0.0001
  Prefactor  = 8.82179
  Prefactor  = 0.00231672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.79805
  Prefactor  = 0.0001
  norm       = 1.76554
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.044
  norm       = 5.69974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4639
  Prefactor  = 0.0001
  Normalizat = 0.956925
  Prefactor  = 1.02594
 **********
 **   18 **HESSE 
 **********

 FCN=   9154.390     FROM HESSE     STATUS=OK           498 CALLS     3855 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.703        37.578        .67032E-04   -1.4512    
   2  Prefactor     .10000E-03    5.4820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.5554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .69825        4.3157        .38252E-03   -1.5541    
   6  Prefactor     7.3610        25.517        .14761E-03   -1.5165    
   7  norm          28.742        25.347        .74724E-04   -1.4635    
   8  norm          1.5207        1.2128        .85772E-04   -1.5461    
   9  Prefactor     .10000E-03    .56880        .70065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8218        27.994        .13532E-03   -1.5114    
  11  Prefactor     .23167E-02    42.844        .15665       -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5707        .17639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7981        3.4840        .13291E-03   -1.5318    
  15  Prefactor     .10000E-03    36.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7655        2.5012        .16775E-03   -1.5442    
  17  Prefactor     .10000E-03    1.9915        .13164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .84736        .16892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.044        27.805        .99985E-04   -1.4907    
  20  norm          5.6997        2.8566        .10779E-03   -1.5230    
  21  Prefactor     .10000E-03    9.9659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4636        .17327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4521        .89724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.464        4.2957        .12227E-03   -1.5061    
  25  Prefactor     .10000E-03    1.5005        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95692        .28885        .47435E-03   -.94488    
  27  Prefactor     1.0259        .82435E-01    .14658E-03   -.91870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45096e-10
Minuit parameter uncertainties:
  1  37.6033
  2  1.18908e-06
  3  8.66475e-06
  4  2.88702e-06
  5  3.47196
  6  25.5544
  7  25.3566
  8  1.21287
  9  9.38375e-07
  10  28.0354
  11  0.616797
  12  4.64616e-06
  13  4.2098e-07
  14  3.48415
  15  2.95039e-06
  16  2.50132
  17  4.23078e-07
  18  6.46618e-07
  19  27.8272
  20  2.85667
  21  4.06086e-06
  22  8.22388e-07
  23  1.26083e-05
  24  4.2958
  25  8.99615e-07
  26  0.289318
  27  0.0824454
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  3.798e+00  3.484e+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.026e+00  8.245e-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:  9.569e-01  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 68.262 5.370
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 7.58e-08 +/- 6.95e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/524506/likelihoodResults_310348801_310608001_4FGL_J0433.0+0522_daily_bin274.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) = 9154.35792396
delta logL = 0.0321173213906

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9154.35470676
delta logL = 0.0353345133117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9241       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2191       1.0000          .0000       5.0000    
     3 'Normalizat'    .97413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0227       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=   9154.355     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9219        108.93        .50913E-02    .49824E-03
   2  alpha         2.2179        2.9045        .41485        .11431E-04
   3  Normalizat    .97404        .38827        .10619        .37907E-04
   4  Prefactor     1.0227        .91915E-01    .41881E-01   -.84892E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.92189
  alpha      = 2.21787
  Normalizat = 0.974036
  Prefactor  = 1.02273
 **********
 **   18 **HESSE 
 **********

 FCN=   9154.355     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9219        2.9927        .13889E-03   -1.5312    
   2  alpha         2.2179        1.2452        .38784E-01   -.11309    
   3  Normalizat    .97404        .25742        .47067E-03   -.93905    
   4  Prefactor     1.0227        .80625E-01    .14678E-03   -.91976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57619e-10
Minuit parameter uncertainties:
  1  2.99277
  2  1.30437
  3  0.257748
  4  0.0806348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524506': 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) = 9154.35470585
delta logL = 0.0353354288945

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  3.922e+00  2.993e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  2.218e+00  1.304e+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.023e+00  8.063e-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:  9.740e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 68.262 5.370
Photon Index (Free Index): 2.22 +/- 1.30
Photon Flux (Free Index): 6.21e-08 +/- 6.97e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.52e-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/524506/cmap_HighResolution_310348801_310608001_4FGL_J0433.0+0522_daily_bin274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-05', comment='SUCCESS', photon_flux='7.58e-08', energy_flux2='1.97e-05', photon_flux_error='6.95e-08', dlogl='3.53e-02', energy_flux='1.94e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-08-20 19:38:57.630646', photon_index_error2='1.30', photon_index2='2.22', ts='2.51', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.52e-05', EG='0.96', time_epoch_completed='1629513537.63', return_code='0', job_id='524506', GAL2='1.02', EG2='0.97', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='6.97e-08', ts2='2.57', photon_index='2.56' WHERE bin_id='274' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:38:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 524506: <4FGL_J0433.0+0522_daily_bin274> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin274 68.2618 5.3696 310348801 310608001 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 :                                   649.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            795 sec.

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

