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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin546
RA = 68.2618, Dec = 5.3696
tmin = 380851201, tmax = 381110401
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='527127', job_status='RUN', time_executed='2021-08-20 19:37:41.631514', time_epoch_executed='1629513461.63' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/527127

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/527127/ft1_4FGL_J0433.0+0522_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/527127/ft2_4FGL_J0433.0+0522_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/527127/ft1_4FGL_J0433.0+0522_daily_bin546.fits outfile=/scratch/kocevski/527127/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin546.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=380851201.0 tmax=381110401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.17
user 3.24
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/527127/ft2_4FGL_J0433.0+0522_daily_bin546.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/527127/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin546.fits evtable="EVENTS" outfile="/scratch/kocevski/527127/ft1_filtered_4FGL_J0433.0+0522_daily_bin546.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.12
user 0.35
sys 0.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/527127/ft1_filtered_4FGL_J0433.0+0522_daily_bin546.fits" evtable="EVENTS" scfile=/scratch/kocevski/527127/ft2_4FGL_J0433.0+0522_daily_bin546.fits sctable="SC_DATA" outfile=/scratch/kocevski/527127/ltcube_380851201_381110401_4FGL_J0433.0+0522_daily_bin546.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/527127/ft2_4FGL_J0433.0+0522_daily_bin546.fits
.....................!
real 13.45
user 12.22
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/527127/ft1_filtered_4FGL_J0433.0+0522_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/527127/ft2_4FGL_J0433.0+0522_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/527127/ltcube_380851201_381110401_4FGL_J0433.0+0522_daily_bin546.fits outfile=/scratch/kocevski/527127/expmap_380851201_381110401_4FGL_J0433.0+0522_daily_bin546.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/527127/ltcube_380851201_381110401_4FGL_J0433.0+0522_daily_bin546.fits
.....................!
real 190.98
user 185.85
sys 4.75

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/527127/ft1_filtered_4FGL_J0433.0+0522_daily_bin546.fits scfile=/scratch/kocevski/527127/ft2_4FGL_J0433.0+0522_daily_bin546.fits outfile=/scratch/kocevski/527127/cmap_380851201_381110401_4FGL_J0433.0+0522_daily_bin546.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.11
user 0.38
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/527127/ft1_filtered_4FGL_J0433.0+0522_daily_bin546.fits scfile=/scratch/kocevski/527127/ft2_4FGL_J0433.0+0522_daily_bin546.fits outfile=/scratch/kocevski/527127/cmap_HighResolution_380851201_381110401_4FGL_J0433.0+0522_daily_bin546.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.12
user 0.37
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.812       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.074       1.0000         .10000E-03   10000.    
     7 'norm      '    .11412E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.6109       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1723       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.377       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2600       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.2212       1.0000         .10000E-03   10000.    
    21 'Prefactor '    44.370       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5175       1.0000         .10000E-03   10000.    
    23 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.231       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8010       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0953       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90762       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=   10052.38     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3329 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.116       -.48666E-05** at limit **
   2  Prefactor     .10000E-03    25.943       -.22806E-04** at limit **
   3  norm          .10000E-03    6.2110       -.97921E-07** at limit **
   4  Prefactor     12.802        20.794       -.20617E-05   -.62190E-04
   5  norm          .10000E-03    1.3537       -.18222E-07** at limit **
   6  Prefactor     38.084        26.264        .78630E-05    .15282E-03
   7  norm          .10000E-03    35.603        .21627E-04** at limit **
   8  norm          .10000E-03    .60485        .17237E-07** at limit **
   9  Prefactor     .10000E-03    .73497        .19981E-06** at limit **
  10  Prefactor     9.7196        24.608       -.38869E-04   -.88706E-04
  11  Prefactor     .10000E-03    32.752        .62528E-05** at limit **
  12  Prefactor     11.427        12.649       -.40774E-06   -.10024E-03
  13  Prefactor     .10000E-03    9.0953        .22082E-05** at limit **
  14  norm          9.6148        4.3558        .29689E-05   -.18667E-03
  15  Prefactor     .10000E-03    11.079       -.59558E-05** at limit **
  16  norm          2.1722        2.2215       -.23748E-06   -.96038E-03
  17  Prefactor     12.380        9.5805       -.53240E-06   -.81738E-04
  18  norm          2.2596        2.2769       -.32684E-06   -.10921E-02
  19  Prefactor     .10000E-03    15.573        .12549E-04** at limit **
  20  norm          2.2214        1.7100       -.87144E-07   -.26737E-03
  21  Prefactor     44.373        32.899        .15403E-05   -.46307E-04
  22  Prefactor     9.5174        9.4779       -.17339E-06   -.87474E-04
  23  norm          .10000E-03    .24540       -.12132E-07** at limit **
  24  norm          10.231        4.6413       -.62801E-06   -.12973E-03
  25  Prefactor     2.8014        3.5013       -.65489E-06   -.92168E-03
  26  Normalizat    1.0951        .25791        .28877E-05   -.22211E-04
  27  Prefactor     .90767        .70756E-01   -.10425E-06    .26492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.802
  norm       = 0.0001
  Prefactor  = 38.0836
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.71958
  Prefactor  = 0.0001
  Prefactor  = 11.4269
  Prefactor  = 0.0001
  norm       = 9.61475
  Prefactor  = 0.0001
  norm       = 2.17225
  Prefactor  = 12.3795
  norm       = 2.25961
  Prefactor  = 0.0001
  norm       = 2.22139
  Prefactor  = 44.373
  Prefactor  = 9.51745
  norm       = 0.0001
  norm       = 10.2309
  Prefactor  = 2.80139
  Normalizat = 1.09513
  Prefactor  = 0.907673
 **********
 **   18 **HESSE 
 **********

 FCN=   10052.38     FROM HESSE     STATUS=OK           492 CALLS     3821 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.2121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.802        20.728        .11191E-03   -1.4992    
   5  norm          .10000E-03    1.3565        .11390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.084        26.310        .64955E-04   -1.4473    
   7  norm          .10000E-03    36.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2294        .14625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2270        .16370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.7196        24.606        .12820E-03   -1.5084    
  11  Prefactor     .10000E-03    32.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.427        12.746        .11852E-03   -1.5032    
  13  Prefactor     .10000E-03    9.1401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.6148        4.3328        .11453E-03   -1.5088    
  15  Prefactor     .10000E-03    11.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1722        2.2116        .14291E-03   -1.5413    
  17  Prefactor     12.380        9.5687        .11386E-03   -1.5004    
  18  norm          2.2596        2.2677        .14300E-03   -1.5407    
  19  Prefactor     .10000E-03    15.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.2214        1.7085        .11070E-03   -1.5410    
  21  Prefactor     44.373        32.783        .60188E-04   -1.4375    
  22  Prefactor     9.5174        9.4810        .12990E-03   -1.5091    
  23  norm          .10000E-03    .25175        .95891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.231        4.6258        .12527E-03   -1.5068    
  25  Prefactor     2.8014        3.4936        .20023E-03   -1.5373    
  26  Normalizat    1.0951        .28589        .46397E-03   -.89908    
  27  Prefactor     .90767        .79468E-01    .15493E-03   -.95873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17503e-09
Minuit parameter uncertainties:
  1  4.26246e-06
  2  0.000129782
  3  1.06985e-06
  4  20.7392
  5  3.2611e-07
  6  26.3183
  7  0.000284464
  8  6.08242e-06
  9  2.09527e-05
  10  24.6318
  11  5.56885e-05
  12  12.7488
  13  1.54862e-05
  14  4.33291
  15  1.9267e-06
  16  2.21166
  17  9.56984
  18  2.26782
  19  1.50634e-05
  20  1.70852
  21  32.7964
  22  9.48248
  23  7.57067e-07
  24  4.62594
  25  3.49388
  26  0.286294
  27  0.0794783
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  9.615e+00  4.333e+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.077e-01  7.948e-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.095e+00  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.96
Ra Dec: 68.262 5.370
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.92e-07 +/- 8.64e-08
Energy Flux (Fixed Index): 4.90e-05 +/- 2.21e-05

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) = 10052.0993295
delta logL = 0.28245851575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10052.0989071
delta logL = 0.282880883746

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5846       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9664       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91647       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=   10052.10     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      241 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5846        44.444        .34203E-02    .78881E-03
   2  alpha         2.9664        3.9296        .38679        .56897E-04
   3  Normalizat    1.0481        .14557        .10658        .34273E-04
   4  Prefactor     .91647        .41965E-01    .45215E-01   -.63736E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.58455
  alpha      = 2.96642
  Normalizat = 1.04809
  Prefactor  = 0.916468
 **********
 **   18 **HESSE 
 **********

 FCN=   10052.10     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5846        4.1081        .10166E-03   -1.5122    
   2  alpha         2.9664        .58356        .15563E-01    .18767    
   3  Normalizat    1.0481        .25443        .47246E-03   -.91436    
   4  Prefactor     .91647        .76453E-01    .15425E-03   -.95568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60012e-09
Minuit parameter uncertainties:
  1  4.10826
  2  0.58919
  3  0.254725
  4  0.0764624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/527127': 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) = 10052.0989071
delta logL = 0.282880884994

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  8.585e+00  4.108e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  2.966e+00  5.892e-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.165e-01  7.646e-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.048e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.78
Ra Dec: 68.262 5.370
Photon Index (Free Index): 2.97 +/- 0.59
Photon Flux (Free Index): 2.39e-07 +/- 1.02e-07
Energy Flux (Free Index): 5.03e-05 +/- 1.86e-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/527127/cmap_HighResolution_380851201_381110401_4FGL_J0433.0+0522_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-07', energy_flux2='5.03e-05', photon_flux_error='8.64e-08', dlogl='2.83e-01', energy_flux='4.90e-05', photon_flux2='2.39e-07', job_status='DONE', time_completed='2021-08-20 19:51:16.034995', photon_index_error2='0.59', photon_index2='2.97', ts='10.96', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.10', time_epoch_completed='1629514276.04', return_code='0', job_id='527127', GAL2='0.92', EG2='1.05', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='1.02e-07', ts2='11.78', photon_index='2.56' WHERE bin_id='546' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:51:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 527127: <4FGL_J0433.0+0522_daily_bin546> in cluster <slac> Done

Job <4FGL_J0433.0+0522_daily_bin546> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 19:35:24 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 19:35:25 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:35:25 2021
Terminated at Fri Aug 20 19:51:16 2021
Results reported at Fri Aug 20 19:51:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin546 68.2618 5.3696 380851201 381110401 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 :                                   822.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             327.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            952 sec.

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

