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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin651
RA = 68.2618, Dec = 5.3696
tmin = 408067201, tmax = 408326401
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='528566', job_status='RUN', time_executed='2021-08-20 19:42:34.395448', time_epoch_executed='1629513754.4' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528566/ft1_4FGL_J0433.0+0522_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528566/ft2_4FGL_J0433.0+0522_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528566/ft1_4FGL_J0433.0+0522_daily_bin651.fits outfile=/scratch/kocevski/528566/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin651.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=408067201.0 tmax=408326401.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.13
user 3.64
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528566/ft1_filtered_4FGL_J0433.0+0522_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/528566/ft2_4FGL_J0433.0+0522_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/528566/ltcube_408067201_408326401_4FGL_J0433.0+0522_daily_bin651.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/528566/ft2_4FGL_J0433.0+0522_daily_bin651.fits
.....................!
real 13.09
user 12.28
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528566/ft1_filtered_4FGL_J0433.0+0522_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/528566/ft2_4FGL_J0433.0+0522_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/528566/ltcube_408067201_408326401_4FGL_J0433.0+0522_daily_bin651.fits outfile=/scratch/kocevski/528566/expmap_408067201_408326401_4FGL_J0433.0+0522_daily_bin651.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/528566/ltcube_408067201_408326401_4FGL_J0433.0+0522_daily_bin651.fits
.....................!
real 190.65
user 185.57
sys 4.46

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/528566/ft1_filtered_4FGL_J0433.0+0522_daily_bin651.fits scfile=/scratch/kocevski/528566/ft2_4FGL_J0433.0+0522_daily_bin651.fits outfile=/scratch/kocevski/528566/cmap_408067201_408326401_4FGL_J0433.0+0522_daily_bin651.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.20
user 0.39
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528566/ft1_filtered_4FGL_J0433.0+0522_daily_bin651.fits scfile=/scratch/kocevski/528566/ft2_4FGL_J0433.0+0522_daily_bin651.fits outfile=/scratch/kocevski/528566/cmap_HighResolution_408067201_408326401_4FGL_J0433.0+0522_daily_bin651.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.56
user 0.39
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.226       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3654       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    88.660       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.516       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12252E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    114.50       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .51848E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1480.358     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     3779 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11187E-03    135.23       -.85253E-04** at limit **
   2  Prefactor     .10478E-03    68.926        .94212E-04** at limit **
   3  norm          .10220E-03    28.253       -.57828E-04** at limit **
   4  Prefactor     37.221        1.4065       -.11699E-05    .70174E-03
   5  norm          3.3647        1.1481        .64037E-06    .46650E-05
   6  Prefactor     .10020E-03    21.893       -.38446E-04** at limit **
   7  norm          88.666        1.5472        .89209E-06   -.12399E-02
   8  norm          .10000E-03    1.4329       -.27009E-06** at limit **
   9  Prefactor     .10000E-03    9.9848       -.85513E-06** at limit **
  10  Prefactor     .10000E-03    10.505       -.70205E-06** at limit **
  11  Prefactor     61.383        1.0091       -.11687E-06    .88021E-04
  12  Prefactor     .10003E-03    24.533        .22185E-04** at limit **
  13  Prefactor     .20187E-03    141.18       -.11258E-03** at limit **
  14  norm          .10000E-03    2.6862        .22093E-06** at limit **
  15  Prefactor     .10008E-03    20.507       -.17397E-04** at limit **
  16  norm          11.516        6.5633       -.13324E-06   -.66057E-03
  17  Prefactor     .10000E-03    10.579       -.16890E-05** at limit **
  18  norm          .10000E-03    4.7579       -.10148E-05** at limit **
  19  Prefactor     .16745E-03    126.23        .47934E-04** at limit **
  20  norm          .10000E-03    1.5946       -.80374E-07** at limit **
  21  Prefactor     114.50        1.0798       -.26104E-06    .40809E-03
  22  Prefactor     .10025E-03    43.477        .46961E-04** at limit **
  23  norm          .10000E-03    .92966        .27827E-06** at limit **
  24  norm          .10000E-03    5.7115        .25012E-05** at limit **
  25  Prefactor     .10003E-03    27.931       -.28071E-04** at limit **
  26  Normalizat    .51899E-01    5.8672        .18381E-04   -.33916E-04
  27  Prefactor     1.1249        .26025       -.79294E-06   -.12168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111866
  Prefactor  = 0.000104782
  norm       = 0.000102199
  Prefactor  = 37.2208
  norm       = 3.36467
  Prefactor  = 0.0001002
  norm       = 88.6655
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 61.3831
  Prefactor  = 0.00010003
  Prefactor  = 0.000201867
  norm       = 0.0001
  Prefactor  = 0.000100079
  norm       = 11.5159
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000167453
  norm       = 0.0001
  Prefactor  = 114.499
  Prefactor  = 0.000100254
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100031
  Normalizat = 0.0518993
  Prefactor  = 1.12488
 **********
 **   18 **HESSE 
 **********

 FCN=   1480.358     FROM HESSE     STATUS=NOT POSDEF   538 CALLS     4317 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11187E-03    347.32        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10478E-03    78.291        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10220E-03    54.688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.221        90.575        .16422E-02   -1.4487    
   5  norm          3.3647        35.403        .55147E-02   -1.5341    
   6  Prefactor     .10020E-03    60.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          88.666        94.270        .10668E-02   -1.3822    
   8  norm          .10000E-03    1.3046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6094        .32510E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.695        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     61.383        168.99        .12803E-02   -1.4139    
  12  Prefactor     .10003E-03    24.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .20187E-03    409.25        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.4066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    63.428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.516        18.411        .29513E-02   -1.5029    
  17  Prefactor     .10000E-03    18.666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.2644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16745E-03    220.50        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     114.50        243.90        .93994E-03   -1.3564    
  22  Prefactor     .10025E-03    39.725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .84531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.1174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    24.485        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .51899E-01    8.4940        .32786       -1.4412    
  27  Prefactor     1.1249        1.3817        .36710E-01   -.88675    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.9442e-07
Minuit parameter uncertainties:
  1  0.129152
  2  0.03875
  3  0.0219543
  4  90.9123
  5  21.8445
  6  0.00692996
  7  94.4291
  8  2.25131e-05
  9  7.35927e-05
  10  0.000356664
  11  170.34
  12  0.00169203
  13  0.411196
  14  3.725e-06
  15  0.00449466
  16  18.4197
  17  9.31228e-05
  18  7.75225e-05
  19  0.244819
  20  9.89187e-06
  21  246.088
  22  0.00635742
  23  2.0767e-05
  24  0.000289431
  25  0.00175611
  26  2.85375
  27  1.42999
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1480.35757898

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.000e-04  3.725e-06  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.125e+00  1.430e+00  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:  5.190e-02  2.854e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/528566/likelihoodResults_408067201_408326401_4FGL_J0433.0+0522_daily_bin651.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): 102
logL (Free Index) = 1480.35893419
delta logL = -0.00135520893969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1480.35757898
delta logL = -1.33695721161e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5517       1.0000          .0000       5.0000    
     3 'Normalizat'    .51911E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1249       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1480.358     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      235 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    636.55        .61645E-03** at limit **
   2  alpha         2.2155        3.5654        .50000       -.19020E-07
   3  Normalizat    .51900E-01    1.1985        .12059E-01   -.13417E-04
   4  Prefactor     1.1249        .19148        .15413E-03    .86278E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.21554
  Normalizat = 0.0519002
  Prefactor  = 1.12488
 **********
 **   18 **HESSE 
 **********

 FCN=   1480.358     FROM HESSE     STATUS=OK            29 CALLS      264 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8286        .12329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2155        2.9574        .20000       -.11403    
   3  Normalizat    .51900E-01    2.1367        .48236E-03   -1.4412    
   4  Prefactor     1.1249        .25995        .30826E-04   -.88675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34161e-10
Minuit parameter uncertainties:
  1  3.18578e-06
  2  266.261
  3  0.623654
  4  0.260248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528566': 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) = 1480.35757819
delta logL = 7.87691533333e-07

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.000e-04  3.186e-06  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  2.216e+00  2.663e+02  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.125e+00  2.602e-01  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:  5.190e-02  6.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 68.262 5.370

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/528566/cmap_HighResolution_408067201_408326401_4FGL_J0433.0+0522_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-05', job_status='DONE', photon_flux_upper_limit='3.00e-07', time_completed='2021-08-20 19:49:33.479653', job_id='528566', GAL2='1.12', fit_tolerance='1e-08', EG2='0.05', EG='0.05', time_epoch_completed='1629514173.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.12', dlogl='7.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='651' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:49:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 528566: <4FGL_J0433.0+0522_daily_bin651> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin651 68.2618 5.3696 408067201 408326401 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 :                                   414.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            552 sec.

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

