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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin490
RA = 68.2618, Dec = 5.3696
tmin = 366336001, tmax = 366595201
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='525892', job_status='RUN', time_executed='2021-08-20 19:30:57.499531', time_epoch_executed='1629513057.5' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525892

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525892/ft1_4FGL_J0433.0+0522_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525892/ft2_4FGL_J0433.0+0522_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525892/ft1_4FGL_J0433.0+0522_daily_bin490.fits outfile=/scratch/kocevski/525892/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin490.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=366336001.0 tmax=366595201.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.54
user 5.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/525892/ft1_filtered_4FGL_J0433.0+0522_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/525892/ft2_4FGL_J0433.0+0522_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/525892/ltcube_366336001_366595201_4FGL_J0433.0+0522_daily_bin490.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/525892/ft2_4FGL_J0433.0+0522_daily_bin490.fits
.....................!
real 11.75
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525892/ft1_filtered_4FGL_J0433.0+0522_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/525892/ft2_4FGL_J0433.0+0522_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/525892/ltcube_366336001_366595201_4FGL_J0433.0+0522_daily_bin490.fits outfile=/scratch/kocevski/525892/expmap_366336001_366595201_4FGL_J0433.0+0522_daily_bin490.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/525892/ltcube_366336001_366595201_4FGL_J0433.0+0522_daily_bin490.fits
.....................!
real 190.21
user 185.51
sys 4.38

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/525892/ft1_filtered_4FGL_J0433.0+0522_daily_bin490.fits scfile=/scratch/kocevski/525892/ft2_4FGL_J0433.0+0522_daily_bin490.fits outfile=/scratch/kocevski/525892/cmap_366336001_366595201_4FGL_J0433.0+0522_daily_bin490.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525892/ft1_filtered_4FGL_J0433.0+0522_daily_bin490.fits scfile=/scratch/kocevski/525892/ft2_4FGL_J0433.0+0522_daily_bin490.fits outfile=/scratch/kocevski/525892/cmap_HighResolution_366336001_366595201_4FGL_J0433.0+0522_daily_bin490.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .66570       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.7004       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .79750       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5348       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.785       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3305       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0663       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.542       1.0000         .10000E-03   10000.    
    20 'norm      '    8.0982       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.170       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2978       1.0000         .10000E-03   10000.    
    23 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.7440       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21132E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .60970       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0997       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=   9938.881     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     2900 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.434        .11762E-05** at limit **
   2  Prefactor     .65030        5.7648        .52296E-06   -.26155E-03
   3  norm          .10000E-03    6.1070       -.56206E-08** at limit **
   4  Prefactor     .10000E-03    13.864        .30408E-05** at limit **
   5  norm          .10000E-03    1.6167        .16365E-07** at limit **
   6  Prefactor     .10000E-03    14.001       -.34240E-05** at limit **
   7  norm          9.7009        21.995        .25966E-06   -.18954E-03
   8  norm          3.5298        1.4767       -.24711E-07   -.14563E-03
   9  Prefactor     .79721        1.9821        .19102E-06   -.66172E-03
  10  Prefactor     .10000E-03    28.141       -.78831E-06** at limit **
  11  Prefactor     .10000E-03    97.319       -.10002E-05** at limit **
  12  Prefactor     3.5336        7.9766       -.64359E-09   -.10138E-03
  13  Prefactor     24.782        13.984       -.86382E-07   -.33986E-04
  14  norm          1.9989        2.8139        .14020E-06   -.37424E-03
  15  Prefactor     .10000E-03    17.793        .62116E-06** at limit **
  16  norm          3.3302        2.2036        .14131E-07   -.10479E-03
  17  Prefactor     .10000E-03    2.2729       -.23011E-08** at limit **
  18  norm          3.0659        1.9930        .25566E-07   -.11521E-03
  19  Prefactor     42.538        31.353       -.17072E-05   -.14759E-03
  20  norm          8.0976        3.0524        .21013E-07   -.64547E-04
  21  Prefactor     25.178        24.021        .91401E-06    .32437E-04
  22  Prefactor     8.2946        7.2789        .72029E-06   -.86993E-03
  23  norm          .10000E-03    .19881        .17232E-07** at limit **
  24  norm          2.7442        2.5455       -.83700E-08    .24623E-04
  25  Prefactor     .10000E-03    1.4032        .77857E-08** at limit **
  26  Normalizat    .60987        .28851       -.43962E-06   -.41209E-04
  27  Prefactor     1.0997        .82270E-01   -.20161E-07   -.56432E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.650297
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.70085
  norm       = 3.52983
  Prefactor  = 0.797207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.53359
  Prefactor  = 24.7824
  norm       = 1.99893
  Prefactor  = 0.0001
  norm       = 3.33024
  Prefactor  = 0.0001
  norm       = 3.06591
  Prefactor  = 42.5379
  norm       = 8.09764
  Prefactor  = 25.1782
  Prefactor  = 8.29457
  norm       = 0.0001
  norm       = 2.74421
  Prefactor  = 0.0001
  Normalizat = 0.609871
  Prefactor  = 1.09971
 **********
 **   18 **HESSE 
 **********

 FCN=   9938.881     FROM HESSE     STATUS=OK           496 CALLS     3396 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .65030        38.203        .45809E-02   -1.5547    
   3  norm          .10000E-03    6.1106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6232        .12373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.7009        21.730        .64332E-03   -1.5085    
   8  norm          3.5298        1.4492        .69664E-04   -1.5332    
   9  Prefactor     .79721        1.9319        .18820E-03   -1.5529    
  10  Prefactor     .10000E-03    28.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    97.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5336        7.9818        .21500E-03   -1.5332    
  13  Prefactor     24.782        13.989        .80463E-04   -1.4712    
  14  norm          1.9989        2.8273        .18703E-03   -1.5425    
  15  Prefactor     .10000E-03    17.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3302        2.1943        .11377E-03   -1.5343    
  17  Prefactor     .10000E-03    2.2808        .14672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0659        1.9841        .10753E-03   -1.5358    
  19  Prefactor     42.538        31.609        .61462E-04   -1.4403    
  20  norm          8.0976        3.0429        .10001E-03   -1.5139    
  21  Prefactor     25.178        23.668        .79846E-04   -1.4704    
  22  Prefactor     8.2946        9.3016        .69586E-03   -1.5132    
  23  norm          .10000E-03    .32138        .83449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.7442        2.5327        .14648E-03   -1.5377    
  25  Prefactor     .10000E-03    7.3031        .22572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .60987        .28542        .58789E-03   -1.0757    
  27  Prefactor     1.0997        .84742E-01    .14510E-03   -.89476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98701e-09
Minuit parameter uncertainties:
  1  0.00015068
  2  9.97453
  3  3.3341e-07
  4  0.000232965
  5  4.92866e-07
  6  0.000261608
  7  21.7482
  8  1.44925
  9  1.93204
  10  7.25959e-05
  11  0.000179321
  12  7.98421
  13  13.9905
  14  2.82748
  15  5.41799e-05
  16  2.19439
  17  2.33807e-06
  18  1.98417
  19  31.6219
  20  3.04294
  21  23.6768
  22  9.30324
  23  1.84669e-08
  24  2.53275
  25  1.31446e-05
  26  0.286117
  27  0.0847521
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.999e+00  2.827e+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.100e+00  8.475e-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.099e-01  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/525892/likelihoodResults_366336001_366595201_4FGL_J0433.0+0522_daily_bin490.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) = 9938.75379321
delta logL = 0.127568875188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9938.72874457
delta logL = 0.152617515449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .60092       1.0000         .10000E-03   10000.    
     2 'alpha     '    .69248       1.0000          .0000       5.0000    
     3 'Normalizat'    .64326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0956       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=   9938.729     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      280 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60097        2.2710        .12883E-02    .12738E-02
   2  alpha         .69273        2.7684        .43823E-01   -.46019E-04
   3  Normalizat    .64335        .24908        .57333E-03   -.13960E-04
   4  Prefactor     1.0956        .81743E-01    .14531E-03    .43345E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.600969
  alpha      = 0.692734
  Normalizat = 0.643347
  Prefactor  = 1.09556
 **********
 **   18 **HESSE 
 **********

 FCN=   9938.729     FROM HESSE     STATUS=OK            27 CALLS      307 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60097        2.4360        .51531E-04   -1.5553    
   2  alpha         .69273        2.7333        .17529E-02   -.80800    
   3  Normalizat    .64335        .24909        .22933E-04   -1.0617    
   4  Prefactor     1.0956        .81766E-01    .58123E-05   -.89609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71886e-10
Minuit parameter uncertainties:
  1  2.41983
  2  2.05782
  3  0.24953
  4  0.0817752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525892': 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) = 9938.72874443
delta logL = 0.152617654787

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  6.010e-01  2.420e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  6.927e-01  2.058e+00  0.000e+00  5.000e+00 ( 1.000e+00)
186         beta:  2.655e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
187           Eb:  4.245e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
444    Prefactor:  1.096e+00  8.178e-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.433e-01  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
Ra Dec: 68.262 5.370

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/525892/cmap_HighResolution_366336001_366595201_4FGL_J0433.0+0522_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-05', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-08-20 19:45:37.629074', job_id='525892', GAL2='1.10', fit_tolerance='1e-08', EG2='0.64', EG='0.61', time_epoch_completed='1629513937.63', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.53e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='490' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:45:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 525892: <4FGL_J0433.0+0522_daily_bin490> in cluster <slac> Done

Job <4FGL_J0433.0+0522_daily_bin490> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 19:30:41 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 19:30:42 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:30:42 2021
Terminated at Fri Aug 20 19:45:40 2021
Results reported at Fri Aug 20 19:45:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin490 68.2618 5.3696 366336001 366595201 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 :                                   872.12 sec.
    Max Memory :                                 1137 MB
    Average Memory :                             376.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

