/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0750.8+1229_daily_bin421
RA = 117.701, Dec = 12.494
tmin = 348451201, tmax = 348710401
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='942582', job_status='RUN', time_executed='2021-08-28 16:05:58.282128', time_epoch_executed='1630191958.28' WHERE source_name='4FGL J0750.8+1229' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/942582

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/942582/ft1_4FGL_J0750.8+1229_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/942582/ft1_4FGL_J0750.8+1229_daily_bin421.fits outfile=/scratch/kocevski/942582/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin421.fits ra=117.701 dec=12.494 rad=12.0 tmin=348451201.0 tmax=348710401.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 4.97
user 3.22
sys 1.72

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.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/942582/ft1_filteredMKT_4FGL_J0750.8+1229_daily_bin421.fits evtable="EVENTS" outfile="/scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.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 2.07
user 0.33
sys 1.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.fits" evtable="EVENTS" scfile=/scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits sctable="SC_DATA" outfile=/scratch/kocevski/942582/ltcube_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.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/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits
.....................!
real 14.15
user 11.97
sys 2.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/942582/ltcube_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.fits outfile=/scratch/kocevski/942582/expmap_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.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/942582/ltcube_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.fits
.....................!
real 193.94
user 187.38
sys 6.08

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 168 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 J0750.8+1229 @ 117.701 12.494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.fits scfile=/scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits outfile=/scratch/kocevski/942582/cmap_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.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=117.701 yref=12.494 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 2.05
user 0.36
sys 1.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.fits scfile=/scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits outfile=/scratch/kocevski/942582/cmap_HighResolution_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.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=117.701 yref=12.494 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 2.05
user 0.38
sys 1.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/942582/Model_4FGL_J0750.8+1229_daily_bin421.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 Monoceros
adding source Rosette
Working on...
/scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.fits.....................!
real 97.59
user 94.07
sys 3.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.fits', '/scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits', expMap='/scratch/kocevski/942582/expmap_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.fits', expCube='/scratch/kocevski/942582/ltcube_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/942582/Model_4FGL_J0750.8+1229_daily_bin421.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0750.8+1229'

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/942582/ft1_filtered_4FGL_J0750.8+1229_daily_bin421.fits
Spacecraft file(s): /scratch/kocevski/942582/ft2_4FGL_J0750.8+1229_daily_bin421.fits
Exposure map: /scratch/kocevski/942582/expmap_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.fits
Exposure cube: /scratch/kocevski/942582/ltcube_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/942582/Model_4FGL_J0750.8+1229_daily_bin421.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) = 7201.5564307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0371       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9800       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17031E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .42129       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.181       1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    101.48       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .71210       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .52494E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14752E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3390       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7201.439     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2869 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0354        8.0671        .89114E-07   -.12029E-04
   2  norm          .10000E-03    1.3565       -.48977E-07** at limit **
   3  norm          2.9795        1.6921        .60337E-07   -.25852E-03
   4  Prefactor     .10000E-03    31.912        .52821E-08** at limit **
   5  Prefactor     .10006E-03    25.357        .24757E-06** at limit **
   6  norm          .10000E-03    1.0862        .44042E-06** at limit **
   7  norm          .42049        1.6141        .11778E-05   -.10034E-03
   8  Prefactor     23.176        12.808       -.61621E-06   -.54623E-03
   9  Prefactor     64.513        26.675        .20671E-06   -.34395E-05
  10  Prefactor     .10000E-03    13.403        .53388E-07** at limit **
  11  Prefactor     .10000E-03    1.6540        .27789E-06** at limit **
  12  norm          22.505        17.810        .11127E-06    .15845E-04
  13  Prefactor     .10000E-03    8.2692        .35442E-06** at limit **
  14  Prefactor     101.55        156.08        .35131E-05    .42816E-04
  15  norm          .10000E-03    37.503       -.11305E-06** at limit **
  16  Prefactor     .69966        14.008       -.11927E-05    .18386E-03
  17  norm          .10000E-03    4.4113        .13148E-07** at limit **
  18  norm          .10119E-03    3.2763        .74076E-06** at limit **
  19  Prefactor     .10000E-03    89.912       -.12465E-05** at limit **
  20  Prefactor     .10004E-03    13.485        .72197E-06** at limit **
  21  Normalizat    1.3388        .20392       -.13615E-05   -.27537E-03
  22  Prefactor     .87044        .12101        .64272E-07   -.41409E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.03536
  norm       = 0.0001
  norm       = 2.97948
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  norm       = 0.0001
  norm       = 0.420491
  Prefactor  = 23.1761
  Prefactor  = 64.5126
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 22.5052
  Prefactor  = 0.0001
  Prefactor  = 101.552
  norm       = 0.0001
  Prefactor  = 0.699661
  norm       = 0.0001
  norm       = 0.000101194
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  Normalizat = 1.33881
  Prefactor  = 0.870442
 **********
 **   18 **HESSE 
 **********

 FCN=   7201.439     FROM HESSE     STATUS=OK           368 CALLS     3237 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0354        8.0685        .15123E-03   -1.5177    
   2  norm          .10000E-03    1.4104        .19258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9795        1.6890        .78240E-04   -1.5363    
   4  Prefactor     .10000E-03    31.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    26.593        .12473       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0234        .14917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .42049        1.5956        .19703E-03   -1.5578    
   8  Prefactor     23.176        11.745        .83195E-04   -1.4745    
   9  Prefactor     64.513        26.699        .49963E-04   -1.4100    
  10  Prefactor     .10000E-03    13.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.050        .20402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.505        17.788        .84444E-04   -1.4759    
  13  Prefactor     .10000E-03    8.2900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     101.55        158.99        .19955E-03   -1.3689    
  15  norm          .10000E-03    37.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .69966        75.456        .59525E-02   -1.5541    
  17  norm          .10000E-03    4.4129        .17408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10119E-03    2.9248        .49738E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    91.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    19.006        .83774E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3388        .23104        .28841E-03   -.82415    
  22  Prefactor     .87044        .13861        .21576E-03   -.97182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77695e-09
Minuit parameter uncertainties:
  1  8.06978
  2  1.58963e-06
  3  1.68898
  4  3.27023e-06
  5  0.00242944
  6  3.98511e-05
  7  1.59577
  8  11.7466
  9  26.7036
  10  7.17295e-06
  11  0.000406804
  12  17.792
  13  1.19663e-06
  14  159.664
  15  1.40423e-05
  16  14.5497
  17  3.52816e-06
  18  0.00373789
  19  7.54746e-05
  20  0.00167807
  21  0.231216
  22  0.138663
Done.

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

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  4.068e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.704e-01  1.387e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.339e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.701 12.494
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/942582/likelihoodResults_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.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) = 7201.43907422
delta logL = -0.000431200812272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7201.43864343
delta logL = -4.05161699746e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4479       1.0000          .0000       10.000    
     3 'Normalizat'    1.3391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   7201.439     FROM MIGRAD    STATUS=FAILED       106 CALLS      281 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10323E-03    139.45        .21751E-02** at limit **
   2  Index         2.2696        6.0533        .50000        .74167E-05
   3  Normalizat    1.3388        .14541E-01    .28841E-03   -.58339E-05
   4  Prefactor     .87044        .90433E-02    .21576E-03    .13700E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7201.439     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      402 TOTAL
                     EDM=   .79E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10323E-03    139.45        .67285E-03** at limit **
   2  Index         2.2696        6.0533        .23897E-03    .74167E-05
   3  Normalizat    1.3388        .14541E-01    .38459E-05   -.58339E-05
   4  Prefactor     .87044        .90433E-02    .19833E-05    .13700E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7201.439     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      478 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6326.2        .87003E-04** at limit **
   2  Index         2.2345        5.6333        .50000        .18870E-06
   3  Normalizat    1.3388        .83757E-01    .23073E-05   -.29564E-05
   4  Prefactor     .87044        .52049E-01    .17261E-05    .26346E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23451
  Normalizat = 1.33881
  Prefactor  = 0.870443
 **********
 **   18 **HESSE 
 **********

 FCN=   7201.439     FROM HESSE     STATUS=OK            29 CALLS      507 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.712        .17401E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2345        6.3760        .50000       -.58608    
   3  Normalizat    1.3388        .21053        .46146E-06   -.82415    
   4  Prefactor     .87044        .13158        .34522E-06   -.97182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7113e-11
Minuit parameter uncertainties:
  1  0.000152034
  2  89.1532
  3  0.210667
  4  0.131628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/942582': 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) = 7201.43864115
delta logL = 1.87768637261e-06

Extracting fit parameters...

4FGL J0750.8+1229
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.520e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.235e+00  8.915e+01  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  8.283e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  8.704e-01  1.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.339e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.701 12.494

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/942582/cmap_HighResolution_348451201_348710401_4FGL_J0750.8+1229_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-28 16:18:57.920165', job_id='942582', GAL2='0.87', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630192737.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='421' AND source_name='4FGL J0750.8+1229' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:18:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 942582: <4FGL_J0750.8+1229_daily_bin421> in cluster <slac> Done

Job <4FGL_J0750.8+1229_daily_bin421> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 16:05:23 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 16:05:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 16:05:24 2021
Terminated at Sat Aug 28 16:18:58 2021
Results reported at Sat Aug 28 16:18:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0750.8+1229_daily_bin421 117.701 12.494 348451201 348710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0750.8+1229 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   801.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             316.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            815 sec.

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

