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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin1161
RA = 68.2618, Dec = 5.3696
tmin = 540259201, tmax = 540518401
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='532391', job_status='RUN', time_executed='2021-08-20 19:52:03.414159', time_epoch_executed='1629514323.41' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532391

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532391/ft1_4FGL_J0433.0+0522_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532391/ft2_4FGL_J0433.0+0522_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532391/ft1_4FGL_J0433.0+0522_daily_bin1161.fits outfile=/scratch/kocevski/532391/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin1161.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=540259201.0 tmax=540518401.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 6.51
user 3.29
sys 3.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532391/ft1_filtered_4FGL_J0433.0+0522_daily_bin1161.fits" evtable="EVENTS" scfile=/scratch/kocevski/532391/ft2_4FGL_J0433.0+0522_daily_bin1161.fits sctable="SC_DATA" outfile=/scratch/kocevski/532391/ltcube_540259201_540518401_4FGL_J0433.0+0522_daily_bin1161.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/532391/ft2_4FGL_J0433.0+0522_daily_bin1161.fits
.....................!
real 14.98
user 11.38
sys 3.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532391/ft1_filtered_4FGL_J0433.0+0522_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/532391/ft2_4FGL_J0433.0+0522_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/532391/ltcube_540259201_540518401_4FGL_J0433.0+0522_daily_bin1161.fits outfile=/scratch/kocevski/532391/expmap_540259201_540518401_4FGL_J0433.0+0522_daily_bin1161.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/532391/ltcube_540259201_540518401_4FGL_J0433.0+0522_daily_bin1161.fits
.....................!
real 194.48
user 185.90
sys 8.25

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 134 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/532391/ft1_filtered_4FGL_J0433.0+0522_daily_bin1161.fits scfile=/scratch/kocevski/532391/ft2_4FGL_J0433.0+0522_daily_bin1161.fits outfile=/scratch/kocevski/532391/cmap_540259201_540518401_4FGL_J0433.0+0522_daily_bin1161.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 3.48
user 0.38
sys 3.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532391/ft1_filtered_4FGL_J0433.0+0522_daily_bin1161.fits scfile=/scratch/kocevski/532391/ft2_4FGL_J0433.0+0522_daily_bin1161.fits outfile=/scratch/kocevski/532391/cmap_HighResolution_540259201_540518401_4FGL_J0433.0+0522_daily_bin1161.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 3.46
user 0.37
sys 3.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.610       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.720       1.0000         .10000E-03   10000.    
     3 'norm      '    14.315       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2618       1.0000         .10000E-03   10000.    
     7 'norm      '    5.4605       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.441       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6374       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.050       1.0000         .10000E-03   10000.    
    16 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42526       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    15.539       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35660E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .73758       1.0000         .10000E-03   10000.    
    24 'norm      '    11.546       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .61978       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1078       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=   9115.224     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3383 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.589        57.468       -.11230E-04   -.47638E-04
   2  Prefactor     34.703        20.763        .38994E-05    .10372E-03
   3  norm          14.315        14.047        .19105E-06    .75846E-05
   4  Prefactor     .10000E-03    9.0969       -.12231E-06** at limit **
   5  norm          .10000E-03    1.8052        .15417E-08** at limit **
   6  Prefactor     8.2620        24.007        .65502E-05    .19123E-04
   7  norm          5.4988        45.028        .38063E-05   -.35958E-04
   8  norm          .10000E-03    .46339        .17678E-07** at limit **
   9  Prefactor     .67080        2.6561        .35913E-05   -.64984E-03
  10  Prefactor     1.5466        114.93        .12543E-04   -.27090E-04
  11  Prefactor     36.828        63.233       -.73088E-06   -.12924E-03
  12  Prefactor     .10000E-03    4.1764        .25911E-06** at limit **
  13  Prefactor     10.436        11.128       -.23325E-05   -.80928E-04
  14  norm          3.6363        3.8172       -.10770E-05   -.10499E-02
  15  Prefactor     21.053        39.187        .15142E-05   -.23929E-04
  16  norm          .10000E-03    1.0939        .60396E-06** at limit **
  17  Prefactor     .42182        4.3902        .18939E-05   -.53447E-03
  18  norm          .10000E-03    .76947        .18808E-06** at limit **
  19  Prefactor     .10000E-03    48.839       -.15342E-05** at limit **
  20  norm          15.538        3.5721        .10772E-06   -.35061E-03
  21  Prefactor     .10000E-03    6.6530        .37657E-07** at limit **
  22  Prefactor     .10000E-03    4.7509        .82263E-06** at limit **
  23  norm          .73752        .48584        .68595E-07    .57647E-04
  24  norm          11.545        4.4508        .10082E-06   -.34849E-04
  25  Prefactor     .10000E-03    .96143        .26744E-07** at limit **
  26  Normalizat    .62013        .27742       -.13203E-04   -.44835E-03
  27  Prefactor     1.1078        .82007E-01    .12696E-05   -.12734E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5895
  Prefactor  = 34.7026
  norm       = 14.3148
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.262
  norm       = 5.49884
  norm       = 0.0001
  Prefactor  = 0.670805
  Prefactor  = 1.54659
  Prefactor  = 36.8283
  Prefactor  = 0.0001
  Prefactor  = 10.4358
  norm       = 3.63633
  Prefactor  = 21.0531
  norm       = 0.0001
  Prefactor  = 0.421823
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5378
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.737523
  norm       = 11.5445
  Prefactor  = 0.0001
  Normalizat = 0.620131
  Prefactor  = 1.10781
 **********
 **   18 **HESSE 
 **********

 FCN=   9115.224     FROM HESSE     STATUS=OK           492 CALLS     3875 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.589        56.811        .73629E-04   -1.4620    
   2  Prefactor     34.703        20.785        .68010E-04   -1.4529    
   3  norm          14.315        14.049        .10586E-03   -1.4951    
   4  Prefactor     .10000E-03    9.0983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8122        .12525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2620        23.905        .13948E-03   -1.5133    
   7  norm          5.4988        44.815        .17195E-03   -1.5239    
   8  norm          .10000E-03    .47670        .63175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .67080        2.8423        .20162E-03   -1.5544    
  10  Prefactor     1.5466        99.446        .33007E-03   -1.5459    
  11  Prefactor     36.828        64.705        .66091E-04   -1.4493    
  12  Prefactor     .10000E-03    4.1938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.436        11.107        .12400E-03   -1.5062    
  14  norm          3.6363        3.5792        .14605E-03   -1.5327    
  15  Prefactor     21.053        39.172        .87300E-04   -1.4790    
  16  norm          .10000E-03    2.7095        .19055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .42182        15.887        .36759E-02   -1.5578    
  18  norm          .10000E-03    3.7288        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.429        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          15.538        3.5627        .81974E-04   -1.4919    
  21  Prefactor     .10000E-03    6.6561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.006        .40113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .73752        .48720        .51170E-04   -1.5536    
  24  norm          11.545        4.4454        .11790E-03   -1.5028    
  25  Prefactor     .10000E-03    .96762        .91401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .62013        .27779        .57662E-03   -1.0714    
  27  Prefactor     1.1078        .84366E-01    .14438E-03   -.89217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21584e-09
Minuit parameter uncertainties:
  1  56.9148
  2  20.7897
  3  14.0519
  4  1.87865e-05
  5  2.60927e-06
  6  23.9323
  7  31.4281
  8  7.05441e-06
  9  2.76165
  10  24.8458
  11  64.8291
  12  1.12391e-05
  13  11.1091
  14  3.57936
  15  39.2199
  16  5.55256e-05
  17  5.1784
  18  7.76531e-05
  19  0.000191408
  20  3.56272
  21  1.05566e-05
  22  0.000355262
  23  0.487205
  24  4.44557
  25  4.5044e-06
  26  0.27842
  27  0.084376
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  3.636e+00  3.579e+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.108e+00  8.438e-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:  6.201e-01  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 68.262 5.370
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 7.26e-08 +/- 7.14e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.82e-05

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

Saving results to:
/scratch/kocevski/532391/likelihoodResults_540259201_540518401_4FGL_J0433.0+0522_daily_bin1161.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) = 9114.7608041
delta logL = 0.46366639808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9114.74756963
delta logL = 0.476900863763

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1715       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7746       1.0000          .0000       5.0000    
     3 'Normalizat'    .65504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0994       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=   9114.748     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1715        3.3254        .49333E-02    .14095E-02
   2  alpha         1.7749        .61813        .43589       -.42133E-04
   3  Normalizat    .65489        .24035        .12665        .54879E-04
   4  Prefactor     1.0994        .78759E-01    .37610E-01   -.62624E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.17148
  alpha      = 1.77491
  Normalizat = 0.65489
  Prefactor  = 1.09943
 **********
 **   18 **HESSE 
 **********

 FCN=   9114.748     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1715        3.3018        .13924E-03   -1.5299    
   2  alpha         1.7749        .68662        .22408E-01   -.29426    
   3  Normalizat    .65489        .24889        .56202E-03   -1.0570    
   4  Prefactor     1.0994        .81796E-01    .14480E-03   -.89485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20908e-09
Minuit parameter uncertainties:
  1  3.30193
  2  0.696408
  3  0.249315
  4  0.0818054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532391': 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) = 9114.74756932
delta logL = 0.476901174263

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  4.171e+00  3.302e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  1.775e+00  6.964e-01  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.099e+00  8.181e-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:  6.549e-01  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 68.262 5.370
Photon Index (Free Index): 1.77 +/- 0.70
Photon Flux (Free Index): 5.32e-08 +/- 4.84e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.89e-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/532391/cmap_HighResolution_540259201_540518401_4FGL_J0433.0+0522_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-05', comment='SUCCESS', photon_flux='7.26e-08', energy_flux2='2.48e-05', photon_flux_error='7.14e-08', dlogl='4.77e-01', energy_flux='1.85e-05', photon_flux2='5.32e-08', job_status='DONE', time_completed='2021-08-20 20:07:29.266767', photon_index_error2='0.70', photon_index2='1.77', ts='1.75', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='1.89e-05', EG='0.62', time_epoch_completed='1629515249.27', return_code='0', job_id='532391', GAL2='1.10', EG2='0.65', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='4.84e-08', ts2='2.68', photon_index='2.56' WHERE bin_id='1161' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 20:07:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 532391: <4FGL_J0433.0+0522_daily_bin1161> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin1161 68.2618 5.3696 540259201 540518401 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 :                                   966.40 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             354.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            989 sec.

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

