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


Performing analysis on: 4FGL_J0433.0+0522_daily_bin758
RA = 68.2618, Dec = 5.3696
tmin = 435801601, tmax = 436060801
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='528723', job_status='RUN', time_executed='2021-08-20 19:43:23.218293', time_epoch_executed='1629513803.22' WHERE source_name='4FGL J0433.0+0522' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528723/ft1_4FGL_J0433.0+0522_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528723/ft2_4FGL_J0433.0+0522_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528723/ft1_4FGL_J0433.0+0522_daily_bin758.fits outfile=/scratch/kocevski/528723/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin758.fits ra=68.2618 dec=5.3696 rad=12.0 tmin=435801601.0 tmax=436060801.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.58
user 5.25
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528723/ft2_4FGL_J0433.0+0522_daily_bin758.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/528723/ft1_filteredMKT_4FGL_J0433.0+0522_daily_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/528723/ft1_filtered_4FGL_J0433.0+0522_daily_bin758.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528723/ft1_filtered_4FGL_J0433.0+0522_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/528723/ft2_4FGL_J0433.0+0522_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/528723/ltcube_435801601_436060801_4FGL_J0433.0+0522_daily_bin758.fits outfile=/scratch/kocevski/528723/expmap_435801601_436060801_4FGL_J0433.0+0522_daily_bin758.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/528723/ltcube_435801601_436060801_4FGL_J0433.0+0522_daily_bin758.fits
.....................!
real 190.54
user 185.26
sys 4.93

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/528723/ft1_filtered_4FGL_J0433.0+0522_daily_bin758.fits scfile=/scratch/kocevski/528723/ft2_4FGL_J0433.0+0522_daily_bin758.fits outfile=/scratch/kocevski/528723/cmap_435801601_436060801_4FGL_J0433.0+0522_daily_bin758.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.56
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528723/ft1_filtered_4FGL_J0433.0+0522_daily_bin758.fits scfile=/scratch/kocevski/528723/ft2_4FGL_J0433.0+0522_daily_bin758.fits outfile=/scratch/kocevski/528723/cmap_HighResolution_435801601_436060801_4FGL_J0433.0+0522_daily_bin758.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.58
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0226       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.0591       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.700       1.0000         .10000E-03   10000.    
     7 'norm      '    10.280       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.333       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.658       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.479       1.0000         .10000E-03   10000.    
    14 'norm      '    .11275E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .59131E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8298       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8212       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.999       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1368       1.0000         .10000E-03   10000.    
    24 'norm      '    .55692       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75995       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0856       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=   8707.625     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     2895 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.734       -.83840E-06** at limit **
   2  Prefactor     5.0174        14.181       -.10512E-04    .24232E-02
   3  norm          .10000E-03    6.8258        .23880E-05** at limit **
   4  Prefactor     .10000E-03    13.172       -.10479E-05** at limit **
   5  norm          8.0596        5.5872        .89616E-05    .45768E-02
   6  Prefactor     10.656        22.365        .91310E-05   -.22624E-02
   7  norm          10.273        6.6149        .89936E-07    .23102E-02
   8  norm          .10000E-03    .71406        .19602E-06** at limit **
   9  Prefactor     .10000E-03    1.5326       -.23860E-06** at limit **
  10  Prefactor     38.338        4.5801       -.66649E-06    .55709E-02
  11  Prefactor     34.066        3.2246        .18455E-06    .14896E-03
  12  Prefactor     14.660        1.5938        .16307E-06    .21988E-02
  13  Prefactor     20.489        9.2710        .10862E-05    .11694E-01
  14  norm          .10000E-03    6.3173       -.95129E-06** at limit **
  15  Prefactor     .11086E-03    859.23        .13533E-04** at limit **
  16  norm          .10000E-03    4.4759        .88964E-06** at limit **
  17  Prefactor     .10000E-03    4.6128       -.41782E-07** at limit **
  18  norm          3.8297        2.2197        .47966E-07   -.17470E-03
  19  Prefactor     2.8806        9.0643       -.76436E-05    .98283E-03
  20  norm          2.6839        2.4609        .28706E-06   -.63392E-04
  21  Prefactor     46.921        10.459        .41365E-07   -.42792E-03
  22  Prefactor     .10000E-03    4.2696       -.11414E-05** at limit **
  23  norm          3.1378        .99804        .23466E-06    .53810E-03
  24  norm          .55541        3.6451        .51751E-06    .10051E-03
  25  Prefactor     .10000E-03    2.1692        .16133E-06** at limit **
  26  Normalizat    .76010        .29027       -.73924E-05   -.10973E-03
  27  Prefactor     1.0856        .88700E-01    .98827E-06   -.41524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.0174
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.05959
  Prefactor  = 10.6562
  norm       = 10.273
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.3381
  Prefactor  = 34.0665
  Prefactor  = 14.6601
  Prefactor  = 20.4892
  norm       = 0.0001
  Prefactor  = 0.00011086
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.82969
  Prefactor  = 2.88058
  norm       = 2.6839
  Prefactor  = 46.9205
  Prefactor  = 0.0001
  norm       = 3.13782
  norm       = 0.555412
  Prefactor  = 0.0001
  Normalizat = 0.760099
  Prefactor  = 1.08559
 **********
 **   18 **HESSE 
 **********

 FCN=   8707.625     FROM HESSE     STATUS=OK           572 CALLS     3467 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.680        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0174        18.191        .44857E-02   -1.5260    
   3  norm          .10000E-03    6.8285        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.169        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.0596        5.7330        .35308E-02   -1.5140    
   6  Prefactor     10.656        26.264        .30621E-02   -1.5055    
   7  norm          10.273        21.921        .31243E-02   -1.5067    
   8  norm          .10000E-03    .69635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.338        30.328        .16184E-02   -1.4469    
  11  Prefactor     34.066        57.071        .17158E-02   -1.4540    
  12  Prefactor     14.660        12.541        .26154E-02   -1.4942    
  13  Prefactor     20.489        14.100        .22127E-02   -1.4802    
  14  norm          .10000E-03    1.7913        .62442E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11086E-03    32.046        .15683       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1071        .50744E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.5723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8297        2.2304        .51558E-02   -1.5317    
  19  Prefactor     2.8806        133.03        .60536E-02   -1.5369    
  20  norm          2.6839        2.4902        .62177E-02   -1.5380    
  21  Prefactor     46.921        54.824        .14622E-02   -1.4337    
  22  Prefactor     .10000E-03    4.2484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1378        1.1203        .57223E-02   -1.5354    
  24  norm          .55541        3.8656        .11501E-01   -1.5559    
  25  Prefactor     .10000E-03    2.1312        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .76010        .31766        .12621       -1.0157    
  27  Prefactor     1.0856        .86345E-01    .38160E-01   -.89928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22424e-07
Minuit parameter uncertainties:
  1  1.03836e-05
  2  18.2109
  3  3.28093e-05
  4  8.48501e-07
  5  5.73337
  6  26.2921
  7  21.9378
  8  4.50367e-06
  9  8.23961e-06
  10  30.3406
  11  57.1626
  12  12.5433
  13  14.1022
  14  4.17501e-06
  15  0.0373311
  16  1.09575e-06
  17  4.10172e-06
  18  2.23042
  19  39.2443
  20  2.49034
  21  54.8827
  22  3.21937e-06
  23  1.12035
  24  2.93054
  25  4.25627e-06
  26  0.318436
  27  0.0863565
Done.

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

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.000e-04  4.175e-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.086e+00  8.636e-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.601e-01  3.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/528723/likelihoodResults_435801601_436060801_4FGL_J0433.0+0522_daily_bin758.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) = 8707.62591613
delta logL = -0.00075868469321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8707.62515773
delta logL = -2.8386421036e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10245E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5749       1.0000          .0000       5.0000    
     3 'Normalizat'    .76018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0856       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8707.625     FROM MIGRAD    STATUS=FAILED        99 CALLS      264 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10255E-03    1592.2        .21068E-02** at limit **
   2  alpha         2.9006        3.2578        .16470       -.27706E-05
   3  Normalizat    .76010        .20576        .56003E-03    .66179E-04
   4  Prefactor     1.0856        .64314E-01    .15111E-03    .73879E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8707.625     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      420 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10255E-03    1592.2        .47733E-03** at limit **
   2  alpha         2.9006        3.2578        .11686E-04   -.27706E-05
   3  Normalizat    .76010        .20576        .16223E-05    .66179E-04
   4  Prefactor     1.0856        .64314E-01    .10980E-06    .73879E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8707.625     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      457 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7019        .42135E-03** at limit **
   2  alpha         2.9848        3.9701        .65880E-01   -.27611E-08
   3  Normalizat    .76010        .27247        .22401E-04   -.22533E-04
   4  Prefactor     1.0856        .87410E-01    .60445E-05   -.24827E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.98478
  Normalizat = 0.760098
  Prefactor  = 1.08559
 **********
 **   18 **HESSE 
 **********

 FCN=   8707.625     FROM HESSE     STATUS=OK            23 CALLS      480 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4917        .84271E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9848        2.6093        .26352E-02    .19515    
   3  Normalizat    .76010        .27283        .44802E-05   -1.0157    
   4  Prefactor     1.0856        .87492E-01    .12089E-05   -.89928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33781e-12
Minuit parameter uncertainties:
  1  2.97791e-06
  2  277.593
  3  0.27332
  4  0.0875035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528723': 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) = 8707.6251562
delta logL = 1.24478538055e-06

Extracting fit parameters...

4FGL J0433.0+0522
   Spectrum: LogParabola
184         norm:  1.000e-04  2.978e-06  1.000e-04  1.000e+04 ( 1.000e-11)
185        alpha:  2.985e+00  2.776e+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.086e+00  8.750e-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.601e-01  2.733e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/528723/cmap_HighResolution_435801601_436060801_4FGL_J0433.0+0522_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-05', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-08-20 19:57:12.129683', job_id='528723', GAL2='1.09', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1629514632.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='758' AND source_name='4FGL J0433.0+0522' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 19:57:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 528723: <4FGL_J0433.0+0522_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0433.0+0522_daily_bin758 68.2618 5.3696 435801601 436060801 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 :                                   827.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             306.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            999 sec.

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

