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


Performing analysis on: 4FGL_J0912.2+4127_daily_bin75
RA = 138.056, Dec = 41.4563
tmin = 258768001, tmax = 259027201
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='75978', job_status='RUN', time_executed='2021-08-31 04:09:28.592655', time_epoch_executed='1630408168.59' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75978

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75978/ft1_4FGL_J0912.2+4127_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75978/ft1_4FGL_J0912.2+4127_daily_bin75.fits outfile=/scratch/kocevski/75978/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin75.fits ra=138.056 dec=41.4563 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.13
user 0.93
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.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/75978/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.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.66
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/75978/ltcube_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.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/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits
.....................!
real 8.63
user 8.23
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/75978/ltcube_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.fits outfile=/scratch/kocevski/75978/expmap_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.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/75978/ltcube_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.fits
.....................!
real 191.31
user 186.40
sys 4.38

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

Setting source of interest to:
4FGL J0912.2+4127 @ 138.056 41.4563

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.fits scfile=/scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits outfile=/scratch/kocevski/75978/cmap_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.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=138.056 yref=41.4563 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.76
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.fits scfile=/scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits outfile=/scratch/kocevski/75978/cmap_HighResolution_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.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=138.056 yref=41.4563 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.38
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75978/Model_4FGL_J0912.2+4127_daily_bin75.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/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.fits......................!
real 38.87
user 37.19
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.fits', '/scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits', expMap='/scratch/kocevski/75978/expmap_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.fits', expCube='/scratch/kocevski/75978/ltcube_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75978/Model_4FGL_J0912.2+4127_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0912.2+4127'

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.422e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.461e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75978/ft1_filtered_4FGL_J0912.2+4127_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/75978/ft2_4FGL_J0912.2+4127_daily_bin75.fits
Exposure map: /scratch/kocevski/75978/expmap_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.fits
Exposure cube: /scratch/kocevski/75978/ltcube_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75978/Model_4FGL_J0912.2+4127_daily_bin75.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) = 3631.32348432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10792E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0949       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.506       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    23.413       1.0000         .10000E-03   10000.    
     8 'norm      '    4.0400       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17579E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13881E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.867       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .86027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .56105E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.4522       1.0000         .10000E-03   10000.    
    26 'Prefactor '    54.300       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1858       1.0000         .10000E-03   10000.    
    28 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3746       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63422       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3631.314     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4164 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.684        .43740E-08** at limit **
   2  norm          2.4577        .95654        .27733E-07   -.89898E-04
   3  Prefactor     .10000E-03    16.969        .25507E-06** at limit **
   4  Prefactor     6.0966        3.7726        .10405E-06   -.55897E-04
   5  Prefactor     51.507        31.241        .64834E-07   -.41818E-04
   6  Prefactor     .10000E-03    6.8221        .28576E-07** at limit **
   7  norm          23.412        12.738       -.74396E-07   -.47827E-04
   8  norm          4.0390        9.7699        .14991E-06    .16977E-04
   9  Prefactor     .10000E-03    2.5377        .56646E-06** at limit **
  10  Prefactor     .10001E-03    128.54       -.93152E-05** at limit **
  11  Prefactor     .10000E-03    46.315       -.25787E-06** at limit **
  12  Prefactor     1.6242        5.2167        .64851E-06   -.18434E-03
  13  Prefactor     40.571        55.658        .35177E-05    .88346E-04
  14  Prefactor     .10000E-03    3.4477        .27616E-06** at limit **
  15  norm          .10000E-03    1.6250       -.32623E-07** at limit **
  16  Prefactor     .10000E-03    17.358        .90126E-06** at limit **
  17  norm          .10000E-03    .63136        .73934E-06** at limit **
  18  Prefactor     11.847        5.5331       -.98143E-06   -.89427E-03
  19  norm          .10000E-03    4.1532        .17851E-07** at limit **
  20  Prefactor     2.0136        3.1266        .54360E-07   -.32767E-03
  21  Prefactor     .10012E-03    11.456       -.13575E-05** at limit **
  22  Prefactor     .10000E-03    115.65        .59657E-05** at limit **
  23  norm          .10000E-03    8.4879        .14025E-06** at limit **
  24  Prefactor     .10000E-03    16.874        .14617E-06** at limit **
  25  Prefactor     5.3931        22.612        .22402E-05    .66613E-04
  26  Prefactor     54.297        45.750       -.79502E-07   -.73351E-04
  27  Prefactor     6.1797        18.084        .42235E-05   -.23954E-03
  28  norm          .10000E-03    15.365       -.14253E-06** at limit **
  29  Prefactor     .10001E-03    103.41        .65437E-05** at limit **
  30  Normalizat    1.3749        .25001       -.28598E-05   -.26814E-04
  31  Prefactor     .63408        .22829        .92909E-06   -.11776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.45768
  Prefactor  = 0.0001
  Prefactor  = 6.09661
  Prefactor  = 51.5065
  Prefactor  = 0.0001
  norm       = 23.4116
  norm       = 4.03902
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 1.62416
  Prefactor  = 40.5712
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 11.847
  norm       = 0.0001
  Prefactor  = 2.01364
  Prefactor  = 0.000100121
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.39307
  Prefactor  = 54.2968
  Prefactor  = 6.17973
  norm       = 0.0001
  Prefactor  = 0.000100009
  Normalizat = 1.37487
  Prefactor  = 0.634081
 **********
 **   18 **HESSE 
 **********

 FCN=   3631.314     FROM HESSE     STATUS=OK           616 CALLS     4780 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4577        .95554        .35282E-04   -1.5394    
   3  Prefactor     .10000E-03    17.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0966        3.7663        .88301E-04   -1.5214    
   5  Prefactor     51.507        31.265        .55882E-04   -1.4271    
   6  Prefactor     .10000E-03    6.8436        .15371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          23.412        12.572        .82783E-04   -1.4740    
   8  norm          4.0390        9.7252        .20062E-03   -1.5306    
   9  Prefactor     .10000E-03    14.441        .18070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    131.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    46.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6242        5.2179        .23414E-03   -1.5453    
  13  Prefactor     40.571        55.871        .62951E-04   -1.4433    
  14  Prefactor     .10000E-03    3.5592        .21813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6415        .75011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7645        .80277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.847        5.3637        .85883E-04   -1.5019    
  19  norm          .10000E-03    4.1598        .11992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0136        3.1014        .12571E-03   -1.5424    
  21  Prefactor     .10012E-03    49.467        .37543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    115.37        .42198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.4927        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.3931        21.312        .17209E-03   -1.5243    
  26  Prefactor     54.297        45.994        .54433E-04   -1.4233    
  27  Prefactor     6.1797        17.899        .80705E-03   -1.5211    
  28  norm          .10000E-03    15.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    105.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3749        .28306        .23025E-03   -.81358    
  31  Prefactor     .63408        .25896        .32507E-03   -1.0617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70422e-09
Minuit parameter uncertainties:
  1  6.70235e-05
  2  0.955541
  3  4.14504e-05
  4  3.76646
  5  31.2754
  6  1.12619e-05
  7  12.5739
  8  9.72896
  9  0.000215871
  10  0.00190034
  11  2.18798e-05
  12  5.21931
  13  55.9434
  14  1.08487e-05
  15  1.76002e-06
  16  7.67466e-05
  17  0.000120294
  18  5.36396
  19  3.13882e-06
  20  3.10167
  21  0.00490624
  22  0.000116697
  23  1.5983e-05
  24  3.62541e-05
  25  21.3419
  26  46.0238
  27  17.9144
  28  1.59908e-05
  29  0.00190786
  30  0.283386
  31  0.259449
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  1.085e-05  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.461e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  6.341e-01  2.594e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.375e+00  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 138.056 41.456
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75978/likelihoodResults_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.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) = 3631.31488431
delta logL = -0.00133539135732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3631.31354883
delta logL = 8.46371221996e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4404       1.0000          .0000       10.000    
     3 'Normalizat'    1.3749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63409       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   3631.314     FROM MIGRAD    STATUS=FAILED        94 CALLS      254 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10196E-03    50.389        .22164E-02** at limit **
   2  Index         2.3535        6.6880        .50000        .31788E-04
   3  Normalizat    1.3749        .22057E-01    .23025E-03   -.19059E-04
   4  Prefactor     .63408        .22078E-01    .32506E-03   -.17452E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3631.314     FROM SIMPLEX   STATUS=PROGRESS     132 CALLS      386 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    50.389        .25874E-03** at limit **
   2  Index         2.3519        6.6880        .50244E-03    .31788E-04
   3  Normalizat    1.3748        .22057E-01    .53917E-05   -.19059E-04
   4  Prefactor     .63408        .22078E-01    .40755E-05   -.17452E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3631.314     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      434 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.172        .44328E-02** at limit **
   2  Index         2.1672        6.5856        .50000        .14430E-05
   3  Normalizat    1.3749        .17106E-01    .46050E-04    .11351E-03
   4  Prefactor     .63409        .17122E-01    .13003E-04    .12477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16719
  Normalizat = 1.37486
  Prefactor  = 0.634085
 **********
 **   18 **HESSE 
 **********

 FCN=   3631.314     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      461 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    178.79        .88656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1672        5.0208        .50000       -.60233    
   3  Normalizat    1.3749        .42014E-01    .92100E-05   -.81358    
   4  Prefactor     .63409        .42045E-01    .26005E-05   -1.0617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.78747e-08
Minuit parameter uncertainties:
  1  0.000548689
  2  603.347
  3  0.042015
  4  0.0420475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75978': 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) = 3631.31354723
delta logL = 1.69080385604e-06

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  5.487e-04  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.167e+00  6.033e+02  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  6.341e-01  4.205e-02  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.375e+00  4.202e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 138.056 41.456

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/75978/cmap_HighResolution_258768001_259027201_4FGL_J0912.2+4127_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-31 04:21:17.086557', job_id='75978', GAL2='0.63', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630408877.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.69e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='75' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 04:21:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 75978: <4FGL_J0912.2+4127_daily_bin75> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin75> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 04:05:49 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 04:05:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 04:05:50 2021
Terminated at Tue Aug 31 04:21:17 2021
Results reported at Tue Aug 31 04:21:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin75 138.056 41.4563 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0912.2+4127 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   706.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             274.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

