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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin756
RA = 68.2618, Dec = 5.3696
tmin = 435283201, tmax = 435542401
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='528721', job_status='RUN', time_executed='2021-08-20 19:42:27.482428', time_epoch_executed='1629513747.48' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528721/ft1_4FGL_J0433.0+0522_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528721/ft2_4FGL_J0433.0+0522_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528721/ft1_4FGL_J0433.0+0522_daily_bin756.fits outfile=/scratch/kocevski/528721/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin756.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=435283201.0 tmax=435542401.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.11
user 4.89
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528721/ft2_4FGL_J0433.0+0522_daily_bin756.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/528721/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/528721/ft1_filtered_4FGL_J0433.0+0522_daily_bin756.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528721/ft1_filtered_4FGL_J0433.0+0522_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/528721/ft2_4FGL_J0433.0+0522_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/528721/ltcube_435283201_435542401_4FGL_J0433.0+0522_daily_bin756.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/528721/ft2_4FGL_J0433.0+0522_daily_bin756.fits
.....................!
real 12.04
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528721/ft1_filtered_4FGL_J0433.0+0522_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/528721/ft2_4FGL_J0433.0+0522_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/528721/ltcube_435283201_435542401_4FGL_J0433.0+0522_daily_bin756.fits outfile=/scratch/kocevski/528721/expmap_435283201_435542401_4FGL_J0433.0+0522_daily_bin756.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/528721/ltcube_435283201_435542401_4FGL_J0433.0+0522_daily_bin756.fits
.....................!
real 191.01
user 186.62
sys 4.07

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/528721/ft1_filtered_4FGL_J0433.0+0522_daily_bin756.fits scfile=/scratch/kocevski/528721/ft2_4FGL_J0433.0+0522_daily_bin756.fits outfile=/scratch/kocevski/528721/cmap_435283201_435542401_4FGL_J0433.0+0522_daily_bin756.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528721/ft1_filtered_4FGL_J0433.0+0522_daily_bin756.fits scfile=/scratch/kocevski/528721/ft2_4FGL_J0433.0+0522_daily_bin756.fits outfile=/scratch/kocevski/528721/cmap_HighResolution_435283201_435542401_4FGL_J0433.0+0522_daily_bin756.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.69
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.064       1.0000         .10000E-03   10000.    
     3 'norm      '    24.967       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.066       1.0000         .10000E-03   10000.    
     7 'norm      '    11.991       1.0000         .10000E-03   10000.    
     8 'norm      '    .11700E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6556       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57415E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .61498E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9719       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11377E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .16032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.823       1.0000         .10000E-03   10000.    
    20 'norm      '    7.3734       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2928       1.0000         .10000E-03   10000.    
    24 'norm      '    10.855       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98138       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98317       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=   8328.651     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3373 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.475       -.17789E-05** at limit **
   2  Prefactor     35.064        21.437        .71218E-06   -.31325E-04
   3  norm          24.970        22.974       -.15730E-06    .10128E-04
   4  Prefactor     .10000E-03    13.403       -.12685E-04** at limit **
   5  norm          .10000E-03    2.9847       -.12024E-06** at limit **
   6  Prefactor     22.054        29.873       -.61982E-05   -.91980E-04
   7  norm          11.989        23.929       -.72992E-06    .14408E-04
   8  norm          .17898E-03    .54650       -.34349E-06** at limit **
   9  Prefactor     2.5343        2.2896       -.66261E-07   -.12612E-03
  10  Prefactor     6.6574        23.114        .17174E-05   -.10216E-03
  11  Prefactor     .10000E-03    30.790       -.14494E-05** at limit **
  12  Prefactor     .10001E-03    6.7697        .35517E-07** at limit **
  13  Prefactor     .63948E-01    9.3772        .17011E-05   -.66173E-03
  14  norm          3.9708        3.0212       -.15394E-06   -.10859E-02
  15  Prefactor     .10000E-03    95.433        .22076E-04** at limit **
  16  norm          .10000E-03    .73429       -.15339E-07** at limit **
  17  Prefactor     .10006E-03    3.4597        .29717E-05** at limit **
  18  norm          .10000E-03    .86752        .24248E-07** at limit **
  19  Prefactor     47.792        33.351       -.13934E-04   -.32257E-03
  20  norm          7.3733        3.0602       -.10013E-06   -.20125E-03
  21  Prefactor     .10000E-03    12.522        .57348E-05** at limit **
  22  Prefactor     .10000E-03    2.5931       -.47551E-07** at limit **
  23  norm          2.2927        .83248        .97698E-07   -.80966E-03
  24  norm          10.855        5.0020        .83878E-06   -.19783E-03
  25  Prefactor     .10000E-03    1.4730       -.27717E-07** at limit **
  26  Normalizat    .98163        .28109        .32201E-05   -.37395E-03
  27  Prefactor     .98314        .79585E-01   -.21243E-06   -.91766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.0637
  norm       = 24.9695
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0541
  norm       = 11.9887
  norm       = 0.000178977
  Prefactor  = 2.53425
  Prefactor  = 6.65742
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0639479
  norm       = 3.9708
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100058
  norm       = 0.0001
  Prefactor  = 47.7924
  norm       = 7.37326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.29272
  norm       = 10.8551
  Prefactor  = 0.0001
  Normalizat = 0.981629
  Prefactor  = 0.983141
 **********
 **   18 **HESSE 
 **********

 FCN=   8328.651     FROM HESSE     STATUS=OK           508 CALLS     3881 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.064        21.392        .67676E-04   -1.4523    
   3  norm          24.970        22.970        .80169E-04   -1.4708    
   4  Prefactor     .10000E-03    13.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.0006        .15385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.054        29.810        .85268E-04   -1.4768    
   7  norm          11.989        23.809        .11569E-03   -1.5015    
   8  norm          .17898E-03    1.1140        .23131E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5343        2.2727        .11676E-03   -1.5390    
  10  Prefactor     6.6574        22.889        .15554E-03   -1.5192    
  11  Prefactor     .10000E-03    30.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    39.895        .43858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .63948E-01    11.642        .80406E-01   -1.5657    
  14  norm          3.9708        2.9884        .12345E-03   -1.5309    
  15  Prefactor     .10000E-03    95.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .73934        .76318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    14.214        .31564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.7406        .16127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.792        33.484        .57984E-04   -1.4324    
  20  norm          7.3733        3.0608        .97758E-04   -1.5165    
  21  Prefactor     .10000E-03    12.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.6000        .14351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2927        .83476        .45594E-04   -1.5405    
  24  norm          10.855        5.0203        .12160E-03   -1.5049    
  25  Prefactor     .10000E-03    1.5011        .10812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .98163        .28814        .47459E-03   -.93648    
  27  Prefactor     .98314        .85333E-01    .15052E-03   -.93294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96097e-09
Minuit parameter uncertainties:
  1  5.87227e-05
  2  21.3964
  3  22.9777
  4  3.54314e-06
  5  1.47422e-06
  6  29.83
  7  23.8278
  8  0.0187596
  9  2.27276
  10  22.919
  11  1.85532e-06
  12  0.00144118
  13  1.72464
  14  2.98855
  15  0.000244386
  16  1.11266e-06
  17  0.00182342
  18  3.1672e-05
  19  33.4972
  20  3.06083
  21  0.000109037
  22  4.50332e-07
  23  0.834763
  24  5.02046
  25  3.7839e-06
  26  0.2886
  27  0.0853443
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  3.971e+00  2.989e+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.831e-01  8.534e-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.816e-01  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.27
Ra Dec: 68.262 5.370
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 7.92e-08 +/- 5.96e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/528721/likelihoodResults_435283201_435542401_4FGL_J0433.0+0522_daily_bin756.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) = 8327.12345442
delta logL = 1.52719281224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8326.87557639
delta logL = 1.77507083867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7144       1.0000         .10000E-03   10000.    
     2 'alpha     '    .89725       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97538       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=   8326.876     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      219 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7144        1.4031        .80241E-02   -.55558E-03
   2  alpha         .89725        .49960        .45689       -.57786E-04
   3  Normalizat    1.0401        .24205        .10443        .39594E-05
   4  Prefactor     .97538        .77196E-01    .34175E-01   -.16984E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71441
  alpha      = 0.897248
  Normalizat = 1.04015
  Prefactor  = 0.975379
 **********
 **   18 **HESSE 
 **********

 FCN=   8326.876     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7144        2.1841        .84258E-04   -1.5446    
   2  alpha         .89725        .74411        .20738E-01   -.69593    
   3  Normalizat    1.0401        .26053        .46286E-03   -.91697    
   4  Prefactor     .97538        .83397E-01    .15102E-03   -.93555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72235e-10
Minuit parameter uncertainties:
  1  2.18419
  2  0.764156
  3  0.260848
  4  0.0834079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528721': 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) = 8326.87557639
delta logL = 1.77507083958

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.714e+00  2.184e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  8.972e-01  7.642e-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:  9.754e-01  8.341e-02  0.000e+00  1.000e+01 ( 1.000e+00)
445        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
446        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
443   Normalization:  1.040e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.81
Ra Dec: 68.262 5.370
Photon Index (Free Index): 0.90 +/- 0.76
Photon Flux (Free Index): 2.23e-08 +/- 2.20e-08
Energy Flux (Free Index): 3.30e-05 +/- 2.97e-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/528721/cmap_HighResolution_435283201_435542401_4FGL_J0433.0+0522_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-05', comment='SUCCESS', photon_flux='7.92e-08', energy_flux2='3.30e-05', photon_flux_error='5.96e-08', dlogl='1.78e+00', energy_flux='2.02e-05', photon_flux2='2.23e-08', job_status='DONE', time_completed='2021-08-20 19:56:26.087212', photon_index_error2='0.76', photon_index2='0.90', ts='3.27', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='2.97e-05', EG='0.98', time_epoch_completed='1629514586.09', return_code='0', job_id='528721', GAL2='0.98', EG2='1.04', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.20e-08', ts2='6.81', photon_index='2.56' WHERE bin_id='756' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:56:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 528721: <4FGL_J0433.0+0522_daily_bin756> in cluster <slac> Done

Job <4FGL_J0433.0+0522_daily_bin756> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 19:40:33 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 19:40:35 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:40:35 2021
Terminated at Fri Aug 20 19:56:26 2021
Results reported at Fri Aug 20 19:56:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin756 68.2618 5.3696 435283201 435542401 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 :                                   832.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

