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


Performing analysis on: 4FGL_J0910.6+2247_daily_bin1520
RA = 137.674, Dec = 22.7978
tmin = 633312001, tmax = 633571201
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='45269', job_status='RUN', time_executed='2021-08-31 02:33:13.164723', time_epoch_executed='1630402393.16' WHERE source_name='4FGL J0910.6+2247' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45269

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45269/ft1_4FGL_J0910.6+2247_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45269/ft1_4FGL_J0910.6+2247_daily_bin1520.fits outfile=/scratch/kocevski/45269/ft1_filteredMKT_4FGL_J0910.6+2247_daily_bin1520.fits ra=137.674 dec=22.7978 rad=12.0 tmin=633312001.0 tmax=633571201.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.74
user 3.44
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.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/45269/ft1_filteredMKT_4FGL_J0910.6+2247_daily_bin1520.fits evtable="EVENTS" outfile="/scratch/kocevski/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.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.54
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/45269/ltcube_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.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/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits
.....................!
real 12.05
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/45269/ltcube_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.fits outfile=/scratch/kocevski/45269/expmap_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.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/45269/ltcube_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.fits
.....................!
real 191.73
user 186.48
sys 4.81

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J0910.6+2247 @ 137.674 22.7978

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.fits scfile=/scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits outfile=/scratch/kocevski/45269/cmap_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.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=137.674 yref=22.7978 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.fits scfile=/scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits outfile=/scratch/kocevski/45269/cmap_HighResolution_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.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=137.674 yref=22.7978 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/45269/Model_4FGL_J0910.6+2247_daily_bin1520.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/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.fits.....................!
real 58.27
user 56.84
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.fits', '/scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits', expMap='/scratch/kocevski/45269/expmap_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.fits', expCube='/scratch/kocevski/45269/ltcube_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/45269/Model_4FGL_J0910.6+2247_daily_bin1520.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0910.6+2247'

4FGL J0910.6+2247
   Spectrum: LogParabola
290         norm:  9.863e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.194e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.674e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.153e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/45269/ft1_filtered_4FGL_J0910.6+2247_daily_bin1520.fits
Spacecraft file(s): /scratch/kocevski/45269/ft2_4FGL_J0910.6+2247_daily_bin1520.fits
Exposure map: /scratch/kocevski/45269/expmap_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.fits
Exposure cube: /scratch/kocevski/45269/ltcube_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/45269/Model_4FGL_J0910.6+2247_daily_bin1520.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) = 6152.84002998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .12765E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3707       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6550       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.628       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1039       1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.059       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1011       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0057       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.982       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1267       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2155       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6152.819     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2405 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.786       -.52002E-06** at limit **
   2  norm          .10000E-03    .78398        .60256E-06** at limit **
   3  Prefactor     6.3841        13.309       -.46492E-05   -.32215E-03
   4  Prefactor     9.6558        10.132        .16926E-05   -.13061E-03
   5  Prefactor     19.627        46.436        .70544E-06   -.11611E-04
   6  norm          1.3983        .90323        .14286E-06   -.32681E-03
   7  Prefactor     9.1044        15.617        .83867E-06   -.61738E-04
   8  Prefactor     63.065        26.939        .25972E-05   -.72147E-04
   9  norm          1.1006        4.5175       -.16362E-05   -.10006E-02
  10  norm          .10000E-03    28.356       -.16056E-05** at limit **
  11  Prefactor     .10000E-03    .87624        .39717E-07** at limit **
  12  norm          1.0057        1.5316        .71207E-08   -.27056E-03
  13  Prefactor     .10000E-03    20.996        .30061E-06** at limit **
  14  Prefactor     .10000E-03    3.1208       -.31079E-06** at limit **
  15  Prefactor     3.2882        69.508        .23215E-04   -.21079E-04
  16  Prefactor     .10000E-03    132.25        .55188E-05** at limit **
  17  Prefactor     17.015        37.670        .34529E-04   -.15090E-04
  18  Prefactor     4.1324        8.7142       -.23563E-05   -.34245E-03
  19  Normalizat    1.2155        .20103       -.33305E-05   -.67048E-04
  20  Prefactor     .88168        .16667       -.24639E-06   -.31660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 6.38414
  Prefactor  = 9.65581
  Prefactor  = 19.6273
  norm       = 1.39833
  Prefactor  = 9.10439
  Prefactor  = 63.0646
  norm       = 1.10062
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28822
  Prefactor  = 0.0001
  Prefactor  = 17.0155
  Prefactor  = 4.13236
  Normalizat = 1.21549
  Prefactor  = 0.881683
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.819     FROM HESSE     STATUS=OK           297 CALLS     2702 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5160        .13074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3841        13.080        .15902E-03   -1.5203    
   4  Prefactor     9.6558        10.089        .12897E-03   -1.5086    
   5  Prefactor     19.627        46.445        .90404E-04   -1.4822    
   6  norm          1.3983        .89027        .54599E-04   -1.5471    
   7  Prefactor     9.1044        15.556        .13283E-03   -1.5104    
   8  Prefactor     63.065        27.038        .50533E-04   -1.4118    
   9  norm          1.1006        4.4991        .32826E-03   -1.5498    
  10  norm          .10000E-03    28.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .87692        .71705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0057        1.2863        .11545E-02   -1.5507    
  13  Prefactor     .10000E-03    21.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2316        .27021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2882        68.979        .22396E-03   -1.5345    
  16  Prefactor     .10000E-03    133.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.015        37.062        .97191E-04   -1.4883    
  18  Prefactor     4.1324        8.7301        .19843E-03   -1.5301    
  19  Normalizat    1.2155        .24056        .24788E-03   -.86125    
  20  Prefactor     .88168        .19771        .25436E-03   -.96784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33469e-09
Minuit parameter uncertainties:
  1  4.18076e-05
  2  7.82611e-05
  3  13.0857
  4  10.0906
  5  46.5309
  6  0.890279
  7  15.5632
  8  27.043
  9  4.45091
  10  1.39489e-05
  11  6.76188e-07
  12  1.2863
  13  3.83328e-06
  14  9.88415e-06
  15  30.1602
  16  0.000416228
  17  37.1118
  18  8.73278
  19  0.240782
  20  0.197875
Done.

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

Extracting fit parameters...

4FGL J0910.6+2247
   Spectrum: LogParabola
290         norm:  1.000e-04  1.395e-05  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  2.194e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  1.674e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.153e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.817e-01  1.979e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.215e+00  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 137.674 22.798
Photon Flux Upper Limit: 6.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45269/likelihoodResults_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.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): 102
logL (Free Index) = 6152.81951811
delta logL = -0.000167776235685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6152.81935062
delta logL = -2.9353032005e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9493       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88169       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   6152.802     FROM MIGRAD    STATUS=FAILED       154 CALLS      345 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14404        26.203        .18142E-01    .18379E-02
   2  alpha         5.0000        2.8175        .50000    ** at limit **
   3  Normalizat    1.2029        .36407E-01    .24788E-03   -.14218E-04
   4  Prefactor     .88816        .31949E-01    .25436E-03   -.13140E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6152.802     FROM SIMPLEX   STATUS=UNCHANGED    113 CALLS      458 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14404        26.203        .15480E-04    .18379E-02
   2  alpha         5.0000        2.8175        .78949E-01** at limit **
   3  Normalizat    1.2029        .36407E-01    .47727E-06   -.14218E-04
   4  Prefactor     .88816        .31949E-01    .14553E-06   -.13140E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6152.802     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      495 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14404        2.1654        .11106E-02    .44723E-03
   2  alpha         5.0000        3.6764        .50000    ** at limit **
   3  Normalizat    1.2029        .23075        .99152E-05    .31187E-04
   4  Prefactor     .88816        .19957        .10175E-04    .12514E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.144043
  alpha      = 5
  Normalizat = 1.20295
  Prefactor  = 0.888159
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.802     FROM HESSE     STATUS=OK            31 CALLS      526 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14404        1.3037        .44424E-04   -1.5632    
   2  alpha         5.0000        2.5243        .50000        7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2029        .23148        .19830E-05   -.86512    
   4  Prefactor     .88816        .19969        .20349E-05   -.96556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92023e-12
Minuit parameter uncertainties:
  1  0.866414
  2  2.64149e-05
  3  0.231674
  4  0.199852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45269': 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) = 6152.80182798
delta logL = 0.0175223463002

Extracting fit parameters...

4FGL J0910.6+2247
   Spectrum: LogParabola
290         norm:  1.440e-01  8.664e-01  1.000e-04  1.000e+04 ( 1.000e-13)
291        alpha:  5.000e+00  2.641e-05  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  1.674e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  9.153e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.882e-01  1.999e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.203e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 137.674 22.798

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/45269/cmap_HighResolution_633312001_633571201_4FGL_J0910.6+2247_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-08-31 02:43:17.173208', job_id='45269', GAL2='0.89', fit_tolerance='1e-08', EG2='1.20', EG='1.22', time_epoch_completed='1630402997.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.75e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1520' AND source_name='4FGL J0910.6+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 02:43:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 45269: <4FGL_J0910.6+2247_daily_bin1520> in cluster <slac> Done

Job <4FGL_J0910.6+2247_daily_bin1520> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 02:31:08 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 02:31:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 02:31:09 2021
Terminated at Tue Aug 31 02:43:17 2021
Results reported at Tue Aug 31 02:43:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0910.6+2247_daily_bin1520 137.674 22.7978 633312001 633571201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0910.6+2247 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   598.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            729 sec.

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

