/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 0 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0433.0+0522_daily_bin404
RA = 68.2618, Dec = 5.3696
tmin = 344044801, tmax = 344304001
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='525771', job_status='RUN', time_executed='2021-08-20 19:30:44.821687', time_epoch_executed='1629513044.82' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525771/ft1_4FGL_J0433.0+0522_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525771/ft2_4FGL_J0433.0+0522_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525771/ft1_4FGL_J0433.0+0522_daily_bin404.fits outfile=/scratch/kocevski/525771/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin404.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=344044801.0 tmax=344304001.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.42
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/525771/ft2_4FGL_J0433.0+0522_daily_bin404.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/525771/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin404.fits evtable="EVENTS" outfile="/scratch/kocevski/525771/ft1_filtered_4FGL_J0433.0+0522_daily_bin404.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/525771/ft1_filtered_4FGL_J0433.0+0522_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/525771/ft2_4FGL_J0433.0+0522_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/525771/ltcube_344044801_344304001_4FGL_J0433.0+0522_daily_bin404.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/525771/ft2_4FGL_J0433.0+0522_daily_bin404.fits
.....................!
real 11.92
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525771/ft1_filtered_4FGL_J0433.0+0522_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/525771/ft2_4FGL_J0433.0+0522_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/525771/ltcube_344044801_344304001_4FGL_J0433.0+0522_daily_bin404.fits outfile=/scratch/kocevski/525771/expmap_344044801_344304001_4FGL_J0433.0+0522_daily_bin404.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/525771/ltcube_344044801_344304001_4FGL_J0433.0+0522_daily_bin404.fits
.....................!
real 190.80
user 185.46
sys 5.02

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/525771/ft1_filtered_4FGL_J0433.0+0522_daily_bin404.fits scfile=/scratch/kocevski/525771/ft2_4FGL_J0433.0+0522_daily_bin404.fits outfile=/scratch/kocevski/525771/cmap_344044801_344304001_4FGL_J0433.0+0522_daily_bin404.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525771/ft1_filtered_4FGL_J0433.0+0522_daily_bin404.fits scfile=/scratch/kocevski/525771/ft2_4FGL_J0433.0+0522_daily_bin404.fits outfile=/scratch/kocevski/525771/cmap_HighResolution_344044801_344304001_4FGL_J0433.0+0522_daily_bin404.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13865E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.562       1.0000         .10000E-03   10000.    
     5 'norm      '    6.7953       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.933       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1776       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1881       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.875       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.424       1.0000         .10000E-03   10000.    
    14 'norm      '    .89920       1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.778       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2199       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1959       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.990       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8257       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.949       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9866       1.0000         .10000E-03   10000.    
    23 'norm      '    .33187       1.0000         .10000E-03   10000.    
    24 'norm      '    6.9539       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8953       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .71867       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1372       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=   10724.53     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3343 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    255.97        .31217E-05** at limit **
   2  Prefactor     .10000E-03    7.6367        .74117E-07** at limit **
   3  norm          .10000E-03    16.125        .67096E-07** at limit **
   4  Prefactor     19.559        19.305       -.23122E-06    .29260E-04
   5  norm          6.7956        5.2085        .52342E-06   -.40255E-04
   6  Prefactor     46.938        31.360        .11151E-06    .93883E-05
   7  norm          .10000E-03    10.261       -.49383E-07** at limit **
   8  norm          4.1774        1.7233       -.88197E-07    .37888E-03
   9  Prefactor     1.1908        2.1139       -.53882E-06   -.56740E-03
  10  Prefactor     .10000E-03    28.001        .21347E-06** at limit **
  11  Prefactor     30.838        59.848        .61706E-05    .16718E-04
  12  Prefactor     .10000E-03    6.0608       -.18257E-06** at limit **
  13  Prefactor     13.425        12.678        .18749E-06    .67870E-05
  14  norm          .90289        2.9500        .67498E-06   -.38265E-04
  15  Prefactor     77.785        54.499       -.35666E-06    .14408E-04
  16  norm          2.8248        2.3523       -.39243E-07   -.73423E-05
  17  Prefactor     3.2212        5.8877        .44603E-07   -.80710E-05
  18  norm          1.1965        2.2728        .29597E-06    .41194E-05
  19  Prefactor     16.999        33.833        .25750E-05    .48918E-05
  20  norm          3.8265        2.4471        .94015E-07    .58549E-04
  21  Prefactor     21.981        37.105       -.39338E-07    .25493E-04
  22  Prefactor     2.9853        7.7443        .45242E-05   -.83284E-04
  23  norm          .33098        .67025       -.83394E-07   -.84358E-03
  24  norm          6.9562        3.9470        .83156E-07    .10166E-03
  25  Prefactor     1.8966        3.3884        .17438E-06    .48396E-05
  26  Normalizat    .71855        .28622       -.80773E-06    .29629E-04
  27  Prefactor     1.1371        .82619E-01   -.40098E-06    .43930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.5592
  norm       = 6.79562
  Prefactor  = 46.9376
  norm       = 0.0001
  norm       = 4.17743
  Prefactor  = 1.19077
  Prefactor  = 0.0001
  Prefactor  = 30.8384
  Prefactor  = 0.0001
  Prefactor  = 13.425
  norm       = 0.902887
  Prefactor  = 77.7846
  norm       = 2.82477
  Prefactor  = 3.22124
  norm       = 1.1965
  Prefactor  = 16.9994
  norm       = 3.82653
  Prefactor  = 21.9811
  Prefactor  = 2.98525
  norm       = 0.330977
  norm       = 6.9562
  Prefactor  = 1.89663
  Normalizat = 0.718553
  Prefactor  = 1.13713
 **********
 **   18 **HESSE 
 **********

 FCN=   10724.53     FROM HESSE     STATUS=OK           500 CALLS     3843 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    263.22        .41063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    16.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.559        19.273        .90558E-04   -1.4823    
   5  norm          6.7956        5.1856        .15392E-03   -1.5187    
   6  Prefactor     46.938        31.286        .58528E-04   -1.4337    
   7  norm          .10000E-03    10.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1774        1.7087        .75118E-04   -1.5299    
   9  Prefactor     1.1908        2.0657        .17540E-03   -1.5490    
  10  Prefactor     .10000E-03    28.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.838        59.591        .72109E-04   -1.4597    
  12  Prefactor     .10000E-03    6.1027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.425        12.687        .10932E-03   -1.4975    
  14  norm          .90289        2.9292        .29137E-03   -1.5518    
  15  Prefactor     77.785        54.503        .45534E-04   -1.3942    
  16  norm          2.8248        2.3382        .13568E-03   -1.5372    
  17  Prefactor     3.2212        5.8271        .22576E-03   -1.5349    
  18  norm          1.1965        2.2549        .20095E-03   -1.5489    
  19  Prefactor     16.999        33.643        .97166E-04   -1.4883    
  20  norm          3.8265        2.4387        .12199E-03   -1.5317    
  21  Prefactor     21.981        35.805        .85495E-04   -1.4770    
  22  Prefactor     2.9853        7.7477        .11746E-02   -1.5362    
  23  norm          .33098        .62077        .96747E-04   -1.5593    
  24  norm          6.9562        3.8851        .14107E-03   -1.5180    
  25  Prefactor     1.8966        3.3647        .24220E-03   -1.5433    
  26  Normalizat    .71855        .28555        .59505E-03   -1.0317    
  27  Prefactor     1.1371        .86000E-01    .15434E-03   -.88288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7912e-10
Minuit parameter uncertainties:
  1  0.000145593
  2  3.87246e-06
  3  1.58116e-05
  4  19.2792
  5  5.1859
  6  31.2966
  7  3.5236e-07
  8  1.70875
  9  2.06581
  10  3.06775e-05
  11  59.7059
  12  2.2356e-05
  13  12.6895
  14  2.92966
  15  54.5385
  16  2.33831
  17  5.82814
  18  2.25507
  19  33.6802
  20  2.43879
  21  35.8396
  22  7.75027
  23  0.620782
  24  3.88525
  25  3.36501
  26  0.286146
  27  0.0860102
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  9.029e-01  2.930e+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.137e+00  8.601e-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:  7.186e-01  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/525771/likelihoodResults_344044801_344304001_4FGL_J0433.0+0522_daily_bin404.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) = 10724.427109
delta logL = 0.100836554549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10724.420754
delta logL = 0.107191540361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75083       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6077       1.0000          .0000       5.0000    
     3 'Normalizat'    .69686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       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=   10724.42     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75030        46.733        .12255E-01    .23177E-02
   2  alpha         3.6080        3.0853        .47994        .67712E-04
   3  Normalizat    .69689        .67264E-01    .13594        .62243E-04
   4  Prefactor     1.1408        .21706E-01    .36209E-01   -.15935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.750296
  alpha      = 3.60797
  Normalizat = 0.69689
  Prefactor  = 1.14077
 **********
 **   18 **HESSE 
 **********

 FCN=   10724.42     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75030        5.3172        .15689E-03   -1.5535    
   2  alpha         3.6080        4.2972        .64220E-01    .45915    
   3  Normalizat    .69689        .25759        .60348E-03   -1.0402    
   4  Prefactor     1.1408        .81638E-01    .15411E-03   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74596e-07
Minuit parameter uncertainties:
  1  3.99499
  2  4.31576
  3  0.258038
  4  0.0816465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525771': 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) = 10724.420754
delta logL = 0.107191580877

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  7.503e-01  3.995e+00  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  3.608e+00  4.316e+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.141e+00  8.165e-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.969e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/525771/cmap_HighResolution_344044801_344304001_4FGL_J0433.0+0522_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-05', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-08-20 19:46:34.156589', job_id='525771', GAL2='1.14', fit_tolerance='1e-08', EG2='0.70', EG='0.72', time_epoch_completed='1629513994.16', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.07e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='404' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 525771: <4FGL_J0433.0+0522_daily_bin404> in cluster <slac> Done

Job <4FGL_J0433.0+0522_daily_bin404> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 19:30:34 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 19:30:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 19:30:35 2021
Terminated at Fri Aug 20 19:46:35 2021
Results reported at Fri Aug 20 19:46:35 2021

Your job looked like:

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

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

