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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin472
RA = 68.2618, Dec = 5.3696
tmin = 361670401, tmax = 361929601
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='525867', job_status='RUN', time_executed='2021-08-20 19:34:12.312134', time_epoch_executed='1629513252.31' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525867/ft1_4FGL_J0433.0+0522_daily_bin472.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525867/ft2_4FGL_J0433.0+0522_daily_bin472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525867/ft1_4FGL_J0433.0+0522_daily_bin472.fits outfile=/scratch/kocevski/525867/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin472.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=361670401.0 tmax=361929601.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 3.13
user 2.43
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/525867/ft2_4FGL_J0433.0+0522_daily_bin472.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/525867/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin472.fits evtable="EVENTS" outfile="/scratch/kocevski/525867/ft1_filtered_4FGL_J0433.0+0522_daily_bin472.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.89
user 0.24
sys 0.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/525867/ft1_filtered_4FGL_J0433.0+0522_daily_bin472.fits" evtable="EVENTS" scfile=/scratch/kocevski/525867/ft2_4FGL_J0433.0+0522_daily_bin472.fits sctable="SC_DATA" outfile=/scratch/kocevski/525867/ltcube_361670401_361929601_4FGL_J0433.0+0522_daily_bin472.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/525867/ft2_4FGL_J0433.0+0522_daily_bin472.fits
.....................!
real 9.27
user 8.46
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525867/ft1_filtered_4FGL_J0433.0+0522_daily_bin472.fits evtable="EVENTS" scfile=/scratch/kocevski/525867/ft2_4FGL_J0433.0+0522_daily_bin472.fits sctable="SC_DATA" expcube=/scratch/kocevski/525867/ltcube_361670401_361929601_4FGL_J0433.0+0522_daily_bin472.fits outfile=/scratch/kocevski/525867/expmap_361670401_361929601_4FGL_J0433.0+0522_daily_bin472.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/525867/ltcube_361670401_361929601_4FGL_J0433.0+0522_daily_bin472.fits
.....................!
real 141.24
user 136.76
sys 4.25

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

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/525867/ft1_filtered_4FGL_J0433.0+0522_daily_bin472.fits scfile=/scratch/kocevski/525867/ft2_4FGL_J0433.0+0522_daily_bin472.fits outfile=/scratch/kocevski/525867/cmap_361670401_361929601_4FGL_J0433.0+0522_daily_bin472.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.29
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525867/ft1_filtered_4FGL_J0433.0+0522_daily_bin472.fits scfile=/scratch/kocevski/525867/ft2_4FGL_J0433.0+0522_daily_bin472.fits outfile=/scratch/kocevski/525867/cmap_HighResolution_361670401_361929601_4FGL_J0433.0+0522_daily_bin472.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.91
user 0.29
sys 0.60

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.396       1.0000         .10000E-03   10000.    
     5 'norm      '    9.4470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0806       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3559       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.111       1.0000         .10000E-03   10000.    
    14 'norm      '    .34307       1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.451       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7544       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0904       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.419       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .81857E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .69827       1.0000         .10000E-03   10000.    
    24 'norm      '    10.840       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99155       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0579       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=   9824.773     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3342 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.936       -.23395E-05** at limit **
   2  Prefactor     .10000E-03    4.8254        .17233E-07** at limit **
   3  norm          .10000E-03    11.325       -.48199E-06** at limit **
   4  Prefactor     37.395        28.807        .20938E-06    .11635E-04
   5  norm          9.4471        7.0436        .20925E-06   -.35200E-04
   6  Prefactor     5.0774        35.910        .14341E-05   -.85613E-05
   7  norm          .10000E-03    22.786       -.30874E-05** at limit **
   8  norm          1.3558        1.0857        .60754E-07   -.79998E-04
   9  Prefactor     .10000E-03    .53685       -.12951E-07** at limit **
  10  Prefactor     28.661        22.476       -.72259E-06   -.11920E-03
  11  Prefactor     .10000E-03    18.858        .12778E-05** at limit **
  12  Prefactor     .10000E-03    3.6575        .45890E-07** at limit **
  13  Prefactor     26.112        14.432        .14815E-06    .17531E-04
  14  norm          .34357        1.8916        .18367E-05   -.38709E-03
  15  Prefactor     50.453        49.574        .36495E-06   -.12043E-05
  16  norm          .10000E-03    1.2959        .41131E-08** at limit **
  17  Prefactor     .10000E-03    3.4728        .16813E-06** at limit **
  18  norm          2.7544        2.1977        .80380E-07   -.12470E-03
  19  Prefactor     .10000E-03    27.682        .25118E-05** at limit **
  20  norm          4.0904        2.3639        .73565E-07   -.10558E-03
  21  Prefactor     45.445        39.353        .25355E-05    .19523E-03
  22  Prefactor     .10542        3.7303       -.47071E-06    .36397E-03
  23  norm          .69752        .82157        .35072E-06   -.73643E-04
  24  norm          10.841        4.9801       -.39608E-06   -.74475E-04
  25  Prefactor     .10000E-03    1.7354        .10858E-06** at limit **
  26  Normalizat    .99166        .25980       -.35757E-05   -.54219E-04
  27  Prefactor     1.0578        .76861E-01    .29582E-06   -.23490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.3954
  norm       = 9.4471
  Prefactor  = 5.07745
  norm       = 0.000100001
  norm       = 1.35583
  Prefactor  = 0.0001
  Prefactor  = 28.6611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1118
  norm       = 0.343572
  Prefactor  = 50.4528
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.75444
  Prefactor  = 0.0001
  norm       = 4.09042
  Prefactor  = 45.4451
  Prefactor  = 0.105422
  norm       = 0.697522
  norm       = 10.8415
  Prefactor  = 0.0001
  Normalizat = 0.991665
  Prefactor  = 1.05784
 **********
 **   18 **HESSE 
 **********

 FCN=   9824.773     FROM HESSE     STATUS=OK           496 CALLS     3838 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     37.395        28.800        .65539E-04   -1.4484    
   5  norm          9.4471        7.0256        .13039E-03   -1.5093    
   6  Prefactor     5.0774        35.641        .17838E-03   -1.5257    
   7  norm          .10000E-03    23.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3558        1.0868        .86248E-04   -1.5475    
   9  Prefactor     .10000E-03    .54219        .70821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.661        22.306        .74827E-04   -1.4637    
  11  Prefactor     .10000E-03    18.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.112        14.452        .78397E-04   -1.4686    
  14  norm          .34357        1.9589        .26373E-03   -1.5591    
  15  Prefactor     50.453        49.440        .56460E-04   -1.4286    
  16  norm          .10000E-03    1.3285        .22005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.695        .35057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7544        2.1903        .12457E-03   -1.5376    
  19  Prefactor     .10000E-03    27.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0904        2.3661        .11075E-03   -1.5303    
  21  Prefactor     45.445        39.936        .59492E-04   -1.4359    
  22  Prefactor     .10542        5.3094        .67582E-01   -1.5643    
  23  norm          .69752        .76037        .79289E-03   -1.5541    
  24  norm          10.841        4.9370        .12169E-03   -1.5049    
  25  Prefactor     .10000E-03    1.7626        .12743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99166        .27547        .49310E-03   -.93310    
  27  Prefactor     1.0578        .83543E-01    .15411E-03   -.90826    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76485e-09
Minuit parameter uncertainties:
  1  0.000183194
  2  4.92641e-06
  3  2.80718e-05
  4  28.8105
  5  7.0262
  6  26.9274
  7  0.000244779
  8  1.08681
  9  9.61046e-07
  10  22.3127
  11  0.000121062
  12  7.38081e-06
  13  14.4541
  14  1.64062
  15  49.48
  16  6.12794e-06
  17  0.000304968
  18  2.19034
  19  2.85626e-05
  20  2.36619
  21  39.9592
  22  1.49572
  23  0.760379
  24  4.93723
  25  7.55144e-07
  26  0.27587
  27  0.0835535
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  3.436e-01  1.641e+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.058e+00  8.355e-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.917e-01  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/525867/likelihoodResults_361670401_361929601_4FGL_J0433.0+0522_daily_bin472.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) = 9824.28416245
delta logL = 0.48842461795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9824.28341562
delta logL = 0.489171444702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70383       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0518       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0540       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=   9824.283     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      259 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70117        1.8002        .26795E-01    .62805E-03
   2  alpha         1.0496        1.1076        .50000       -.55410E-04
   3  Normalizat    1.0006        .23066        .11078        .38488E-04
   4  Prefactor     1.0539        .74666E-01    .39681E-01   -.64186E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.701173
  alpha      = 1.04957
  Normalizat = 1.00061
  Prefactor  = 1.05388
 **********
 **   18 **HESSE 
 **********

 FCN=   9824.283     FROM HESSE     STATUS=OK            35 CALLS      294 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70117        1.2331        .14882E-02   -1.5541    
   2  alpha         1.0496        1.0431        .39942E-01   -.61894    
   3  Normalizat    1.0006        .24834        .49112E-03   -.93010    
   4  Prefactor     1.0539        .80676E-01    .15431E-03   -.90954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02257e-08
Minuit parameter uncertainties:
  1  1.2331
  2  1.09518
  3  0.248627
  4  0.0806853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525867': 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) = 9824.28341011
delta logL = 0.489176959798

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  7.012e-01  1.233e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  1.050e+00  1.095e+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.054e+00  8.069e-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.001e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 68.262 5.370
Photon Index (Free Index): 1.05 +/- 1.10
Photon Flux (Free Index): 8.60e-09 +/- 1.35e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.66e-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/525867/cmap_HighResolution_361670401_361929601_4FGL_J0433.0+0522_daily_bin472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='4.89e-01', photon_flux2='8.60e-09', job_status='DONE', time_completed='2021-08-20 19:45:24.913914', photon_index_error2='1.10', photon_index2='1.05', ts='0.05', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.66e-05', EG='0.99', time_epoch_completed='1629513924.91', return_code='0', job_id='525867', GAL2='1.05', EG2='1.00', return_code2='0', photon_flux_error2='1.35e-08', ts2='1.03', photon_index='2.56' WHERE bin_id='472' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:45:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 525867: <4FGL_J0433.0+0522_daily_bin472> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin472 68.2618 5.3696 361670401 361929601 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 :                                   678.25 sec.
    Max Memory :                                 1039 MB
    Average Memory :                             292.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

