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


Performing analysis on: 4FGL_J0430.3+1654_monthly_bin118
RA = 67.5901, Dec = 16.9093
tmin = 542851201, tmax = 545443201
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='953306', job_status='RUN', time_executed='2021-10-13 05:36:15.404417', time_epoch_executed='1634128575.4' WHERE source_name='4FGL J0430.3+1654' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953306

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953306/ft1_4FGL_J0430.3+1654_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953306/ft1_4FGL_J0430.3+1654_monthly_bin118.fits outfile=/scratch/kocevski/953306/ft1_filteredMKT_4FGL_J0430.3+1654_monthly_bin118.fits ra=67.5901 dec=16.9093 rad=12.0 tmin=542851201.0 tmax=545443201.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 19.06
user 17.85
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.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/953306/ft1_filteredMKT_4FGL_J0430.3+1654_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.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.60
user 0.41
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/953306/ltcube_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.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/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits
.....................!
real 39.69
user 39.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/953306/ltcube_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.fits outfile=/scratch/kocevski/953306/expmap_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.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/953306/ltcube_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.fits
.....................!
real 192.53
user 186.57
sys 5.41

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
Extended source S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Added 148 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0430.3+1654 @ 67.5901 16.9093

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.fits scfile=/scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits outfile=/scratch/kocevski/953306/cmap_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.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=67.5901 yref=16.9093 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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.fits scfile=/scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits outfile=/scratch/kocevski/953306/cmap_HighResolution_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.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=67.5901 yref=16.9093 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.57
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953306/Model_4FGL_J0430.3+1654_monthly_bin118.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
adding source S 147
Working on...
/scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.fits.....................!
real 64.39
user 62.99
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.fits', '/scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits', expMap='/scratch/kocevski/953306/expmap_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.fits', expCube='/scratch/kocevski/953306/ltcube_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953306/Model_4FGL_J0430.3+1654_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0430.3+1654'

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  2.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.350e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953306/ft1_filtered_4FGL_J0430.3+1654_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/953306/ft2_4FGL_J0430.3+1654_monthly_bin118.fits
Exposure map: /scratch/kocevski/953306/expmap_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.fits
Exposure cube: /scratch/kocevski/953306/ltcube_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953306/Model_4FGL_J0430.3+1654_monthly_bin118.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) = 2440.77565527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37740E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18790       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14745E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.015       1.0000         .10000E-03   10000.    
     8 'norm      '    18.066       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25110E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.495       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9286       1.0000         .10000E-03   10000.    
    12 'norm      '    .11511E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14762E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7039       1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .10036E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0648       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2440.760     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     1510 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10108E-03    106.02       -.22851E-04** at limit **
   2  Prefactor     .10000E-03    17.928       -.52090E-05** at limit **
   3  Prefactor     1.8006        2.4450       -.43625E-05    .90701E-03
   4  Prefactor     .57193E-03    68.753       -.41037E-04** at limit **
   5  Prefactor     .19801E-03    1727.6       -.27846E-03** at limit **
   6  Prefactor     .10096E-03    26.657       -.31935E-04** at limit **
   7  Prefactor     13.030        2.0951       -.22813E-05    .26731E-02
   8  norm          18.068        9.2443       -.18880E-04   -.73245E-02
   9  Prefactor     .10346E-03    20.000       -.69166E-04** at limit **
  10  Prefactor     13.517        6.4716        .11562E-04   -.10054E-01
  11  norm          1.9270        4.5875       -.11298E-05   -.20910E-03
  12  norm          .10018E-03    38.230        .16704E-04** at limit **
  13  Prefactor     .10149E-03    25.991        .25251E-04** at limit **
  14  Prefactor     5.7042        6.6818        .13467E-05    .11413E-03
  15  norm          .10000E-03    4.6278       -.23051E-06** at limit **
  16  Prefactor     .10000E-03    4.8454        .60384E-06** at limit **
  17  Normalizat    .10000E-01    1.6510        .66130E-04** at limit **
  18  Prefactor     1.0648        .75636E-01    .43841E-05    .29272E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010108
  Prefactor  = 0.000100001
  Prefactor  = 1.80061
  Prefactor  = 0.000571926
  Prefactor  = 0.000198009
  Prefactor  = 0.000100961
  Prefactor  = 13.0303
  norm       = 18.0679
  Prefactor  = 0.000103462
  Prefactor  = 13.5168
  norm       = 1.92699
  norm       = 0.000100179
  Prefactor  = 0.000101488
  Prefactor  = 5.70422
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.06483
 **********
 **   18 **HESSE 
 **********

 FCN=   2440.760     FROM HESSE     STATUS=OK           292 CALLS     1802 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10108E-03    108.85        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8006        294.87        .78391E-02   -1.5440    
   4  Prefactor     .57193E-03    130.52        .13601       -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19801E-03    109.17        .15269       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10096E-03    29.337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.030        25.601        .27758E-02   -1.4986    
   8  norm          18.068        9.7345        .23557E-02   -1.4858    
   9  Prefactor     .10346E-03    71.762        .10732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.517        20.952        .27259E-02   -1.4972    
  11  norm          1.9270        4.6934        .74776E-02   -1.5430    
  12  norm          .10018E-03    39.194        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10149E-03    30.019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7042        6.6983        .42047E-02   -1.5230    
  15  norm          .10000E-03    4.6205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .10000E-01    .69984        .32095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0648        .10112        .26214E-01   -.90599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64759e-07
Minuit parameter uncertainties:
  1  0.0217261
  2  0.000211465
  3  46.3169
  4  0.497448
  5  0.207257
  6  0.0106265
  7  25.6225
  8  9.73535
  9  0.0315638
  10  20.963
  11  4.69429
  12  0.00529751
  13  0.0133751
  14  6.69923
  15  1.48061e-05
  16  3.72385e-05
  17  1.74271e-05
  18  0.101134
Done.

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

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  1.303e+01  2.562e+01  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  2.350e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.065e+00  1.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.000e-02  1.743e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 67.590 16.909
Photon Flux Upper Limit: 3.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953306/likelihoodResults_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.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) = 2439.96822122
delta logL = 0.791909118425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2439.85640176
delta logL = 0.90372858383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11715E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5631       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0551       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2439.856     FROM MIGRAD    STATUS=CONVERGED    173 CALLS      500 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10900E-03    .99097E-02    .17339E-03** at limit **
   2  Index         7.5895        2.7494        .83140E-01    .71808E-04
   3  Normalizat    .10000E-01    .60352E-01    .32236    ** at limit **
   4  Prefactor     1.0552        .36417E-01    .26239E-01    .28085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108997
  Index      = 7.58949
  Normalizat = 0.01
  Prefactor  = 1.0552
 **********
 **   18 **HESSE 
 **********

 FCN=   2439.856     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      535 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10900E-03    .54951E-01    .98450E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5895        7.7454        .34541E-02    .54439    
   3  Normalizat    .10000E-01    .46118        .15147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0552        .70634E-01    .11598E-03   -.90911    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.76046e-09
Minuit parameter uncertainties:
  1  0.00140623
  2  4.97624
  3  4.11117e-06
  4  0.0706402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953306': 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): 102
logL (Free Index) = 2439.85636876
delta logL = 0.903761577029

Extracting fit parameters...

4FGL J0430.3+1654
   Spectrum: PowerLaw
220    Prefactor:  1.090e-04  1.406e-03  1.000e-04  1.000e+04 ( 1.000e-13)
221        Index:  7.589e+00  4.976e+00  0.000e+00  1.000e+01 (-1.000e+00)
222        Scale:  1.553e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
492    Prefactor:  1.055e+00  7.064e-02  0.000e+00  1.000e+01 ( 1.000e+00)
493        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
494        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
491   Normalization:  1.000e-02  4.111e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 67.590 16.909
Photon Index (Free Index): 7.59 +/- 4.98
Photon Flux (Free Index): 1.85e-07 +/- 1.46e-07
Energy Flux (Free Index): 2.17e-05 +/- 1.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/953306/cmap_HighResolution_542851201_545443201_4FGL_J0430.3+1654_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-02', comment='SUCCESS', energy_flux2='2.17e-05', dlogl='9.04e-01', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-10-13 05:46:09.515802', photon_index_error2='4.98', photon_index2='7.59', ts='0.32', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='3.66e-07', energy_flux_error2='1.74e-05', EG='0.01', time_epoch_completed='1634129169.52', return_code='0', job_id='953306', GAL2='1.06', EG2='0.01', return_code2='102', photon_flux_error2='1.46e-07', ts2='2.13', photon_index='2.35' WHERE bin_id='118' AND source_name='4FGL J0430.3+1654' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 13 05:46:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 953306: <4FGL_J0430.3+1654_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0430.3+1654_monthly_bin118> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Oct 13 05:35:13 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 13 05:35:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 13 05:35:14 2021
Terminated at Wed Oct 13 05:46:10 2021
Results reported at Wed Oct 13 05:46:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0430.3+1654_monthly_bin118 67.5901 16.9093 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0430.3+1654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   562.00 sec.
    Max Memory :                                 1121 MB
    Average Memory :                             296.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

