/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 106 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2250.0+3825_daily_bin93
RA = 342.514, Dec = 38.4247
tmin = 263433601, tmax = 263692801
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='492288', job_status='RUN', time_executed='2021-09-28 21:42:09.186141', time_epoch_executed='1632890529.19' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492288

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492288/ft1_4FGL_J2250.0+3825_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492288/ft1_4FGL_J2250.0+3825_daily_bin93.fits outfile=/scratch/kocevski/492288/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin93.fits ra=342.514 dec=38.4247 rad=12.0 tmin=263433601.0 tmax=263692801.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.60
user 3.33
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.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/492288/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/492288/ltcube_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.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/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits
.....................!
real 12.71
user 12.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/492288/ltcube_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.fits outfile=/scratch/kocevski/492288/expmap_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.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/492288/ltcube_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.fits
.....................!
real 191.18
user 185.02
sys 4.92

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 FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 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 J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.fits scfile=/scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits outfile=/scratch/kocevski/492288/cmap_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.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=342.514 yref=38.4247 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.fits scfile=/scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits outfile=/scratch/kocevski/492288/cmap_HighResolution_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.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=342.514 yref=38.4247 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/492288/Model_4FGL_J2250.0+3825_daily_bin93.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.fits.....................!
real 154.92
user 152.74
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.fits', '/scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits', expMap='/scratch/kocevski/492288/expmap_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.fits', expCube='/scratch/kocevski/492288/ltcube_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/492288/Model_4FGL_J2250.0+3825_daily_bin93.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/492288/ft1_filtered_4FGL_J2250.0+3825_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/492288/ft2_4FGL_J2250.0+3825_daily_bin93.fits
Exposure map: /scratch/kocevski/492288/expmap_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.fits
Exposure cube: /scratch/kocevski/492288/ltcube_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/492288/Model_4FGL_J2250.0+3825_daily_bin93.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) = 13398.4850578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55646E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.915       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6015       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8143       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2841       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.851       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1936       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2688       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8493       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5147       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9604       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7127       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88966       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13398.42     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1916 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55830E-01    .24406        .62907E-08   -.10745E-02
   2  Prefactor     .10000E-03    10.552       -.56042E-05** at limit **
   3  Prefactor     13.918        13.067        .24388E-06    .14229E-03
   4  norm          1.6014        .98752        .29995E-07   -.19472E-03
   5  Prefactor     .10000E-03    29.337       -.27144E-05** at limit **
   6  Prefactor     3.8143        5.3557        .37384E-05    .35027E-03
   7  Prefactor     4.2840        12.702        .41852E-07   -.26601E-04
   8  norm          .10000E-03    1.0793       -.16947E-06** at limit **
   9  Prefactor     14.851        11.499        .20552E-07    .40064E-05
  10  Prefactor     .10000E-03    2.0966       -.65139E-07** at limit **
  11  Prefactor     .10000E-03    10.122        .96283E-06** at limit **
  12  norm          2.1936        1.3575        .27289E-07   -.28745E-03
  13  Prefactor     2.7891        5.9262        .17885E-05   -.13077E-02
  14  Prefactor     .10000E-03    18.356        .30998E-05** at limit **
  15  norm          2.2689        3.1341        .61894E-07   -.35903E-03
  16  norm          8.8493        7.1225       -.76011E-07   -.97671E-05
  17  Prefactor     .10000E-03    9.8555        .35918E-05** at limit **
  18  norm          1.5147        1.6351       -.46022E-07   -.83659E-04
  19  Prefactor     3.9603        8.6900       -.58458E-09   -.34516E-04
  20  Normalizat    1.7127        .20426       -.56565E-06   -.64487E-04
  21  Prefactor     .88968        .67449E-01   -.31305E-06    .11041E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0558302
  Prefactor  = 0.000100001
  Prefactor  = 13.9176
  norm       = 1.60142
  Prefactor  = 0.0001
  Prefactor  = 3.81426
  Prefactor  = 4.28397
  norm       = 0.0001
  Prefactor  = 14.8506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.19358
  Prefactor  = 2.78913
  Prefactor  = 0.0001
  norm       = 2.26889
  norm       = 8.84926
  Prefactor  = 0.0001
  norm       = 1.51473
  Prefactor  = 3.96034
  Normalizat = 1.71268
  Prefactor  = 0.889675
 **********
 **   18 **HESSE 
 **********

 FCN=   13398.42     FROM HESSE     STATUS=OK           325 CALLS     2241 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55830E-01    .47709        .10799E-02   -1.5661    
   2  Prefactor     .10000E-03    10.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.918        12.839        .10737E-03   -1.4962    
   4  norm          1.6014        .97950        .86055E-04   -1.5455    
   5  Prefactor     .10000E-03    29.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8143        5.3758        .20667E-03   -1.5317    
   7  Prefactor     4.2840        12.678        .19465E-03   -1.5294    
   8  norm          .10000E-03    1.0900        .11758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.851        11.500        .10393E-03   -1.4937    
  10  Prefactor     .10000E-03    2.1249        .16367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1936        1.3554        .10128E-03   -1.5412    
  13  Prefactor     2.7891        10.968        .12178E-02   -1.5374    
  14  Prefactor     .10000E-03    18.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2689        3.1216        .23398E-03   -1.5407    
  16  norm          8.8493        7.1255        .13474E-03   -1.5113    
  17  Prefactor     .10000E-03    9.9334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5147        1.6274        .14915E-03   -1.5462    
  19  Prefactor     3.9603        8.6746        .20269E-03   -1.5310    
  20  Normalizat    1.7127        .23753        .38304E-03   -.71965    
  21  Prefactor     .88968        .77763E-01    .16901E-03   -.96503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62296e-08
Minuit parameter uncertainties:
  1  0.326121
  2  0.000162234
  3  12.8415
  4  0.979509
  5  0.0001369
  6  5.37646
  7  12.6861
  8  1.9969e-05
  9  11.5015
  10  1.05318e-05
  11  2.81421e-05
  12  1.35539
  13  10.976
  14  0.00012011
  15  3.12185
  16  7.12617
  17  9.73519e-05
  18  1.62749
  19  8.67739
  20  0.237688
  21  0.0777729
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.485e+01  1.150e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  8.897e-01  7.777e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.713e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.33
Ra Dec: 342.514 38.425
Photon Index (Fixed Index): 1.73 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 2.06e-05

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) = 13398.2243992
delta logL = 0.199753712974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13398.2106866
delta logL = 0.213466403662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.705       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3920       1.0000          .0000       10.000    
     3 'Normalizat'    1.7175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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.

 FCN=   13398.21     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      316 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.711        17.194        .88023E-04    .63028E-04
   2  Index         1.3919        .49740        .12316E-01    .35955E-03
   3  Normalizat    1.7175        .22769        .38261E-03   -.27158E-04
   4  Prefactor     .88936        .76257E-01    .16904E-03   -.53535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7107
  Index      = 1.39186
  Normalizat = 1.7175
  Prefactor  = 0.889364
 **********
 **   18 **HESSE 
 **********

 FCN=   13398.21     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.711        16.944        .35209E-05   -1.4797    
   2  Index         1.3919        .49042        .24631E-02   -.80615    
   3  Normalizat    1.7175        .22784        .15304E-04   -.71837    
   4  Prefactor     .88936        .76313E-01    .67616E-05   -.96514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13308e-11
Minuit parameter uncertainties:
  1  16.9484
  2  0.492071
  3  0.227983
  4  0.076322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492288': 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) = 13398.2106864
delta logL = 0.213466594021

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  2.071e+01  1.695e+01  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.392e+00  4.921e-01  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  8.894e-01  7.632e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.718e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.75
Ra Dec: 342.514 38.425
Photon Index (Free Index): 1.39 +/- 0.49
Photon Flux (Free Index): 1.16e-08 +/- 1.16e-08
Energy Flux (Free Index): 5.27e-05 +/- 6.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/492288/cmap_HighResolution_263433601_263692801_4FGL_J2250.0+3825_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='5.27e-05', photon_flux_error='1.40e-08', dlogl='2.13e-01', energy_flux='2.66e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-28 21:56:15.980877', photon_index_error2='0.49', photon_index2='1.39', ts='5.33', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='6.60e-05', EG='1.71', time_epoch_completed='1632891375.98', return_code='0', job_id='492288', GAL2='0.89', EG2='1.72', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='1.16e-08', ts2='5.75', photon_index='1.73' WHERE bin_id='93' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:56:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 492288: <4FGL_J2250.0+3825_daily_bin93> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin93> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 21:40:12 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:40:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:40:14 2021
Terminated at Tue Sep 28 21:56:16 2021
Results reported at Tue Sep 28 21:56:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin93 342.514 38.4247 263433601 263692801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.0+3825 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   842.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            964 sec.

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

