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


Performing analysis on: 4FGL_J0912.2+4127_daily_bin78
RA = 138.056, Dec = 41.4563
tmin = 259545601, tmax = 259804801
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='75982', job_status='RUN', time_executed='2021-08-31 04:08:52.590197', time_epoch_executed='1630408132.59' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75982/ft1_4FGL_J0912.2+4127_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75982/ft2_4FGL_J0912.2+4127_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75982/ft1_4FGL_J0912.2+4127_daily_bin78.fits outfile=/scratch/kocevski/75982/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin78.fits ra=138.056 dec=41.4563 rad=12.0 tmin=259545601.0 tmax=259804801.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.85
user 1.14
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75982/ft1_filtered_4FGL_J0912.2+4127_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/75982/ft2_4FGL_J0912.2+4127_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/75982/ltcube_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.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/75982/ft2_4FGL_J0912.2+4127_daily_bin78.fits
.....................!
real 9.55
user 9.09
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75982/ft1_filtered_4FGL_J0912.2+4127_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/75982/ft2_4FGL_J0912.2+4127_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/75982/ltcube_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.fits outfile=/scratch/kocevski/75982/expmap_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.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/75982/ltcube_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.fits
.....................!
real 148.45
user 141.66
sys 3.28

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/75982/ft1_filtered_4FGL_J0912.2+4127_daily_bin78.fits scfile=/scratch/kocevski/75982/ft2_4FGL_J0912.2+4127_daily_bin78.fits outfile=/scratch/kocevski/75982/cmap_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.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.70
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75982/ft1_filtered_4FGL_J0912.2+4127_daily_bin78.fits scfile=/scratch/kocevski/75982/ft2_4FGL_J0912.2+4127_daily_bin78.fits outfile=/scratch/kocevski/75982/cmap_HighResolution_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.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.50
user 0.29
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75982/ft1_filtered_4FGL_J0912.2+4127_daily_bin78.fits', '/scratch/kocevski/75982/ft2_4FGL_J0912.2+4127_daily_bin78.fits', expMap='/scratch/kocevski/75982/expmap_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.fits', expCube='/scratch/kocevski/75982/ltcube_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75982/Model_4FGL_J0912.2+4127_daily_bin78.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/75982/ft1_filtered_4FGL_J0912.2+4127_daily_bin78.fits
Spacecraft file(s): /scratch/kocevski/75982/ft2_4FGL_J0912.2+4127_daily_bin78.fits
Exposure map: /scratch/kocevski/75982/expmap_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.fits
Exposure cube: /scratch/kocevski/75982/ltcube_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75982/Model_4FGL_J0912.2+4127_daily_bin78.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) = 5396.80541448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55704       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6506       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4326       1.0000         .10000E-03   10000.    
     7 'norm      '    9.2853       1.0000         .10000E-03   10000.    
     8 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13300E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.972       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4355       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.730       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1507       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1708       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9461       1.0000         .10000E-03   10000.    
    19 'norm      '    5.2400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12813E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.794       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3748       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.431       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .77788       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0408       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=   5396.680     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4165 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56358        5.6116        .75666E-06   -.19112E-03
   2  norm          2.6506        .79753       -.16854E-07   -.43471E-03
   3  Prefactor     .10000E-03    8.0919       -.12419E-06** at limit **
   4  Prefactor     .10000E-03    1.1906       -.80055E-07** at limit **
   5  Prefactor     .10000E-03    16.274       -.10783E-06** at limit **
   6  Prefactor     9.4380        10.655        .17026E-05   -.95198E-04
   7  norm          9.2845        5.5564        .32919E-07   -.44701E-04
   8  norm          .10000E-03    2.1785        .13737E-06** at limit **
   9  Prefactor     .10000E-03    1.1612        .26872E-06** at limit **
  10  Prefactor     .10000E-03    20.889        .12381E-05** at limit **
  11  Prefactor     20.026        52.849        .13329E-05    .10745E-03
  12  Prefactor     1.4368        2.6821        .35467E-06   -.12020E-04
  13  Prefactor     21.764        33.736        .37056E-06   -.33318E-05
  14  Prefactor     .10000E-03    1.8970        .38543E-06** at limit **
  15  norm          3.1509        2.1867        .40104E-08   -.27635E-05
  16  Prefactor     .10000E-03    57.026        .92887E-05** at limit **
  17  norm          1.1729        .73934        .53380E-07   -.45647E-03
  18  Prefactor     2.9337        4.2932        .16324E-07   -.16103E-03
  19  norm          5.2359        5.6781        .13775E-06   -.23384E-03
  20  Prefactor     .10000E-03    1.4577        .11504E-06** at limit **
  21  Prefactor     .10000E-03    3.5963       -.47804E-07** at limit **
  22  Prefactor     .10000E-03    16.893       -.80139E-06** at limit **
  23  norm          .10000E-03    6.0068        .12472E-07** at limit **
  24  Prefactor     19.808        19.931        .23104E-06   -.33820E-05
  25  Prefactor     7.3707        11.534        .40522E-05   -.10680E-03
  26  Prefactor     .10000E-03    13.321       -.85198E-07** at limit **
  27  Prefactor     .10000E-03    3.7418       -.43696E-07** at limit **
  28  norm          .10000E-03    21.944       -.79422E-06** at limit **
  29  Prefactor     22.433        28.485        .33975E-06   -.13831E-05
  30  Normalizat    .77844        .17600       -.19157E-05   -.13854E-03
  31  Prefactor     1.0401        .18234        .23061E-06   -.20701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.563577
  norm       = 2.65059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.43799
  norm       = 9.28448
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.026
  Prefactor  = 1.43681
  Prefactor  = 21.7641
  Prefactor  = 0.0001
  norm       = 3.15087
  Prefactor  = 0.000100001
  norm       = 1.17294
  Prefactor  = 2.93369
  norm       = 5.2359
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.8081
  Prefactor  = 7.37072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4333
  Normalizat = 0.778438
  Prefactor  = 1.04009
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.680     FROM HESSE     STATUS=OK           622 CALLS     4787 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56358        12.725        .32476E-02   -1.5558    
   2  norm          2.6506        .79386        .33989E-04   -1.5382    
   3  Prefactor     .10000E-03    8.1323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2050        .78186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4380        10.645        .65243E-03   -1.5093    
   7  norm          9.2845        5.5548        .12952E-03   -1.5098    
   8  norm          .10000E-03    2.1856        .10588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1769        .77201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.026        52.811        .89622E-04   -1.4813    
  12  Prefactor     1.4368        2.6481        .15885E-03   -1.5468    
  13  Prefactor     21.764        33.354        .85925E-04   -1.4775    
  14  Prefactor     .10000E-03    1.9404        .19717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1509        2.1910        .88226E-04   -1.5353    
  16  Prefactor     .10000E-03    58.002        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1729        .81297        .34967E-04   -1.5491    
  18  Prefactor     2.9337        4.7700        .12442E-03   -1.5365    
  19  norm          5.2359        5.6409        .17412E-03   -1.5250    
  20  Prefactor     .10000E-03    4.1549        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6082        .13603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.0124        .17583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.808        19.969        .90026E-04   -1.4818    
  25  Prefactor     7.3707        11.608        .73845E-03   -1.5165    
  26  Prefactor     .10000E-03    13.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.7513        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    22.661        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     22.433        28.522        .84572E-04   -1.4760    
  30  Normalizat    .77844        .20207        .24766E-03   -1.0087    
  31  Prefactor     1.0401        .21110        .23846E-03   -.91405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18039e-08
Minuit parameter uncertainties:
  1  5.35683
  2  0.793862
  3  2.2976e-06
  4  1.16402e-06
  5  1.40514e-05
  6  10.6472
  7  5.5551
  8  1.21762e-07
  9  1.54847e-06
  10  7.49308e-05
  11  52.9343
  12  2.64836
  13  33.383
  14  2.77232e-06
  15  2.19102
  16  0.000412896
  17  0.812979
  18  4.77059
  19  5.64143
  20  3.51957e-05
  21  1.38861e-05
  22  0.000149609
  23  9.57746e-07
  24  19.9753
  25  11.6111
  26  2.30786e-05
  27  2.82169e-06
  28  2.77839e-05
  29  28.5397
  30  0.202264
  31  0.211267
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  2.772e-06  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:  1.040e+00  2.113e-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:  7.784e-01  2.023e-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: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75982/likelihoodResults_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.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) = 5396.68232482
delta logL = -0.0024551844981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5396.67986978
delta logL = -1.45243575389e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4531       1.0000          .0000       10.000    
     3 'Normalizat'    .77846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0401       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=   5396.680     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10048E-03    183.95        .19767E-03** at limit **
   2  Index         2.4059        6.0319        .50000        .26606E-04
   3  Normalizat    .77844        .45085E-01    .24766E-03   -.89421E-04
   4  Prefactor     1.0401        .49754E-01    .23846E-03   -.55114E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5396.680     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      387 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10048E-03    183.95        .23277E-03** at limit **
   2  Index         2.4059        6.0319        .74150E-04    .26606E-04
   3  Normalizat    .77844        .45085E-01    .25776E-05   -.89421E-04
   4  Prefactor     1.0401        .49754E-01    .15624E-05   -.55114E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5396.680     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      435 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9810        .39534E-04** at limit **
   2  Index         2.1039        8.9206        .50000        .32260E-06
   3  Normalizat    .77844        .18384        .99065E-05    .16847E-03
   4  Prefactor     1.0401        .20307        .95383E-05    .15948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10389
  Normalizat = 0.778438
  Prefactor  = 1.04009
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.680     FROM HESSE     STATUS=OK            29 CALLS      464 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0581        .79068E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1039        8.9181        .50000       -.61777    
   3  Normalizat    .77844        .18366        .19813E-05   -1.0087    
   4  Prefactor     1.0401        .20285        .19077E-05   -.91405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21857e-10
Minuit parameter uncertainties:
  1  3.92582e-06
  2  119.758
  3  0.183804
  4  0.202999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75982': 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) = 5396.67986848
delta logL = 1.15634702524e-06

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.000e-04  3.926e-06  1.000e-04  1.000e+04 ( 1.000e-12)
330        Index:  2.104e+00  1.198e+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:  1.040e+00  2.030e-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:  7.784e-01  1.838e-01  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/75982/cmap_HighResolution_259545601_259804801_4FGL_J0912.2+4127_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-08-31 04:20:59.162662', job_id='75982', GAL2='1.04', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630408859.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='78' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 04:20:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 75982: <4FGL_J0912.2+4127_daily_bin78> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin78> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 04:05:50 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 04:05:51 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:51 2021
Terminated at Tue Aug 31 04:20:59 2021
Results reported at Tue Aug 31 04:20:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin78 138.056 41.4563 259545601 259804801 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 :                                   712.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            909 sec.

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

